learn deep. ship safe.Practice testsFollow ByteMunSubscribe

Coding interview problems

Solve coding interview problems in JavaScript or Python in your browser: run your code against tests, use hints, then read the full solution.

  • 8 problems
  • 4 easy · 4 medium · 0 hard
  • JavaScript and Python
  1. Pair with Target SumArrays · Hash map
    easy
  2. Balanced BracketsStack · Strings
    easy
  3. Palindrome SentenceStrings · Two pointers
    easy
  4. Search a Sorted ArrayBinary search · Arrays
    easy
  5. Maximum Subarray SumArrays · Dynamic programming
    medium
  6. Longest Substring Without RepeatsStrings · Sliding window · Hash map
    medium
  7. Group AnagramsStrings · Hash map · Sorting
    medium
  8. Merge Overlapping IntervalsArrays · Sorting · Intervals
    medium

How to practise a coding problem

  1. Read and plan first. Work out the approach and its time complexity before typing.
  2. Run the samples. Your code runs in your browser against the example tests.
  3. Submit. It checks hidden edge cases too, and saves the problem as solved.
  4. Stuck? Open one hint at a time, and read the full solution only after a real attempt.