Amazon | SDE2 | OA | Jan 15, 2022
Anonymous User
3698

Two coding questions:

  1. Count the minimum number of coin flipping to get a beautiful sequence.
  2. Give a binary array, count minimum number of moves to get ones at one end and zeros at another end.
    example: [1,1,0,1,0,0] -> [1,1,1,0,0,0]
    [0,1,0,0,1,1] -> [0,0,0,1,1,1]

Wish these would be helpful to you.

Comments (5)