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 }}
Trilochna
/
Data-Structures-And-Algorithms-In-Java
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
6
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
Files
Expand file tree
main
Breadcrumbs
Data-Structures-And-Algorithms-In-Java
/
Leetcode
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
Data-Structures-And-Algorithms-In-Java
/
Leetcode
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
37. Sudoku Solver
37. Sudoku Solver
68. Text Justification
68. Text Justification
Arrays
Arrays
Hashing
Hashing
LinkedLists/
2. Add Two Numbers
LinkedLists/
2. Add Two Numbers
Matrix
Matrix
Queues/
232. Implement Queue using Stacks
Queues/
232. Implement Queue using Stacks
Recursion/
509. Fibonacci Number
Recursion/
509. Fibonacci Number
Stacks/
84. Largest Rectangle in Histogram
Stacks/
84. Largest Rectangle in Histogram
Strings
Strings
100. Same Tree.java
100. Same Tree.java
102. Binary Tree Level Order Traversal.java
102. Binary Tree Level Order Traversal.java
104. Maximum Depth of Binary Tree.java
104. Maximum Depth of Binary Tree.java
105. Construct Binary Tree from Preorder and Inorder Traversal.java
105. Construct Binary Tree from Preorder and Inorder Traversal.java
107. Binary Tree Level Order Traversal II.java
107. Binary Tree Level Order Traversal II.java
11. Container With Most Water.java
11. Container With Most Water.java
110. Balanced Binary Tree.java
110. Balanced Binary Tree.java
121. Best Time to Buy and Sell Stock.java
121. Best Time to Buy and Sell Stock.java
124. Binary Tree Maximum Path Sum.java
124. Binary Tree Maximum Path Sum.java
125. Valid Palindrome.java
125. Valid Palindrome.java
128. Longest Consecutive Sequence.java
128. Longest Consecutive Sequence.java
131. Palindrome Partitioning.java
131. Palindrome Partitioning.java
138. Copy List with Random Pointer.java
138. Copy List with Random Pointer.java
141. Linked List Cycle.java
141. Linked List Cycle.java
143. Reorder List.java
143. Reorder List.java
144. Binary Tree Preorder Traversal.java
144. Binary Tree Preorder Traversal.java
1448. Count Good Nodes in Binary Tree.java
1448. Count Good Nodes in Binary Tree.java
145. Binary Tree Postorder Traversal.java
145. Binary Tree Postorder Traversal.java
146. LRU Cache.java
146. LRU Cache.java
15. 3Sum.java
15. 3Sum.java
150. Evaluate Reverse Polish Notation.java
150. Evaluate Reverse Polish Notation.java
1512. Number of Good Pairs.java
1512. Number of Good Pairs.java
153. Find Minimum in Rotated Sorted Array.java
153. Find Minimum in Rotated Sorted Array.java
155. Min Stack.java
155. Min Stack.java
167. Two Sum II - Input Array Is Sorted.java
167. Two Sum II - Input Array Is Sorted.java
17. Letter Combinations of a Phone Number.java
17. Letter Combinations of a Phone Number.java
19. Remove Nth Node From End of List.java
19. Remove Nth Node From End of List.java
199. Binary Tree Right Side View.java
199. Binary Tree Right Side View.java
2. Add Two Numbers.java
2. Add Two Numbers.java
206. Reverse Linked List.java
206. Reverse Linked List.java
208. Implement Trie (Prefix Tree).java
208. Implement Trie (Prefix Tree).java
21. Merge Two Sorted Lists.java
21. Merge Two Sorted Lists.java
211. Design Add and Search Words Data Structure.java
211. Design Add and Search Words Data Structure.java
212. Word Search II.java
212. Word Search II.java
22. Generate Parentheses.java
22. Generate Parentheses.java
226. Invert Binary Tree.java
226. Invert Binary Tree.java
23. Merge k Sorted Lists.java
23. Merge k Sorted Lists.java
230. Kth Smallest Element in a BST.java
230. Kth Smallest Element in a BST.java
235. Lowest Common Ancestor of a Binary Search Tree.java
235. Lowest Common Ancestor of a Binary Search Tree.java
239. Sliding Window Maximum.java
239. Sliding Window Maximum.java
25. Reverse Nodes in k-Group.java
25. Reverse Nodes in k-Group.java
287. Find the Duplicate Number.java
287. Find the Duplicate Number.java
297. Serialize and Deserialize Binary Tree.java
297. Serialize and Deserialize Binary Tree.java
3. Longest Substring Without Repeating Characters.java
3. Longest Substring Without Repeating Characters.java
33. Search in Rotated Sorted Array.java
33. Search in Rotated Sorted Array.java
36. Valid Sudoku.java
36. Valid Sudoku.java
39. Combination Sum.java
39. Combination Sum.java
4. Median of Two Sorted Arrays.java
4. Median of Two Sorted Arrays.java
40. Combination Sum II.java
40. Combination Sum II.java
42. Trapping Rain Water.java
42. Trapping Rain Water.java
424. Longest Repeating Character Replacement.java
424. Longest Repeating Character Replacement.java
46. Permutations.java
46. Permutations.java
47. Permutations II.java
47. Permutations II.java
51. N-Queens.java
51. N-Queens.java
52. N-Queens II.java
52. N-Queens II.java
543. Diameter of Binary Tree.java
543. Diameter of Binary Tree.java
567. Permutation in String.java
567. Permutation in String.java
572. Subtree of Another Tree.java
572. Subtree of Another Tree.java
704. Binary Search.java
704. Binary Search.java
739. Daily Temperatures.java
739. Daily Temperatures.java
74. Search a 2D Matrix.java
74. Search a 2D Matrix.java
76. Minimum Window Substring.java
76. Minimum Window Substring.java
78. Subsets.java
78. Subsets.java
79. Word Search.java
79. Word Search.java
84. Largest Rectangle in Histogram.java
84. Largest Rectangle in Histogram.java
853. Car Fleet.java
853. Car Fleet.java
875. Koko Eating Bananas.java
875. Koko Eating Bananas.java
90. Subsets II.java
90. Subsets II.java
94. Binary Tree Inorder Traversal.java
94. Binary Tree Inorder Traversal.java
98. Validate Binary Search Tree.java
98. Validate Binary Search Tree.java
981. Time Based Key-Value Store.java
981. Time Based Key-Value Store.java
View all files
You can’t perform that action at this time.