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.
Description:
In each turn, a player can choose a tower of height and reduce its height to, where and evenly divides.
There are towers, each 6 units tall. Player has a choice of two moves:
- remove 3 pieces from a tower to leave 3, as 6 mod 3 == 0
- remove 5 pieces to leave 1 In what world does 5 evenly divide 6 ?
This is not a test of programmers skill, but pure pure mathematics and ones ability to interprete a badly written set of requirements.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Tower Breakers
You are viewing a single comment's thread. Return to all comments →
Description: In each turn, a player can choose a tower of height and reduce its height to, where and evenly divides. There are towers, each 6 units tall. Player has a choice of two moves: - remove 3 pieces from a tower to leave 3, as 6 mod 3 == 0 - remove 5 pieces to leave 1
In what world does 5 evenly divide 6 ? This is not a test of programmers skill, but pure pure mathematics and ones ability to interprete a badly written set of requirements.