failure_forever's blog

By failure_forever, history, 3 years ago, In English

Can someone explain how to do this Soldier and cards according to the method given in editorial . I have done this question using deque but I want a approach as followed in editorial.

Any help is much appreciated.