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.
Hi,
I saw in one of the discussion threads that for a test input of
1, 10, 321, 386, 740, 595, 161, 176, 606, 64, 577, 316
the expected value is 2293 which is obtained the following summation:
321+386+740+176+606+64,
But there is no way to pick 321 without prior picking of leading 1, which means that the answer should be 2294 instead of of 2293.
My solution return 2294 for the above test, and this make think of a possible error in the test expected result.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bricks Game
You are viewing a single comment's thread. Return to all comments →
Hi, I saw in one of the discussion threads that for a test input of 1, 10, 321, 386, 740, 595, 161, 176, 606, 64, 577, 316 the expected value is 2293 which is obtained the following summation: 321+386+740+176+606+64, But there is no way to pick 321 without prior picking of leading 1, which means that the answer should be 2294 instead of of 2293. My solution return 2294 for the above test, and this make think of a possible error in the test expected result.