Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
elchibek5
leetcode-patterns-java
Repository navigation
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
leetcode-patterns-java
/
LeetCode_Problems
/
Java
/
medium
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
main
Breadcrumbs
leetcode-patterns-java
/
LeetCode_Problems
/
Java
/
medium
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0002. Add Two Numbers.java
0002. Add Two Numbers.java
0003. Longest Substring Without Repeating Characters.java
0003. Longest Substring Without Repeating Characters.java
0007. Reverse Integer.java
0007. Reverse Integer.java
0011. Container With Most Water.java
0011. Container With Most Water.java
0015. 3Sum.java
0015. 3Sum.java
0022. Generate Parentheses.java
0022. Generate Parentheses.java
0024. Swap Nodes in Pairs.java
0024. Swap Nodes in Pairs.java
0045. Jump Game II.java
0045. Jump Game II.java
0046. Permutations.java
0046. Permutations.java
0048. Rotate Image.java
0048. Rotate Image.java
0049. Group Anagrams.java
0049. Group Anagrams.java
0050. Pow(x, n).java
0050. Pow(x, n).java
0054. Spiral Matrix.java
0054. Spiral Matrix.java
0055. Jump Game.java
0055. Jump Game.java
0056. Merge Intervals.java
0056. Merge Intervals.java
0057. Insert Interval.java
0057. Insert Interval.java
0061. Rotate List.java
0061. Rotate List.java
0075. Sort Colors.java
0075. Sort Colors.java
0077. Combinations.java
0077. Combinations.java
0086. Partition List.java
0086. Partition List.java
0092. Reverse Linked List II.java
0092. Reverse Linked List II.java
0098. Validate Binary Search Tree.java
0098. Validate Binary Search Tree.java
0102. Binary Tree Level Order Traversal.java
0102. Binary Tree Level Order Traversal.java
0103. Binary Tree Zigzag Level Order Traversal.java
0103. Binary Tree Zigzag Level Order Traversal.java
0105. Construct Binary Tree from Preorder and Inorder Traversal.java
0105. Construct Binary Tree from Preorder and Inorder Traversal.java
0107. Binary Tree Level Order Traversal II.java
0107. Binary Tree Level Order Traversal II.java
0113. Path Sum II.java
0113. Path Sum II.java
0122. Best Time to Buy and Sell Stock II.java
0122. Best Time to Buy and Sell Stock II.java
0128. Longest Consecutive Sequence.java
0128. Longest Consecutive Sequence.java
0134. Gas Station.java
0134. Gas Station.java
0142. Linked List Cycle II.java
0142. Linked List Cycle II.java
0143. Reorder List.java
0143. Reorder List.java
0147. Insertion Sort List.java
0147. Insertion Sort List.java
0150. Evaluate Reverse Polish Notation.java
0150. Evaluate Reverse Polish Notation.java
0153. Find Minimum in Rotated Sorted Array.java
0153. Find Minimum in Rotated Sorted Array.java
0155. Min Stack.java
0155. Min Stack.java
0167. Two Sum II - Input Array Is Sorted.java
0167. Two Sum II - Input Array Is Sorted.java
0189. Rotate Array.java
0189. Rotate Array.java
0199. Binary Tree Right Side View.java
0199. Binary Tree Right Side View.java
0215. Kth Largest Element in an Array.java
0215. Kth Largest Element in an Array.java
0229. Majority Element II.java
0229. Majority Element II.java
0235. Lowest Common Ancestor of a Binary Search Tree.java
0235. Lowest Common Ancestor of a Binary Search Tree.java
0236. Lowest Common Ancestor of a Binary Tree.java
0236. Lowest Common Ancestor of a Binary Tree.java
0237. Delete Node in a Linked List.java
0237. Delete Node in a Linked List.java
0238. Product of Array Except Self.java
0238. Product of Array Except Self.java
0274. H-Index.java
0274. H-Index.java
0287. Find the Duplicate Number.java
0287. Find the Duplicate Number.java
0304. Range Sum Query 2D - Immutable.java
0304. Range Sum Query 2D - Immutable.java
0324. Wiggle Sort II.java
0324. Wiggle Sort II.java
0347. Top K Frequent Elements.java
0347. Top K Frequent Elements.java
0350. Intersection of Two Arrays II.java
0350. Intersection of Two Arrays II.java
0370. Range Addition.java
0370. Range Addition.java
0394. Decode String.java
0394. Decode String.java
0396. Rotate Function.java
0396. Rotate Function.java
0402. Remove K Digits.java
0402. Remove K Digits.java
0404. Sum of Left Leaves.java
0404. Sum of Left Leaves.java
0424. Longest Repeating Character Replacement.java
0424. Longest Repeating Character Replacement.java
0435. Non-overlapping Intervals.java
0435. Non-overlapping Intervals.java
0437. Path Sum III.java
0437. Path Sum III.java
0443. String Compression.java
0443. String Compression.java
0450. Delete Node in a BST.java
0450. Delete Node in a BST.java
0451. Sort Characters By Frequency.java
0451. Sort Characters By Frequency.java
0503. Next Greater Element II.java
0503. Next Greater Element II.java
0560. Subarray Sum Equals K.java
0560. Subarray Sum Equals K.java
0611. Valid Triangle Number.java
0611. Valid Triangle Number.java
0621. Task Scheduler.java
0621. Task Scheduler.java
0641. Design Circular Deque.java
0641. Design Circular Deque.java
0659. Split Array into Consecutive Subsequences.java
0659. Split Array into Consecutive Subsequences.java
0692. Top K Frequent Words.java
0692. Top K Frequent Words.java
0698. Partition to K Equal Sum Subsets.java
0698. Partition to K Equal Sum Subsets.java
0721. Accounts Merge.java
0721. Accounts Merge.java
0739. Daily Temperatures.java
0739. Daily Temperatures.java
0788. Rotated Digits.java
0788. Rotated Digits.java
0901. Online Stock Span.java
0901. Online Stock Span.java
0904. Fruit Into Baskets.java
0904. Fruit Into Baskets.java
0912. Sort an Array.java
0912. Sort an Array.java
0973. K Closest Points to Origin.java
0973. K Closest Points to Origin.java
0990. Satisfiability of Equality Equations.java
0990. Satisfiability of Equality Equations.java
0994. Rotting Oranges.java
0994. Rotting Oranges.java
1011. Capacity To Ship Packages Within D Days.java
1011. Capacity To Ship Packages Within D Days.java
1109. Corporate Flight Bookings.java
1109. Corporate Flight Bookings.java
1202. Smallest String With Swaps.java
1202. Smallest String With Swaps.java
1306. Jump Game III.java
1306. Jump Game III.java
1423. Maximum Points You Can Obtain from Cards.java
1423. Maximum Points You Can Obtain from Cards.java
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit.java
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit.java
1472. Design Browser History.java
1472. Design Browser History.java
1488. Avoid Flood in The City.java
1488. Avoid Flood in The City.java
1674. Minimum Moves to Make Array Complementary.java
1674. Minimum Moves to Make Array Complementary.java
1775. Equal Sum Arrays With Minimum Number of Operations.java
1775. Equal Sum Arrays With Minimum Number of Operations.java
1792. Maximum Average Pass Ratio.java
1792. Maximum Average Pass Ratio.java
1861. Rotating the Box.java
1861. Rotating the Box.java
1914. Cyclically Rotating a Grid.java
1914. Cyclically Rotating a Grid.java
2161. Partition Array According to Given Pivot.java
2161. Partition Array According to Given Pivot.java
2316. Count Unreachable Pairs of Nodes in an Undirected Graph.java
2316. Count Unreachable Pairs of Nodes in an Undirected Graph.java
2415. Reverse Odd Levels of Binary Tree.java
2415. Reverse Odd Levels of Binary Tree.java
2461. Maximum Sum of Distinct Subarrays With Length K.java
2461. Maximum Sum of Distinct Subarrays With Length K.java
2536. Increment Submatrices by One.java
2536. Increment Submatrices by One.java
2657. Find the Prefix Common Array of Two Arrays.java
2657. Find the Prefix Common Array of Two Arrays.java
2770. Maximum Number of Jumps to Reach the Last Index.java
2770. Maximum Number of Jumps to Reach the Last Index.java
3629. Minimum Jumps to Reach End via Prime Teleportation.java
3629. Minimum Jumps to Reach End via Prime Teleportation.java
View all files
You can’t perform that action at this time.