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
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 }}
tkohli
/
DSA
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
1,003 Commits
1,003 Commits
Folders and files
Name
Name
Last commit message
Last commit date
.vscode
.vscode
Recursion
Recursion
Tree Question Iterative and recursive
Tree Question Iterative and recursive
__pycache__
__pycache__
leetcode Contest
leetcode Contest
.gitattributes
.gitattributes
.gitignore
.gitignore
001. 2 number sum.py
001. 2 number sum.py
002. Validate Subsequence.py
002. Validate Subsequence.py
003. 3 number sum.py
003. 3 number sum.py
004. Smallest Difference.py
004. Smallest Difference.py
005. Move element to end.py
005. Move element to end.py
006.Monotonic array.py
006.Monotonic array.py
007. Spiral traversal.py
007. Spiral traversal.py
008. Highest Peak.py
008. Highest Peak.py
009. Longest peak.py
009. Longest peak.py
010. Product of Array Except Self.py
010. Product of Array Except Self.py
011. Sum of array.py
011. Sum of array.py
012. Subarray sort.py
012. Subarray sort.py
013. Square of sorted array.py
013. Square of sorted array.py
014. Merge sorted arrays.py
014. Merge sorted arrays.py
015. Largest number.py
015. Largest number.py
016. Largest range.py
016. Largest range.py
017. Shuffle the array.py
017. Shuffle the array.py
018. Defanging an IP Address.py
018. Defanging an IP Address.py
019. Min Rewards.py
019. Min Rewards.py
020. Kids With the Greatest Number of Candies - Copy.py
020. Kids With the Greatest Number of Candies - Copy.py
021. Zigzag Traversal.py
021. Zigzag Traversal.py
022. Array partitions.py
022. Array partitions.py
023. Number of Good Pairs.py
023. Number of Good Pairs.py
024. Richest Customer Wealth.py
024. Richest Customer Wealth.py
025. Count Items Matching a Rule.py
025. Count Items Matching a Rule.py
026. Find the Highest Altitude.py
026. Find the Highest Altitude.py
027. Create Target Array in the Given Order.py
027. Create Target Array in the Given Order.py
028. Matrix Diagonal Sum.py
028. Matrix Diagonal Sum.py
029. Minimum Time Visiting All Points.py
029. Minimum Time Visiting All Points.py
030. Decompress Run-Length Encoded List.py
030. Decompress Run-Length Encoded List.py
031. Count Good Triplets.py
031. Count Good Triplets.py
032. Flipping an Image.py
032. Flipping an Image.py
033. Cells with Odd Values in a Matrix.py
033. Cells with Odd Values in a Matrix.py
034. Height Checker.py
034. Height Checker.py
035. Find Number with even number of digits.py
035. Find Number with even number of digits.py
036. Minimum Operations to Make the Array Increasing.py
036. Minimum Operations to Make the Array Increasing.py
037. Number of Students Doing Homework at a Given Time.py
037. Number of Students Doing Homework at a Given Time.py
038. Maximum Product of Two Elements in an Array.py
038. Maximum Product of Two Elements in an Array.py
039. Count Negative Numbers in a Sorted Matrix.py
039. Count Negative Numbers in a Sorted Matrix.py
040. Find N Unique Integers Sum up to Zero.py
040. Find N Unique Integers Sum up to Zero.py
041. Sort Array By Parity.py
041. Sort Array By Parity.py
042. Final Prices With a Special Discount in a Shop.py
042. Final Prices With a Special Discount in a Shop.py
043. Sum of Unique Elements.py
043. Sum of Unique Elements.py
044. Replace Elements with Greatest Element on Right Side.py
044. Replace Elements with Greatest Element on Right Side.py
045. Maximum Number of Balls in a Box.py
045. Maximum Number of Balls in a Box.py
046. Make Two Arrays Equal by Reversing Sub-arrays.py
046. Make Two Arrays Equal by Reversing Sub-arrays.py
047. The K Weakest Rows in a Matrix.py
047. The K Weakest Rows in a Matrix.py
048. Sort Array By Parity II.py
048. Sort Array By Parity II.py
049. Minimum Cost to Move Chips to The Same Position.py
049. Minimum Cost to Move Chips to The Same Position.py
050. Can Make Arithmetic Progression From Sequence.py
050. Can Make Arithmetic Progression From Sequence.py
051. Lucky Numbers in a Matrix.py
051. Lucky Numbers in a Matrix.py
052. Find Common Characters.py
052. Find Common Characters.py
053. Relative Sort Array.py
053. Relative Sort Array.py
054. Find Words That Can Be Formed by Characters.py
054. Find Words That Can Be Formed by Characters.py
055. Average Salary Excluding the Minimum and Maximum Salary.py
055. Average Salary Excluding the Minimum and Maximum Salary.py
056. Fibonacci Number.py
056. Fibonacci Number.py
057. Available Captures for Rook.py
057. Available Captures for Rook.py
058. Sort Array by Increasing Frequency.py
058. Sort Array by Increasing Frequency.py
059. Minimum Absolute Difference.py
059. Minimum Absolute Difference.py
060. Best Time to Buy and Sell Stock.py
060. Best Time to Buy and Sell Stock.py
061. Shuffle String.py
061. Shuffle String.py
062. Baseball Game.py
062. Baseball Game.py
063. Subrectangle Queries.py
063. Subrectangle Queries.py
064. Max Increase to Keep City Skyline.py
064. Max Increase to Keep City Skyline.py
065. Queries on Number of Points Inside a Circle.py
065. Queries on Number of Points Inside a Circle.py
066. Group the People Given the Group Size They Belong To.py
066. Group the People Given the Group Size They Belong To.py
067. PRETTYPRINT.py
067. PRETTYPRINT.py
068. Pick from both sides.py
068. Pick from both sides.py
069. Min Steps in Infinite Grid.py
069. Min Steps in Infinite Grid.py
070. Find Duplicate in Array.py
070. Find Duplicate in Array.py
071. Max Non Negative SubArray.py
071. Max Non Negative SubArray.py
072. Max Sum Contiguous Subarray.py
072. Max Sum Contiguous Subarray.py
073. Wave Array.py
073. Wave Array.py
074. Add One To Number.py
074. Add One To Number.py
075. Perfect Peak of Array.py
075. Perfect Peak of Array.py
076. Set Matrix Zeros.py
076. Set Matrix Zeros.py
077. Merge Overlapping Intervals.py
077. Merge Overlapping Intervals.py
078. Balance Array.py
078. Balance Array.py
079. Maximum Unsorted Subarray.py
079. Maximum Unsorted Subarray.py
080. First Missing Integer.py
080. First Missing Integer.py
081. Rotate Matrix.py
081. Rotate Matrix.py
082. Repeat and Missing Number Array.py
082. Repeat and Missing Number Array.py
083. Tower of hanoi.py
083. Tower of hanoi.py
084. Greatest Common Divisor.py
084. Greatest Common Divisor.py
085. Distribute in Circle.py
085. Distribute in Circle.py
086. Power Of Two Integers.py
086. Power Of Two Integers.py
087. Prime Sum.py
087. Prime Sum.py
088. Total Moves For Bishop.py
088. Total Moves For Bishop.py
089. FizzBuzz.py
089. FizzBuzz.py
090. Next Similar Number.py
090. Next Similar Number.py
091. Is Rectangle.py
091. Is Rectangle.py
092. Sorted Permutation Rank.py
092. Sorted Permutation Rank.py
093. Grid Unique Paths.py
093. Grid Unique Paths.py
View all files
Repository files navigation
README
More
items
DSA repo
All DSA solutions
About
A repo where I update my solutions to leetcode
Resources
Readme
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.