Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 453daa2

Browse files
Add first C++ solution to README and improve hints
1 parent 01218f4 commit 453daa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ organizing the questions by category and linked to the solution I wrote for each
44

55
| Number | Question | Hints | Python Solution | C++ Solution |
66
|:------:|:--------:|-------|:---------------:|:------------:|
7-
| 1 |[Two Sum](https://leetcode.com/problems/two-sum/) | Use a hash table | [Python Solution](https://github.com/codethecoffee/leetcode-solutions/blob/master/python_solutions/0001_two_sum.py) | |
8-
| 56 |[Merge Intervals](https://leetcode.com/problems/merge-intervals/)| Use a stack |[Python Solution](https://github.com/codethecoffee/leetcode-solutions/blob/master/python_solutions/0056_merge_intervals.py) | |
7+
| 1 |[Two Sum](https://leetcode.com/problems/two-sum/) | Use a hash table to keep track of the indices of the numbers you've encountered so far. | [Python Solution](https://github.com/codethecoffee/leetcode-solutions/blob/master/python_solutions/0001_two_sum.py) |[C++ Solution](https://github.com/codethecoffee/leetcode-solutions/blob/master/c%2B%2B_solutions/0001_two_sum.cpp) |
8+
| 56 |[Merge Intervals](https://leetcode.com/problems/merge-intervals/)| Sort the intervals by increasing start time. |[Python Solution](https://github.com/codethecoffee/leetcode-solutions/blob/master/python_solutions/0056_merge_intervals.py) | |
99
| 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-solutions/blob/master/python_solutions/0066_plus_one.py)| |
1010
| 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://github.com/codethecoffee/leetcode-solutions/blob/master/python_solutions/0088_merge_sorted_arrays.py)| |
1111
| 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-solutions/blob/master/python_solutions/0122_best_time_to_buy_and_sell_stock_II.py) | |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /