prachin_roy's blog

By prachin_roy, history, 6 years ago, In English

I'm trying to make a custom checker for this problem but in a different way. Actually in this problem setter wants to know minimum number snow heap . But I want to know the position also. In this situation the answer can be different. Such as, For the first input


2 2 1 1 2 **the answer ca be this** 1 1 1 **or can be this** 1 2 2 Again for another **testcase** **input:** 3 2 2 4 4 8 7 **output1:** 2 2 4 2 7 **output2:** 2 2 4 8 2 **output3:** 2 4 2 4 7 and so on Then how can i make the custom checker. I prefer C++ to do this task. Thanks in advance.
  • Vote: I like it
  • -6
  • Vote: I do not like it

| Write comment?