17 easy coding problems, solved step by step.
Where to start: problems with one key idea each, solved first the obvious way and then the way an interviewer hopes to see. Each one is solved in 22 languages from brute force to optimal, with code you can run on the page.
0/17 solved
- Two SumEasy
- Valid ParenthesesEasy
- Contains DuplicateEasy
- Valid AnagramEasy
- Valid PalindromeEasy
- Best Time to Buy and Sell StockEasy
- Longest Common PrefixEasy
- Reverse a Linked ListEasy
- Invert a Binary TreeEasy
- Climbing StairsEasy
- Single NumberEasy
- Counting BitsEasy
- Missing NumberEasy
- Roman to IntegerEasy
- Majority ElementEasy
- Maximum Depth of a Binary TreeEasy
- Merge Two Sorted ListsEasy