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
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 }}
simrrrran1
/
LeetcodeProblems
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
529 Commits
529 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1. Two Sum
1. Two Sum
100. Same Tree
100. Same Tree
1008. Binary Tree Cameras
1008. Binary Tree Cameras
101. Symmetric Tree
101. Symmetric Tree
1013. Fibonacci Number
1013. Fibonacci Number
1014. K Closest Points to Origin
1014. K Closest Points to Origin
1019. Squares of a Sorted Array
1019. Squares of a Sorted Array
102. Binary Tree Level Order Traversal
102. Binary Tree Level Order Traversal
1021. Distribute Coins in Binary Tree
1021. Distribute Coins in Binary Tree
1029. Vertical Order Traversal of a Binary Tree
1029. Vertical Order Traversal of a Binary Tree
103. Binary Tree Zigzag Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
1036. Rotting Oranges
1036. Rotting Oranges
1038. Number of Squareful Arrays
1038. Number of Squareful Arrays
104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree
1044. Find Common Characters
1044. Find Common Characters
1046. Max Consecutive Ones III
1046. Max Consecutive Ones III
105. Construct Binary Tree from Preorder and Inorder Traversal
105. Construct Binary Tree from Preorder and Inorder Traversal
1050. Construct Binary Search Tree from Preorder Traversal
1050. Construct Binary Search Tree from Preorder Traversal
1056. Capacity To Ship Packages Within D Days
1056. Capacity To Ship Packages Within D Days
108. Convert Sorted Array to Binary Search Tree
108. Convert Sorted Array to Binary Search Tree
11. Container With Most Water
11. Container With Most Water
110. Balanced Binary Tree
110. Balanced Binary Tree
1108. Analyze User Website Visit Pattern
1108. Analyze User Website Visit Pattern
1116. Maximum Level Sum of a Binary Tree
1116. Maximum Level Sum of a Binary Tree
1145. Number of Submatrices That Sum to Target
1145. Number of Submatrices That Sum to Target
12. Integer to Roman
12. Integer to Roman
1207. Delete Nodes And Return Forest
1207. Delete Nodes And Return Forest
121. Best Time to Buy and Sell Stock
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
122. Best Time to Buy and Sell Stock II
124. Binary Tree Maximum Path Sum
124. Binary Tree Maximum Path Sum
125. Valid Palindrome
125. Valid Palindrome
1250. Longest Common Subsequence
1250. Longest Common Subsequence
127. Word Ladder
127. Word Ladder
128. Longest Consecutive Sequence
128. Longest Consecutive Sequence
1285. Balance a Binary Search Tree
1285. Balance a Binary Search Tree
129. Sum Root to Leaf Numbers
129. Sum Root to Leaf Numbers
13. Roman to Integer
13. Roman to Integer
130. Surrounded Regions
130. Surrounded Regions
1306. Minimum Absolute Difference
1306. Minimum Absolute Difference
1319. Unique Number of Occurrences
1319. Unique Number of Occurrences
1320. Remove All Adjacent Duplicates in String II
1320. Remove All Adjacent Duplicates in String II
133. Clone Graph
133. Clone Graph
1335. Maximum Candies Allocated to K Children
1335. Maximum Candies Allocated to K Children
134. Gas Station
134. Gas Station
136. Single Number
136. Single Number
1371. Minimum Remove to Make Valid Parentheses
1371. Minimum Remove to Make Valid Parentheses
138. Copy List with Random Pointer
138. Copy List with Random Pointer
139. Word Break
139. Word Break
14. Longest Common Prefix
14. Longest Common Prefix
140. Word Break II
140. Word Break II
141. Linked List Cycle
141. Linked List Cycle
142. Linked List Cycle II
142. Linked List Cycle II
1460. Number of Substrings Containing All Three Characters
1460. Number of Substrings Containing All Three Characters
1474. Longest ZigZag Path in a Binary Tree
1474. Longest ZigZag Path in a Binary Tree
15. 3Sum
15. 3Sum
150. Evaluate Reverse Polish Notation
150. Evaluate Reverse Polish Notation
1509. Replace Employee ID With The Unique Identifier
1509. Replace Employee ID With The Unique Identifier
151. Reverse Words in a String
151. Reverse Words in a String
1511. Count Number of Teams
1511. Count Number of Teams
152. Maximum Product Subarray
152. Maximum Product Subarray
1528. Kids With the Greatest Number of Candies
1528. Kids With the Greatest Number of Candies
153. Find Minimum in Rotated Sorted Array
153. Find Minimum in Rotated Sorted Array
1544. Count Good Nodes in Binary Tree
1544. Count Good Nodes in Binary Tree
155. Min Stack
155. Min Stack
1553. Count Triplets That Can Form Two Arrays of Equal XOR
1553. Count Triplets That Can Form Two Arrays of Equal XOR
160. Intersection of Two Linked Lists
160. Intersection of Two Linked Lists
162. Find Peak Element
162. Find Peak Element
167. Two Sum II - Input Array Is Sorted
167. Two Sum II - Input Array Is Sorted
1679. Shortest Subarray to be Removed to Make Array Sorted
1679. Shortest Subarray to be Removed to Make Array Sorted
169. Majority Element
169. Majority Element
1690. Maximum Length of Subarray With Positive Product
1690. Maximum Length of Subarray With Positive Product
1708. Design Parking System
1708. Design Parking System
173. Binary Search Tree Iterator
173. Binary Search Tree Iterator
1768. Design an Expression Tree With Evaluate Function
1768. Design an Expression Tree With Evaluate Function
18. 4Sum
18. 4Sum
1802. Number of Students Unable to Eat Lunch
1802. Number of Students Unable to Eat Lunch
1829. Maximum Units on a Truck
1829. Maximum Units on a Truck
1833. Find the Highest Altitude
1833. Find the Highest Altitude
189. Rotate Array
189. Rotate Array
1894. Merge Strings Alternately
1894. Merge Strings Alternately
19. Remove Nth Node From End of List
19. Remove Nth Node From End of List
190. Reverse Bits
190. Reverse Bits
1908. Recyclable and Low Fat Products
1908. Recyclable and Low Fat Products
191. Number of 1 Bits
191. Number of 1 Bits
1916. Find Center of Star Graph
1916. Find Center of Star Graph
198. House Robber
198. House Robber
199. Binary Tree Right Side View
199. Binary Tree Right Side View
1994. Minimum Number of Swaps to Make the Binary String Alternating
1994. Minimum Number of Swaps to Make the Binary String Alternating
2. Add Two Numbers
2. Add Two Numbers
20. Valid Parentheses
20. Valid Parentheses
200. Number of Islands
200. Number of Islands
2019. Product of Two Run-Length Encoded Arrays
2019. Product of Two Run-Length Encoded Arrays
202. Happy Number
202. Happy Number
206. Reverse Linked List
206. Reverse Linked List
207. Course Schedule
207. Course Schedule
209. Minimum Size Subarray Sum
209. Minimum Size Subarray Sum
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists
210. Course Schedule II
210. Course Schedule II
2121. Find if Path Exists in Graph
2121. Find if Path Exists in Graph
215. Kth Largest Element in an Array
215. Kth Largest Element in an Array
View all files
Repository files navigation
README
More
items
Leetcode Problems
Solutions to Leetcode problems
About
Solutions to Leetcode problems
Resources
Readme
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.