|
1 | | -# Leetcod Solutions in Python and C++ |
| 1 | +# Leetcode Solutions in Python and C++ |
2 | 2 | [Click here](https://docs.google.com/spreadsheets/d/1EmRVQ2KEknTREwNd4-2qbSzScHMvgzDT0yGGT5u-yA8/edit?usp=sharing) for the google spreadsheet
|
3 | 3 | organizing the questions by category and linked to the solution I wrote for each of them. This is always up to date with the README (with the power of a python script and GitHub workflows).
|
4 | 4 |
|
5 | 5 | | Number | Question | Hints | Python Solution | C++ Solution |
|
6 | 6 | |:------:|:--------:|-------|:---------------:|:------------:|
|
7 | | -| 1 |[Two Sum](https://leetcode.com/problems/two-sum/) | [Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/1-Two%20Sum.py) | Use a hash table | |
8 | | -| 56 |[Merge Intervals](https://leetcode.com/problems/merge-intervals/)|[Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/56-Merge%20Intervals.py)| Use a stack | |
9 | | -| 66 | [Plus One](https://leetcode.com/problems/plus-one/) | [Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/66-Plus%20One.py)|Try iterating through each digit backwards. What do you do when the digit is a 9? | |
10 | | -| 88 | [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) | [Python Solution](https://leetcode.com/problems/merge-sorted-array/)|Look at one element from each of the arrays, compare them, and make a decision depending on their relation to each other. | |
11 | | -| 122 | [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/solution/) | [Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/122-Best%20Time%20to%20Buy%20and%20Sell%20Stock.py)| What should we do every time there is a valley followed by a peak in price? | |
| 7 | +| 1 |[Two Sum](https://leetcode.com/problems/two-sum/) | Use a hash table |[Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/1-Two%20Sum.py) | |
| 8 | +| 56 |[Merge Intervals](https://leetcode.com/problems/merge-intervals/)| Use a stack |[Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/56-Merge%20Intervals.py) | |
| 9 | +| 66 | [Plus One](https://leetcode.com/problems/plus-one/) | Try iterating through each digit backwards. What do you do when the digit is a 9? |[Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/66-Plus%20One.py)| |
| 10 | +| 88 | [Merge Sorted Array](https://leetcode.com/problems/merge-sorted-array/) | Look at one element from each of the arrays, compare them, and make a decision depending on their relation to each other. |[Python Solution](https://leetcode.com/problems/merge-sorted-array/)| |
| 11 | +| 122 | [Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/solution/) | What should we do every time there is a valley followed by a peak in price? |[Python Solution](https://github.com/codethecoffee/leetcode-python-solutions/blob/master/122-Best%20Time%20to%20Buy%20and%20Sell%20Stock.py) | |
12 | 12 | | 344 | [Reverse String](https://leetcode.com/problems/reverse-string) | |
|
0 commit comments