Premium Content
Sign in to see the full question
Get access to the full problem, solutions, follow-up questions, and discussion.
Get access to the full problem, solutions, follow-up questions, and discussion.
You are given a 1D array.
In Part 1:
0 means empty1 means cakeIn Part 2:
0 means empty1 means person2 means cakeThis interview has 2 parts: