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
/
easy
/
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
/
easy
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0001. Two Sum.java
0001. Two Sum.java
0009. Palindrome Number.java
0009. Palindrome Number.java
0013. Roman to Integer.java
0013. Roman to Integer.java
0014. Longest Common Prefix.java
0014. Longest Common Prefix.java
0019. Remove Nth Node From End of List.java
0019. Remove Nth Node From End of List.java
0020. Valid Parentheses.java
0020. Valid Parentheses.java
0021. Merge Two Sorted Lists.java
0021. Merge Two Sorted Lists.java
0026. Remove Duplicates from Sorted Array.java
0026. Remove Duplicates from Sorted Array.java
0027. Remove Element.java
0027. Remove Element.java
0067. Add Binary.java
0067. Add Binary.java
0069. Sqrt(x).java
0069. Sqrt(x).java
0080. Remove Duplicates from Sorted Array II.java
0080. Remove Duplicates from Sorted Array II.java
0088. Merge Sorted Array.java
0088. Merge Sorted Array.java
0101. Symmetric Tree.java
0101. Symmetric Tree.java
0104. Maximum Depth of Binary Tree.java
0104. Maximum Depth of Binary Tree.java
0110. Balanced Binary Tree.java
0110. Balanced Binary Tree.java
0112. Path Sum.java
0112. Path Sum.java
0118. Pascal's Triangle.java
0118. Pascal's Triangle.java
0121. Best Time to Buy and Sell Stock.java
0121. Best Time to Buy and Sell Stock.java
0125. Valid Palindrome.java
0125. Valid Palindrome.java
0136. Single Number.java
0136. Single Number.java
0141. Linked List Cycle.java
0141. Linked List Cycle.java
0160. Intersection of Two Linked Lists.java
0160. Intersection of Two Linked Lists.java
0169. Majority Element.java
0169. Majority Element.java
0190. Reverse Bits.java
0190. Reverse Bits.java
0191. Number of 1 Bits.java
0191. Number of 1 Bits.java
0202. Happy Number.java
0202. Happy Number.java
0203. Remove Linked List Elements.java
0203. Remove Linked List Elements.java
0206. Reverse Linked List.java
0206. Reverse Linked List.java
0219. Contains Duplicate II.java
0219. Contains Duplicate II.java
0225. Implement Stack using Queues.java
0225. Implement Stack using Queues.java
0226. Invert Binary Tree.java
0226. Invert Binary Tree.java
0231. Power of Two.java
0231. Power of Two.java
0232. Implement Queue using Stacks.java
0232. Implement Queue using Stacks.java
0234. Palindrome Linked List.java
0234. Palindrome Linked List.java
0242. Valid Anagram.java
0242. Valid Anagram.java
0257. Binary Tree Paths.java
0257. Binary Tree Paths.java
0258. Add Digits.java
0258. Add Digits.java
0263. Ugly Number.java
0263. Ugly Number.java
0268. Missing Number.java
0268. Missing Number.java
0278. First Bad Version.java
0278. First Bad Version.java
0283. Move Zeroes.java
0283. Move Zeroes.java
0292. Nim Game.java
0292. Nim Game.java
0303. Range Sum Query - Immutable.java
0303. Range Sum Query - Immutable.java
0325. Maximum Sum of Subarrays of Size K.java
0325. Maximum Sum of Subarrays of Size K.java
0326. Power of Three.java
0326. Power of Three.java
0342. Power of Four.java
0342. Power of Four.java
0344. Reverse String.java
0344. Reverse String.java
0345. Reverse Vowels of a String.java
0345. Reverse Vowels of a String.java
0367. Valid Perfect Square.java
0367. Valid Perfect Square.java
0374. Guess Number Higher or Lower.java
0374. Guess Number Higher or Lower.java
0383. Ransom Note.java
0383. Ransom Note.java
0387. First Unique Character in a String.java
0387. First Unique Character in a String.java
0389. Find the Difference.java
0389. Find the Difference.java
0392. Is Subsequence.java
0392. Is Subsequence.java
0409. Longest Palindrome.java
0409. Longest Palindrome.java
0414. Third Maximum Number.java
0414. Third Maximum Number.java
0434. Number of Segments in a String.java
0434. Number of Segments in a String.java
0441. Arranging Coins.java
0441. Arranging Coins.java
0448. Find All Numbers Disappeared in an Array.java
0448. Find All Numbers Disappeared in an Array.java
0455. Assign Cookies.java
0455. Assign Cookies.java
0461. Hamming Distance.java
0461. Hamming Distance.java
0476. Number Complement.java
0476. Number Complement.java
0485. Max Consecutive Ones.java
0485. Max Consecutive Ones.java
0495. Teemo Attacking.java
0495. Teemo Attacking.java
0496. Next Greater Element I.java
0496. Next Greater Element I.java
0506. Relative Ranks.java
0506. Relative Ranks.java
0509. Fibonacci Number.java
0509. Fibonacci Number.java
0541. Reverse String II.java
0541. Reverse String II.java
0557. Reverse Words in a String III.java
0557. Reverse Words in a String III.java
0561. Array Partition.java
0561. Array Partition.java
0563. Binary Tree Tilt.java
0563. Binary Tree Tilt.java
0594. Longest Harmonious Subsequence.java
0594. Longest Harmonious Subsequence.java
0645. Set Mismatch.java
0645. Set Mismatch.java
0680. Valid Palindrome II.java
0680. Valid Palindrome II.java
0693. Binary Number with Alternating Bits.java
0693. Binary Number with Alternating Bits.java
0696. Count Binary Substrings.java
0696. Count Binary Substrings.java
0700. Search in a Binary Search Tree.java
0700. Search in a Binary Search Tree.java
0703. Kth Largest Element in a Stream.java
0703. Kth Largest Element in a Stream.java
0771. Jewels and Stones.java
0771. Jewels and Stones.java
0783. Minimum Distance Between BST Nodes.java
0783. Minimum Distance Between BST Nodes.java
0796. Rotate String.java
0796. Rotate String.java
0804. Unique Morse Code Words.java
0804. Unique Morse Code Words.java
0806. Number of Lines To Write String.java
0806. Number of Lines To Write String.java
0819. Most Common Word.java
0819. Most Common Word.java
0844. Backspace String Compare.java
0844. Backspace String Compare.java
0860. Lemonade Change.java
0860. Lemonade Change.java
0867. Transpose Matrix.java
0867. Transpose Matrix.java
0905. Sort Array By Parity.java
0905. Sort Array By Parity.java
0922. Sort Array By Parity II.java
0922. Sort Array By Parity II.java
0933. Number of Recent Calls.java
0933. Number of Recent Calls.java
0977. Squares of a Sorted Array.java
0977. Squares of a Sorted Array.java
0993. Cousins in Binary Tree.java
0993. Cousins in Binary Tree.java
1009. Complement of Base 10 Integer.java
1009. Complement of Base 10 Integer.java
1046. Last Stone Weight.java
1046. Last Stone Weight.java
1089. Duplicate Zeros.java
1089. Duplicate Zeros.java
1185. Day of the Week.java
1185. Day of the Week.java
1200. Minimum Absolute Difference.java
1200. Minimum Absolute Difference.java
1207. Unique Number of Occurrences.java
1207. Unique Number of Occurrences.java
1217. Minimum Cost to Move Chips to The Same Position.java
1217. Minimum Cost to Move Chips to The Same Position.java
View all files
You can’t perform that action at this time.