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
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 }}
KMaitreya
/
Leetcode
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
431 Commits
431 Commits
Folders and files
Name
Name
Last commit message
Last commit date
1 Two Sum
1 Two Sum
100 Same Tree
100 Same Tree
1002 Find Common Characters
1002 Find Common Characters
101 Symmetric Tree
101 Symmetric Tree
1014 Best Sightseeing Pair
1014 Best Sightseeing Pair
102 Binary Tree Level Order Traversal
102 Binary Tree Level Order Traversal
1038 Binary Search Tree to Greater Sum Tree
1038 Binary Search Tree to Greater Sum Tree
104 Maximum Depth of Binary Tree
104 Maximum Depth of Binary Tree
1046 Last Stone Weight
1046 Last Stone Weight
105 Construct Binary Tree from Preorder and Inorder Traversal
105 Construct Binary Tree from Preorder and Inorder Traversal
1051 Height Checker
1051 Height Checker
1052 Grumpy Bookstore Owner
1052 Grumpy Bookstore Owner
1072 Flip Columns For Maximum Number of Equal Rows
1072 Flip Columns For Maximum Number of Equal Rows
11 Container With Most Water
11 Container With Most Water
110 Balanced Binary Tree
110 Balanced Binary Tree
1105 Filling Bookcase Shelves
1105 Filling Bookcase Shelves
1106 Parsing A Boolean Expression
1106 Parsing A Boolean Expression
1110 Delete Nodes And Return Forest
1110 Delete Nodes And Return Forest
112 Path Sum
112 Path Sum
1122 Relative Sort Array
1122 Relative Sort Array
1140 Stone Game II
1140 Stone Game II
1143 Longest Common Subsequence
1143 Longest Common Subsequence
1148 Article Views I
1148 Article Views I
118 Pascal's Triangle
118 Pascal's Triangle
119 Pascal's Triangle II
119 Pascal's Triangle II
1190 Reverse Substrings Between Each Pair of Parentheses
1190 Reverse Substrings Between Each Pair of Parentheses
1207 Unique Number of Occurrences
1207 Unique Number of Occurrences
121 Best Time to Buy and Sell Stock
121 Best Time to Buy and Sell Stock
1233 Remove Sub-Folders from the Filesystem
1233 Remove Sub-Folders from the Filesystem
1248 Count Number of Nice Subarrays
1248 Count Number of Nice Subarrays
125 Valid Palindrome
125 Valid Palindrome
1267 Count Servers that Communicate
1267 Count Servers that Communicate
1277 Count Square Submatrices with All Ones
1277 Count Square Submatrices with All Ones
128 Longest Consecutive Sequence
128 Longest Consecutive Sequence
130 Surrounded Regions
130 Surrounded Regions
131 Palindrome Partitioning
131 Palindrome Partitioning
1310 XOR Queries of a Subarray
1310 XOR Queries of a Subarray
133 Clone Graph
133 Clone Graph
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
136 Single Number
136 Single Number
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
137 Single Number II
137 Single Number II
1371 Find the Longest Substring Containing Vowels in Even Counts
1371 Find the Longest Substring Containing Vowels in Even Counts
1380 Lucky Numbers in a Matrix
1380 Lucky Numbers in a Matrix
1381 Design a Stack With Increment Operation
1381 Design a Stack With Increment Operation
1382 Balance a Binary Search Tree
1382 Balance a Binary Search Tree
1395 Count Number of Teams
1395 Count Number of Teams
1400 Construct K Palindrome Strings
1400 Construct K Palindrome Strings
1405 Longest Happy String
1405 Longest Happy String
1408 String Matching in an Array
1408 String Matching in an Array
141 Linked List Cycle
141 Linked List Cycle
1422 Maximum Score After Splitting a String
1422 Maximum Score After Splitting a String
143 Reorder List
143 Reorder List
1431 Kids With the Greatest Number of Candies
1431 Kids With the Greatest Number of Candies
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
144 Binary Tree Preorder Traversal
144 Binary Tree Preorder Traversal
1448 Count Good Nodes in Binary Tree
1448 Count Good Nodes in Binary Tree
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
1456 Maximum Number of Vowels in a Substring of Given Length
1456 Maximum Number of Vowels in a Substring of Given Length
1460 Make Two Arrays Equal by Reversing Subarrays
1460 Make Two Arrays Equal by Reversing Subarrays
1475 Final Prices With a Special Discount in a Shop
1475 Final Prices With a Special Discount in a Shop
1480 Running Sum of 1d Array
1480 Running Sum of 1d Array
1482 Minimum Number of Days to Make m Bouquets
1482 Minimum Number of Days to Make m Bouquets
1497 Check If Array Pairs Are Divisible by k
1497 Check If Array Pairs Are Divisible by k
15 3Sum
15 3Sum
150 Evaluate Reverse Polish Notation
150 Evaluate Reverse Polish Notation
1508 Range Sum of Sorted Subarray Sums
1508 Range Sum of Sorted Subarray Sums
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
153 Find Minimum in Rotated Sorted Array
153 Find Minimum in Rotated Sorted Array
1530 Number of Good Leaf Nodes Pairs
1530 Number of Good Leaf Nodes Pairs
1545 Find Kth Bit in Nth Binary String
1545 Find Kth Bit in Nth Binary String
155 Min Stack
155 Min Stack
1550 Three Consecutive Odds
1550 Three Consecutive Odds
1552 Magnetic Force Between Two Balls
1552 Magnetic Force Between Two Balls
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
1579 Remove Max Number of Edges to Keep Graph Fully Traversable
1579 Remove Max Number of Edges to Keep Graph Fully Traversable
1590 Make Sum Divisible by P
1590 Make Sum Divisible by P
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
162 Find Peak Element
162 Find Peak Element
1636 Sort Array by Increasing Frequency
1636 Sort Array by Increasing Frequency
1639 Number of Ways to Form a Target String Given a Dictionary
1639 Number of Ways to Form a Target String Given a Dictionary
164 Maximum Gap
164 Maximum Gap
165 Compare Version Numbers
165 Compare Version Numbers
1652 Defuse the Bomb
1652 Defuse the Bomb
1653 Minimum Deletions to Make String Balanced
1653 Minimum Deletions to Make String Balanced
167 Two Sum II - Input Array Is Sorted
167 Two Sum II - Input Array Is Sorted
1671 Minimum Number of Removals to Make Mountain Array
1671 Minimum Number of Removals to Make Mountain Array
168 Excel Sheet Column Title
168 Excel Sheet Column Title
1683 Invalid Tweets
1683 Invalid Tweets
View all files
Repository files navigation
README
More
items
Leeetcode
About
No description, website, or topics provided.
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.