Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
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 or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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 }}
Dhruv-Gaba
/
LeetCode-Problems
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Dhruv-Gaba/LeetCode-Problems
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
500 Commits
500 Commits
100. Same Tree
100. Same Tree
1008. Construct Binary Search Tree from Preorder Traversal
1008. Construct Binary Search Tree from Preorder Traversal
101. Symmetric Tree
101. Symmetric Tree
1010. Pairs of Songs With Total Durations Divisible by 60
1010. Pairs of Songs With Total Durations Divisible by 60
1016. Binary String With Substrings Representing 1 To N
1016. Binary String With Substrings Representing 1 To N
102. Binary Tree Level Order Traversal
102. Binary Tree Level Order Traversal
1020. Number of Enclaves
1020. Number of Enclaves
1022. Sum of Root To Leaf Binary Numbers
1022. Sum of Root To Leaf Binary Numbers
103. Binary Tree Zigzag Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
104. Maximum Depth of Binary Tree
104. Maximum Depth of Binary Tree
1072. Flip Columns For Maximum Number of Equal Rows
1072. Flip Columns For Maximum Number of Equal Rows
1079. Letter Tile Possibilities
1079. Letter Tile Possibilities
108. Convert Sorted Array to Binary Search Tree
108. Convert Sorted Array to Binary Search Tree
1091. Shortest Path in Binary Matrix
1091. Shortest Path in Binary Matrix
110. Balanced Binary Tree
110. Balanced Binary Tree
111. Minimum Depth of Binary Tree
111. Minimum Depth of Binary Tree
1110. Delete Nodes And Return Forest
1110. Delete Nodes And Return Forest
112. Path Sum
112. Path Sum
1137. N-th Tribonacci Number
1137. N-th Tribonacci Number
114. Flatten Binary Tree to Linked List
114. Flatten Binary Tree to Linked List
1140. Stone Game II
1140. Stone Game II
1161. Maximum Level Sum of a Binary Tree
1161. Maximum Level Sum of a Binary Tree
1190. Reverse Substrings Between Each Pair of Parentheses
1190. Reverse Substrings Between Each Pair of Parentheses
12. Integer to Roman
12. Integer to Roman
121. Best Time to Buy and Sell Stock
121. Best Time to Buy and Sell Stock
1221. Split a String in Balanced Strings
1221. Split a String in Balanced Strings
1233. Remove Sub-Folders from the Filesystem
1233. Remove Sub-Folders from the Filesystem
124. Binary Tree Maximum Path Sum
124. Binary Tree Maximum Path Sum
1248. Count Number of Nice Subarrays
1248. Count Number of Nice Subarrays
1261. Find Elements in a Contaminated Binary Tree
1261. Find Elements in a Contaminated Binary Tree
1267. Count Servers that Communicate
1267. Count Servers that Communicate
1277. Count Square Submatrices with All Ones
1277. Count Square Submatrices with All Ones
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
1310. XOR Queries of a Subarray
1310. XOR Queries of a Subarray
1319. Number of Operations to Make Network Connected
1319. Number of Operations to Make Network Connected
1325. Delete Leaves With a Given Value
1325. Delete Leaves With a Given Value
1331. Rank Transform of an Array
1331. Rank Transform of an Array
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
1346. Check If N and Its Double Exist
1346. Check If N and Its Double Exist
135. Candy
135. Candy
1352. Product of the Last K Numbers
1352. Product of the Last K Numbers
1353. Maximum Number of Events That Can Be Attended
1353. Maximum Number of Events That Can Be Attended
1358. Number of Substrings Containing All Three Characters
1358. Number of Substrings Containing All Three Characters
1367. Linked List in Binary Tree
1367. Linked List in Binary Tree
1368. Minimum Cost to Make at Least One Valid Path in a Grid
1368. Minimum Cost to Make at Least One Valid Path in a Grid
1371. Find the Longest Substring Containing Vowels in Even Counts
1371. Find the Longest Substring Containing Vowels in Even Counts
1373. Maximum Sum BST in Binary Tree
1373. Maximum Sum BST in Binary Tree
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
138. Copy List with Random Pointer
138. Copy List with Random Pointer
1380. Lucky Numbers in a Matrix
1380. Lucky Numbers in a Matrix
1382. Balance a Binary Search Tree
1382. Balance a Binary Search Tree
14. Longest Common Prefix
14. Longest Common Prefix
1400. Construct K Palindrome Strings
1400. Construct K Palindrome Strings
1408. String Matching in an Array
1408. String Matching in an Array
141. Linked List Cycle
141. Linked List Cycle
1415. The k-th Lexicographical String of All Happy Strings of Length n
1415. The k-th Lexicographical String of All Happy Strings of Length n
142. Linked List Cycle II
142. Linked List Cycle II
1422. Maximum Score After Splitting a String
1422. Maximum Score After Splitting a String
143. Reorder List
143. Reorder List
144. Binary Tree Preorder Traversal
144. Binary Tree Preorder Traversal
145. Binary Tree Postorder Traversal
145. Binary Tree Postorder Traversal
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
146. LRU Cache
146. LRU Cache
1460. Make Two Arrays Equal by Reversing Subarrays
1460. Make Two Arrays Equal by Reversing Subarrays
1462. Course Schedule IV
1462. Course Schedule IV
148. Sort List
148. Sort List
1498. Number of Subsequences That Satisfy the Given Sum Condition
1498. Number of Subsequences That Satisfy the Given Sum Condition
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
151. Reverse Words in a String
151. Reverse Words in a String
1514. Path with Maximum Probability
1514. Path with Maximum Probability
1518. Water Bottles
1518. Water Bottles
1524. Number of Sub-arrays With Odd Sum
1524. Number of Sub-arrays With Odd Sum
153. Find Minimum in Rotated Sorted Array
153. Find Minimum in Rotated Sorted Array
1568. Minimum Number of Days to Disconnect Island
1568. Minimum Number of Days to Disconnect Island
1574. Shortest Subarray to be Removed to Make Array Sorted
1574. Shortest Subarray to be Removed to Make Array Sorted
1584. Min Cost to Connect All Points
1584. Min Cost to Connect All Points
1593. Split a String Into the Max Number of Unique Substrings
1593. Split a String Into the Max Number of Unique Substrings
1598. Crawler Log Folder
1598. Crawler Log Folder
160. Intersection of Two Linked Lists
160. Intersection of Two Linked Lists
1605. Find Valid Matrix Given Row and Column Sums
1605. Find Valid Matrix Given Row and Column Sums
1608. Special Array With X Elements Greater Than or Equal X
1608. Special Array With X Elements Greater Than or Equal X
1614. Maximum Nesting Depth of the Parentheses
1614. Maximum Nesting Depth of the Parentheses
162. Find Peak Element
162. Find Peak Element
1631. Path With Minimum Effort
1631. Path With Minimum Effort
1636. Sort Array by Increasing Frequency
1636. Sort Array by Increasing Frequency
1637. Widest Vertical Area Between Two Points Containing No Points
1637. Widest Vertical Area Between Two Points Containing No Points
1652. Defuse the Bomb
1652. Defuse the Bomb
1653. Minimum Deletions to Make String Balanced
1653. Minimum Deletions to Make String Balanced
1663. Smallest String With A Given Numeric Value
1663. Smallest String With A Given Numeric Value
1684. Count the Number of Consistent Strings
1684. Count the Number of Consistent Strings
169. Majority Element
169. Majority Element
1701. Average Waiting Time
1701. Average Waiting Time
1710. Maximum Units on a Truck
1710. Maximum Units on a Truck
1716. Calculate Money in Leetcode Bank
1716. Calculate Money in Leetcode Bank
1717. Maximum Score From Removing Substrings
1717. Maximum Score From Removing Substrings
1718. Construct the Lexicographically Largest Valid Sequence
1718. Construct the Lexicographically Largest Valid Sequence
1721. Swapping Nodes in a Linked List
1721. Swapping Nodes in a Linked List
1726. Tuple with Same Product
1726. Tuple with Same Product
View all files
About
No description, website, or topics provided.
Uh oh!
There was an error while loading.
Please reload this page
.
Activity
Stars
4
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
No releases published
Packages
0
Uh oh!
There was an error while loading.
Please reload this page
.
Contributors
Uh oh!
There was an error while loading.
Please reload this page
.
Languages
Java
100.0%
You can’t perform that action at this time.