Amazon Interview QuestionJava Developers
- -1of 1 vote
R number of Red Cards
B number of Black cards
Cards needs to be placed in a circle. Start from a position and for
every K moves remove that card And
repeat the process until all the cards are eliminated.
Question: Position the cards such that the red cards are completely
eliminated before the blacks cards are selected for elimination.
Country: United States