Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
UtkarshDixit-97
/
LeetCode-Solutions
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
master
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
84 Commits
84 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1. Two Sum.rb
1. Two Sum.rb
1015. Smallest Integer Divisible by K.rb
1015. Smallest Integer Divisible by K.rb
1026. Maximum Difference Between Node and Ancestor.rb
1026. Maximum Difference Between Node and Ancestor.rb
1032. Stream of Characters.rb
1032. Stream of Characters.rb
104. Maximum Depth of Binary Tree.rb
104. Maximum Depth of Binary Tree.rb
1051. Height Checker.rb
1051. Height Checker.rb
106. Construct Binary Tree from Inorder and Postorder Traversal.rb
106. Construct Binary Tree from Inorder and Postorder Traversal.rb
1061. Lexicographically Smallest Equivalent String.rb
1061. Lexicographically Smallest Equivalent String.rb
1089. Duplicate Zeros.rb
1089. Duplicate Zeros.rb
1094. Car Pooling.rb
1094. Car Pooling.rb
116. Populating Next Right Pointers in Each Node.rb
116. Populating Next Right Pointers in Each Node.rb
1178. Number of Valid Words for Each Puzzle.rb
1178. Number of Valid Words for Each Puzzle.rb
119. Pascal's Triangle II.rb
119. Pascal's Triangle II.rb
120. Triangle.rb
120. Triangle.rb
1200. Minimum Absolute Difference.rb
1200. Minimum Absolute Difference.rb
1217. Minimum Cost to Move Chips to The Same Position.rb
1217. Minimum Cost to Move Chips to The Same Position.rb
122. Best Time to Buy and Sell Stock II.rb
122. Best Time to Buy and Sell Stock II.rb
125. Valid Palindrome.rb
125. Valid Palindrome.rb
1266. Minimum Time Visiting All Points.rb
1266. Minimum Time Visiting All Points.rb
1286. Iterator for Combination.rb
1286. Iterator for Combination.rb
1290. Convert Binary Number in a Linked List to Integer.rb
1290. Convert Binary Number in a Linked List to Integer.rb
1295. Find Numbers with Even Number of Digits.rb
1295. Find Numbers with Even Number of Digits.rb
1299. Replace Elements with Greatest Element on Right Side.rb
1299. Replace Elements with Greatest Element on Right Side.rb
1306. Jump Game III.rb
1306. Jump Game III.rb
1332. Remove Palindromic Subsequences.rb
1332. Remove Palindromic Subsequences.rb
1346. Check If N and Its Double Exist.rb
1346. Check If N and Its Double Exist.rb
136. Single Number.rb
136. Single Number.rb
14. Longest Common Prefix.rb
14. Longest Common Prefix.rb
143. Reorder List.rb
143. Reorder List.rb
1446. Consecutive Characters.rb
1446. Consecutive Characters.rb
147. Insertion Sort List.rb
147. Insertion Sort List.rb
1480. Running Sum of 1d Array.rb
1480. Running Sum of 1d Array.rb
152. Maximum Product Subarray.rb
152. Maximum Product Subarray.rb
1528. Shuffle String.rb
1528. Shuffle String.rb
155. Min Stack.rb
155. Min Stack.rb
160. Intersection of Two Linked Lists.rb
160. Intersection of Two Linked Lists.rb
1658. Minimum Operations to Reduce X to Zero.rb
1658. Minimum Operations to Reduce X to Zero.rb
1663. Smallest String With A Given Numeric Value.rb
1663. Smallest String With A Given Numeric Value.rb
167. Two Sum II - Input Array Is Sorted.rb
167. Two Sum II - Input Array Is Sorted.rb
1695. Maximum Erasure Value.rb
1695. Maximum Erasure Value.rb
1716. Calculate Money in Leetcode Bank.rb
1716. Calculate Money in Leetcode Bank.rb
189. Rotate Array.rb
189. Rotate Array.rb
1929. Concatenation of Array.rb
1929. Concatenation of Array.rb
198. House Robber.rb
198. House Robber.rb
2. Add Two Numbers.rb
2. Add Two Numbers.rb
20. Valid Parentheses.rb
20. Valid Parentheses.rb
206. Reverse Linked List.rb
206. Reverse Linked List.rb
21. Merge Two Sorted Lists.rb
21. Merge Two Sorted Lists.rb
210. Course Schedule II.rb
210. Course Schedule II.rb
2133. Check if Every Row and Column Contains All Numbers.rb
2133. Check if Every Row and Column Contains All Numbers.rb
2135. Count Words Obtained After Adding a Letter.rb
2135. Count Words Obtained After Adding a Letter.rb
217. Contains Duplicate.rb
217. Contains Duplicate.rb
221. Maximal Square.rb
221. Maximal Square.rb
227. Basic Calculator II.rb
227. Basic Calculator II.rb
23. Merge k Sorted Lists.rb
23. Merge k Sorted Lists.rb
231. Power of Two.rb
231. Power of Two.rb
238. Product of Array Except Self.rb
238. Product of Array Except Self.rb
24. Swap Nodes in Pairs.rb
24. Swap Nodes in Pairs.rb
242. Valid Anagram.rb
242. Valid Anagram.rb
26. Remove Duplicates from Sorted Array.rb
26. Remove Duplicates from Sorted Array.rb
260. Single Number III.rb
260. Single Number III.rb
27. Remove Element.rb
27. Remove Element.rb
28. Implement strStr().rb
28. Implement strStr().rb
283. Move Zeroes.rb
283. Move Zeroes.rb
3. Longest Substring Without Repeating Characters.rb
3. Longest Substring Without Repeating Characters.rb
304. Range Sum Query 2D - Immutable.rb
304. Range Sum Query 2D - Immutable.rb
310. Minimum Height Trees.rb
310. Minimum Height Trees.rb
328. Odd Even Linked List.rb
328. Odd Even Linked List.rb
337. House Robber III.rb
337. House Robber III.rb
338. Counting Bits.rb
338. Counting Bits.rb
3403. Find the Lexicographically Largest String From the Box I.rb
3403. Find the Lexicographically Largest String From the Box I.rb
344. Reverse String.rb
344. Reverse String.rb
3461. Check If Digits Are Equal in String After Operations I.rb
3461. Check If Digits Are Equal in String After Operations I.rb
35. Search Insert Position.rb
35. Search Insert Position.rb
350. Intersection of Two Arrays II.rb
350. Intersection of Two Arrays II.rb
36. Valid Sudoku.rb
36. Valid Sudoku.rb
368. Largest Divisible Subset.rb
368. Largest Divisible Subset.rb
3726. Remove Zeros in Decimal Representation.rb
3726. Remove Zeros in Decimal Representation.rb
3727. Maximum Alternating Sum of Squares.rb
3727. Maximum Alternating Sum of Squares.rb
3728. Stable Subarrays With Equal Boundary and Interior Sum.rb
3728. Stable Subarrays With Equal Boundary and Interior Sum.rb
387. First Unique Character in a String.rb
387. First Unique Character in a String.rb
394. Decode String.rb
394. Decode String.rb
4. Median of Two Sorted Arrays.rb
4. Median of Two Sorted Arrays.rb
413. Arithmetic Slices.rb
413. Arithmetic Slices.rb
414. Third Maximum Number.rb
414. Third Maximum Number.rb
416. Partition Equal Subset Sum.rb
416. Partition Equal Subset Sum.rb
43. Multiply Strings.rb
43. Multiply Strings.rb
448. Find All Numbers Disappeared in an Array.rb
448. Find All Numbers Disappeared in an Array.rb
450. Delete Node in a BST.rb
450. Delete Node in a BST.rb
476. Number Complement.rb
476. Number Complement.rb
48. Rotate Image.rb
48. Rotate Image.rb
485. Max Consecutive Ones.rb
485. Max Consecutive Ones.rb
49. Group Anagrams.rb
49. Group Anagrams.rb
50. Pow(x, n).rb
50. Pow(x, n).rb
509. Fibonacci Number.rb
509. Fibonacci Number.rb
51. N-Queens.rb
51. N-Queens.rb
52. N-Queens II.rb
52. N-Queens II.rb
53. Maximum Subarray.rb
53. Maximum Subarray.rb
540. Single Element in a Sorted Array.rb
540. Single Element in a Sorted Array.rb
56. Merge Intervals.rb
56. Merge Intervals.rb
View all files
About
Leetcode problems I have solved
Activity
Stars
1
star
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.