Amazon SDE2 OA

I recently took the online assessment. For coding part, two questions in 90 mins.

  1. minimum swaps to make a binary string palindrome. (swaps can between any pairs of indices)

  2. similar to leetcode question, Sum of Subarray Ranges.

Comments (5)