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
Type
/
to 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 }}
Kratosmsn11
/
LeetCode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
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
462 Commits
462 Commits
0001. Two Sum.java
0001. Two Sum.java
0001. Two Sum.py
0001. Two Sum.py
0001. Two Sum1.java
0001. Two Sum1.java
0001. Two Sum1.ts
0001. Two Sum1.ts
0002. Add Two Numbers.java
0002. Add Two Numbers.java
0003. Longest Substring Without Repeating Characters.java
0003. Longest Substring Without Repeating Characters.java
0004. Median of Two Sorted Arrays.java
0004. Median of Two Sorted Arrays.java
0009. Palindrome Number.java
0009. Palindrome Number.java
0011. Container With Most Water.java
0011. Container With Most Water.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
0020. Valid Parentheses.ts
0020. Valid Parentheses.ts
0021. Merge Two Sorted Lists.java
0021. Merge Two Sorted Lists.java
0021. Merge Two Sorted Lists.ts
0021. Merge Two Sorted Lists.ts
0024. Swap Nodes in Pairs.java
0024. Swap Nodes in Pairs.java
0026. Remove Duplicates from Sorted Array.java
0026. Remove Duplicates from Sorted Array.java
0026. Remove Duplicates from Sorted Array.py
0026. Remove Duplicates from Sorted Array.py
0027. Remove Element.java
0027. Remove Element.java
0027. Remove Element.py
0027. Remove Element.py
0028. Find the Index of the First Occurrence in a String.java
0028. Find the Index of the First Occurrence in a String.java
0029. Divide Two Integers.java
0029. Divide Two Integers.java
0033. Search in Rotated Sorted Array.java
0033. Search in Rotated Sorted Array.java
0034. Find First and Last Position of Element in Sorted Array.java
0034. Find First and Last Position of Element in Sorted Array.java
0035. Search Insert Position1.java
0035. Search Insert Position1.java
0035. Search Insert Position2.java
0035. Search Insert Position2.java
0043. Multiply Strings.java
0043. Multiply Strings.java
0046. Permutations.java
0046. Permutations.java
0049. Group Anagrams.java
0049. Group Anagrams.java
0049. Group Anagrams2.java
0049. Group Anagrams2.java
0050. Pow(x, n).java
0050. Pow(x, n).java
0053. Maximum Subarray.java
0053. Maximum Subarray.java
0054. Spiral Matrix.java
0054. Spiral Matrix.java
0058. Length of Last Word.java
0058. Length of Last Word.java
0058. Length of Last Word.ts
0058. Length of Last Word.ts
0059. Spiral Matrix II.java
0059. Spiral Matrix II.java
0062. Unique Paths.java
0062. Unique Paths.java
0066. Plus One.java
0066. Plus One.java
0067. Add Binary.java
0067. Add Binary.java
0069. Sqrt(x).java
0069. Sqrt(x).java
0069. Sqrt(x)1.java
0069. Sqrt(x)1.java
0069. Sqrt(x)2.java
0069. Sqrt(x)2.java
0070. Climbing Stairs.java
0070. Climbing Stairs.java
0074. Search a 2D Matrix.java
0074. Search a 2D Matrix.java
0077. Combinations.java
0077. Combinations.java
0078. Subsets.java
0078. Subsets.java
0079. Word Search.java
0079. Word Search.java
0083. Remove Duplicates from Sorted List.java
0083. Remove Duplicates from Sorted List.java
0088. Merge Sorted Array.java
0088. Merge Sorted Array.java
0088. Merge Sorted Array.py
0088. Merge Sorted Array.py
0090. Subsets II.java
0090. Subsets II.java
0100. Same Tree.java
0100. Same Tree.java
0104. Maximum Depth of Binary Tree.java
0104. Maximum Depth of Binary Tree.java
0108. Convert Sorted Array to Binary Search Tree.java
0108. Convert Sorted Array to Binary Search Tree.java
0109. Convert Sorted List to Binary Search Tree.java
0109. Convert Sorted List to Binary Search Tree.java
0110. Balanced Binary Tree.java
0110. Balanced Binary Tree.java
0111. Minimum Depth of Binary Tree.java
0111. Minimum Depth of Binary Tree.java
0111. Minimum Depth of Binary Tree.ts
0111. Minimum Depth of Binary Tree.ts
0118. Pascal's Triangle.java
0118. Pascal's Triangle.java
0119. Pascal's Triangle II.java
0119. Pascal's Triangle II.java
0121. Best Time to Buy and Sell Stock.java
0121. Best Time to Buy and Sell Stock.java
0121. Best Time to Buy and Sell Stock1.java
0121. Best Time to Buy and Sell Stock1.java
0125. Valid Palindrome.java
0125. Valid Palindrome.java
0136. Single Number1.java
0136. Single Number1.java
0136. Single Number2.java
0136. Single Number2.java
0138. Copy List with Random Pointer.java
0138. Copy List with Random Pointer.java
0141. Linked List Cycle.java
0141. Linked List Cycle.java
0141. Linked List Cycle1.java
0141. Linked List Cycle1.java
0142. Linked List Cycle II.java
0142. Linked List Cycle II.java
0146. LRU Cache.java
0146. LRU Cache.java
0148. Sort List.java
0148. Sort List.java
0151. Reverse Words in a String.java
0151. Reverse Words in a String.java
0151. Reverse Words in a String.py
0151. Reverse Words in a String.py
0152. Maximum Product Subarray.java
0152. Maximum Product Subarray.java
0153. Find Minimum in Rotated Sorted Array.java
0153. Find Minimum in Rotated Sorted Array.java
0162. Find Peak Element.java
0162. Find Peak Element.java
0167. Two Sum II - Input Array Is Sorted.java
0167. Two Sum II - Input Array Is Sorted.java
0169. Majority Element.java
0169. Majority Element.java
0169. Majority Element1.java
0169. Majority Element1.java
0172. Factorial Trailing Zeroes.java
0172. Factorial Trailing Zeroes.java
01877. Minimize Maximum Pair Sum in Array.py
01877. Minimize Maximum Pair Sum in Array.py
0191. Number of 1 Bits1.java
0191. Number of 1 Bits1.java
0191. Number of 1 Bits2.java
0191. Number of 1 Bits2.java
0191. Number of 1 Bits3.java
0191. Number of 1 Bits3.java
0198. House Robber.java
0198. House Robber.java
0200. Number of Islands.java
0200. Number of Islands.java
0202. Happy Number.java
0202. Happy Number.java
0206. Reverse Linked List.java
0206. Reverse Linked List.java
0209. Minimum Size Subarray Sum.java
0209. Minimum Size Subarray Sum.java
0213. House Robber II.java
0213. House Robber II.java
0217. Contains Duplicate.java
0217. Contains Duplicate.java
0217. Contains Duplicate.py
0217. Contains Duplicate.py
0219. Contains Duplicate II.java
0219. Contains Duplicate II.java
0228. Summary Ranges.java
0228. Summary Ranges.java
0228. Summary Ranges1.java
0228. Summary Ranges1.java
0231. Power of Two.java
0231. Power of Two.java
0231. Power of Two1.java
0231. Power of Two1.java
0242. Valid Anagram.java
0242. Valid Anagram.java
0242. Valid Anagram.py
0242. Valid Anagram.py
View all files
Repository files navigation
README
More
items
LeetCode Solutions
This is a repository for all the problems solved on leetcode.
About
This is a repository for all the problems solved on leetcode.
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.