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.
Bricks Game
Bricks Game
Sort by
recency
|
106 Discussions
|
Please Login in order to post a comment
Here is my solution in java, javascript, python, C, C++, Csharp HackerRank Bricks Game Problem Solution
Here is Bricks Game problem solution - https://programs.programmingoneonone.com/2021/07/hackerrank-bricks-game-problem-solution.html
For anyone stuck, here's a 2 line function that shows logic of the final solution:
It gives correct answer, but is not optimal. In order to solve it properly, it needs to be implemented using iteration instead of recursion
Did you know that there are actually three game modes that you can play in Bricks n Balls? Yes, there are, and you can select them from the main menu where the missions are displayed. Sometimes games like these are similar to strategy games at https://wildcardcityvip.com/. But it wasn't clear to me how you embed strategies through the code.
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.