This repo holds my solutions for questions on LeetCode. As and when I solve questions, I keep updating this repo with the answers.
The repo is organized based on the question numbers. Each question on LeetCode has a unique number index which is used as the file name. For eg. 983.py is the solution for question 983: link The solutions are all in python for now. Each file holds the question in doc string and the code.
The list of questions solved so far:
- 1025 - Divisor Game
- 121 - Best time to Buy and Sell Stock
- 746 - Min Cost Climbing Stairs
- 392 - Is Subsequence
- 70 - Climbing tairs
- 53 - Maximum Subarray
- 198 - House Robber
- 1277 - Count Square Submatrices with All Ones
- 877 - Stone Game
- 1227 - Airplane Seat Assignment Probability
- 983 - Minimum Cost for Tickets
- 1048 - Longest String Chain
- 303 - Range Sum Query