Google | SWE 2020 | Rejected
Anonymous User
2809

5 Rounds full day interview

  1. Give an array of boxes with size N+1 with its weight is from 1->N. The final element is empty marked with an 0. Sort the boxes from lightest to heaviest where you can only move 1 box at a time to the empty slot. You should do it in o(N) time.

  2. Get maximum sum from array of coin, if you can only pick k coins from either side of the the array.

  3. Given a binary tree in array form, where each element is <value, parent index>, where remove the subtree given the parent index.

  4. Remove an array of substring from document given its starting position.

  5. behaviorial

I was rejected because my code wasn't optimized. I suspect it's just a random reason given to candidates.

Comments (18)