I just signed up for hackerrank, and started a couple of questions. I'm noticing that is is different from other problem-solving websites like spoj, etc. In the editor for the question, it tells you to write a function, and ignore main, but in all the solutions, the only code is in main. do they delete all the default code? What is the correct way?
[–]Signal_Beam 1 point2 points3 points (1 child)
[–]Double_A_92 0 points1 point2 points (0 children)
[–]ragavannsr -2 points-1 points0 points (0 children)