/leetcode-common-questions

Python and C++ implementation of the problems from Clean Code Handbook - LeetCode 50 Common Interview Questions

Primary LanguagePython

leetcode-common-questions

Python implementation of the problems from Clean Code Handbook - LeetCode 50 Common Interview Questions

Blocked means that the problem is available only with Leetcode Premium

Verified/not verified means that the problem solution was accepted/not tested by Leetcode

  1. Two Sum
  2. Two Sum II
  3. Two Sum III (blocked/verified)
  4. Valid Palindrome
  5. Implement strstr()
  6. Reverse Words in a String
  7. Reverse Words in a String II
  8. String to Integer (atoi)
  9. Valid Number
  10. Longest Substring Without Repeating Characters
  11. Longest Substring with At Most Two Distinct Characters (blocked)
  12. Missing Ranges (blocked/verified)
  13. Longest Palindromic Substring
  14. One Edit Distance (blocked/verified)
  15. Read N Characters Given Read4 (blocked/not verified)
  16. Read N Characters Given Read4 – Call multiple times (blocked/not verified)
  17. Reverse Integer
  18. Plus One
  19. Palindrome Number
  20. Merge Two Sorted Lists
  21. Add Two Numbers
  22. Swap Nodes in Pairs
  23. Merge K Sorted Linked Lists
  24. Copy List with Random Pointer
  25. Validate Binary Search Tree
  26. Maximum Depth of Binary Tree
  27. Minimum Depth of Binary Tree
  28. Balanced Binary Tree
  29. Convert Sorted Array to Balanced Binary Search Tree
  30. Convert Sorted List to Balanced Binary Search Tree
  31. Binary Tree Maximum Path Sum
  32. Binary Tree Upside Down (blocked/verified)
  33. Single Number
  34. Single Number II
  35. Spiral Matrix
  36. Integer to Roman
  37. Roman to Integer
  38. Clone Graph
  39. Min Stack
  40. Evaluate Reverse Polish Notation
  41. Valid Parentheses
  42. Climbing Stairs
  43. Unique Paths
  44. Unique Paths II
  45. Maximum Sum Subarray
  46. Maximum Product Subarray
  47. Coins in a Line
  48. Search Insert Position
  49. Find Minimum in Sorted Rotated Array
  50. Find Minimum in Rotated Sorted Array II – with duplicates