Custom checker for Hackerrank

Revision en2, by prachin_roy, 2019-04-29 20:51:41

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.
Tags #dsu, #dfs and similar

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English prachin_roy 2019-04-29 20:51:41 20
en1 English prachin_roy 2019-04-29 20:47:57 670 Initial revision (published)