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.
For those generating solution values < than the test cases provided. This is because you are evaluting a convergence towards MAX and not MIN (or some other convergence value in the array). This isn't allowed because the problem states she has to ADD chocolates on each move -> she is not allowed to TAKE away chocolates from all but one in order to equalise.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
For those generating solution values < than the test cases provided. This is because you are evaluting a convergence towards MAX and not MIN (or some other convergence value in the array). This isn't allowed because the problem states she has to ADD chocolates on each move -> she is not allowed to TAKE away chocolates from all but one in order to equalise.