Amazon | Phone screen | Run-length encoding
Anonymous User
1565
May 26, 2019
Jul 22, 2019

Position: SDE1

1 Hour Total

30 minutes behavioral ( tell me about one project you are proud of )

30 minutes encode/decode

Encode:
Input: "WWWWWWWWWBBBBBBB"
Output: "9W7B"

Decode:
Input "9W7B"
Output: "WWWWWWWWWBBBBBBB"

Comments (2)