I have understood the 2 lemmas in the editorial: https://discuss.codechef.com/questions/91508/mixflvor-editorial I am not able to understand why the setter wants to use 2 stacks in the first place and what exactly he does with those two stacks. Could someone please explain the editorial after the 2 lemmas part.Also, would it be possible to solve it just by keeping a start and stop pointer without any stack and still get AC?
↧