We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
With all respect Sir, I don't understand concept initializing of Max : -1 and Min : INFINITY.
I think problem clearly states to compare scores in relation to score of very first game.
So, MIN = MAX = score[0] will initialize them to let comparision begin in respect to first score.
Correct me if I am wrong!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Breaking the Records
You are viewing a single comment's thread. Return to all comments →
With all respect Sir, I don't understand concept initializing of Max : -1 and Min : INFINITY. I think problem clearly states to compare scores in relation to score of very first game. So, MIN = MAX = score[0] will initialize them to let comparision begin in respect to first score. Correct me if I am wrong!