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 }}
albertalexandrov
/
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
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
106 Commits
106 Commits
.gitignore
.gitignore
1. Two Sum.py
1. Two Sum.py
1013. Partition Array Into Three Parts With Equal Sum.py
1013. Partition Array Into Three Parts With Equal Sum.py
1037. Valid Boomerang.py
1037. Valid Boomerang.py
104. Maximum Depth of Binary Tree.py
104. Maximum Depth of Binary Tree.py
1051. Height Checker.py
1051. Height Checker.py
108. Convert Sorted Array to Binary Search Tree.py
108. Convert Sorted Array to Binary Search Tree.py
1089. Duplicate Zeros.py
1089. Duplicate Zeros.py
118. Pascal's Triangle.py
118. Pascal's Triangle.py
119. Pascal's Triangle II.py
119. Pascal's Triangle II.py
121. Best Time to Buy and Sell Stock.py
121. Best Time to Buy and Sell Stock.py
125. Valid Palindrome.py
125. Valid Palindrome.py
128. Longest Consecutive Sequence.py
128. Longest Consecutive Sequence.py
1282. Group the People Given the Group Size They Belong To.py
1282. Group the People Given the Group Size They Belong To.py
1295. Find Numbers with Even Number of Digits.py
1295. Find Numbers with Even Number of Digits.py
1299. Replace Elements with Greatest Element on Right Side.py
1299. Replace Elements with Greatest Element on Right Side.py
13. Roman to Integer.py
13. Roman to Integer.py
1342. Number of Steps to Reduce a Number to Zero.py
1342. Number of Steps to Reduce a Number to Zero.py
136. Single Number.py
136. Single Number.py
14. Longest Common Prefix.py
14. Longest Common Prefix.py
1470. Shuffle the Array.py
1470. Shuffle the Array.py
1480. Running Sum of 1d Array.py
1480. Running Sum of 1d Array.py
1512. Number of Good Pairs.py
1512. Number of Good Pairs.py
1672. Richest Customer Wealth.py
1672. Richest Customer Wealth.py
1768. Merge Strings Alternately.py
1768. Merge Strings Alternately.py
1877. Minimize Maximum Pair Sum in Array.py
1877. Minimize Maximum Pair Sum in Array.py
190. Reverse Bits.py
190. Reverse Bits.py
191. Number of 1 Bits.py
191. Number of 1 Bits.py
1920. Build Array from Permutation.py
1920. Build Array from Permutation.py
1991. Find the Middle Index in Array.py
1991. Find the Middle Index in Array.py
2. Add Two Numbers.py
2. Add Two Numbers.py
20. Valid Parentheses.py
20. Valid Parentheses.py
2000. Reverse Prefix of Word.py
2000. Reverse Prefix of Word.py
2011. Final Value of Variable After Performing Operations.py
2011. Final Value of Variable After Performing Operations.py
203. Remove Linked List Elements.py
203. Remove Linked List Elements.py
205. Isomorphic Strings.py
205. Isomorphic Strings.py
206. Reverse Linked List.py
206. Reverse Linked List.py
21. Merge Two Sorted Lists.py
21. Merge Two Sorted Lists.py
2161. Partition Array According to Given Pivot.py
2161. Partition Array According to Given Pivot.py
217. Contains Duplicate.py
217. Contains Duplicate.py
219. Contains Duplicate II.py
219. Contains Duplicate II.py
228. Summary ranges.py
228. Summary ranges.py
231. Power of Two.py
231. Power of Two.py
2325. Decode the Message.py
2325. Decode the Message.py
238. Product of Array Except Self.py
238. Product of Array Except Self.py
2396. Strictly Palindromic Number.py
2396. Strictly Palindromic Number.py
242. Valid Anagram.py
242. Valid Anagram.py
258. Add Digits.py
258. Add Digits.py
26. Remove Duplicates from Sorted Array.py
26. Remove Duplicates from Sorted Array.py
2657. Find the Prefix Common Array of Two Arrays.py
2657. Find the Prefix Common Array of Two Arrays.py
268. Missing Number.py
268. Missing Number.py
27. Remove Element.py
27. Remove Element.py
2798. Number of Employees Who Met the Target.py
2798. Number of Employees Who Met the Target.py
28. Implement strStr.py
28. Implement strStr.py
2807. Insert Greatest Common Divisors in Linked List.py
2807. Insert Greatest Common Divisors in Linked List.py
283. Move Zeroes.py
283. Move Zeroes.py
290. Word Pattern.py
290. Word Pattern.py
2942. Find Words Containing Character.py
2942. Find Words Containing Character.py
3. Longest Substring Without Repeating Characters.py
3. Longest Substring Without Repeating Characters.py
303. Range Sum Query - Immutable.py
303. Range Sum Query - Immutable.py
344. Reverse String.py
344. Reverse String.py
345. Reverse Vowels of a String.py
345. Reverse Vowels of a String.py
347. Top K Frequent Elements.py
347. Top K Frequent Elements.py
350. Intersection of Two Arrays II.py
350. Intersection of Two Arrays II.py
36. Valid Sudoku.py
36. Valid Sudoku.py
383. Ransom Note.py
383. Ransom Note.py
387. First Unique Character in a String.py
387. First Unique Character in a String.py
389. Find the Difference.py
389. Find the Difference.py
392. Is Subsequence.py
392. Is Subsequence.py
409. Longest Palindrome.py
409. Longest Palindrome.py
412. Fizz Buzz.py
412. Fizz Buzz.py
448. Find All Numbers Disappeared in an Array.py
448. Find All Numbers Disappeared in an Array.py
463. Island Perimeter.py
463. Island Perimeter.py
485. Max Consecutive Ones.py
485. Max Consecutive Ones.py
49. Group Anagrams.py
49. Group Anagrams.py
500. Keyboard Row.py
500. Keyboard Row.py
506. Relative Ranks.py
506. Relative Ranks.py
541. Reverse String II.py
541. Reverse String II.py
551. Student Attendance Record I.py
551. Student Attendance Record I.py
561. Array Partition.py
561. Array Partition.py
566. Reshape the Matrix.py
566. Reshape the Matrix.py
575. Distribute Candies.py
575. Distribute Candies.py
58. Length of Last Word.py
58. Length of Last Word.py
594. Longest Harmonious Subsequence.py
594. Longest Harmonious Subsequence.py
599. Minimum Index Sum of Two Lists.py
599. Minimum Index Sum of Two Lists.py
643. Maximum Average Subarray I.py
643. Maximum Average Subarray I.py
645. Set Mismatch.py
645. Set Mismatch.py
657. Robot Return to Origin.py
657. Robot Return to Origin.py
66. Plus One.py
66. Plus One.py
67. Add Binary.py
67. Add Binary.py
674. Longest Continuous Increasing Subsequence.py
674. Longest Continuous Increasing Subsequence.py
682. Baseball Game.py
682. Baseball Game.py
69. Sqrt(x).py
69. Sqrt(x).py
7. Reverse Integer.py
7. Reverse Integer.py
70. Climbing Stairs.py
70. Climbing Stairs.py
724. Find Pivot Index.py
724. Find Pivot Index.py
796. Rotate String.py
796. Rotate String.py
8. String to Integer (atoi).py
8. String to Integer (atoi).py
819. Most Common Word.py
819. Most Common Word.py
83. Remove Duplicates from Sorted List.py
83. Remove Duplicates from Sorted List.py
View all files
About
No description, website, or topics provided.
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.