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.
The example they use for explaination breaks their game's rule. y%x=0. When you have 2 towers of height 3. You have no moves left to make as you can't make 2 divisible by 3. 2%3 =2; The example says this move is valid.
Removing 5 from a tower of height 6 is also not an option as 5%6 =5;
I understand the trick is to find the pattern, but giving a bad example leads to confusion.
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 →
The example they use for explaination breaks their game's rule. y%x=0. When you have 2 towers of height 3. You have no moves left to make as you can't make 2 divisible by 3. 2%3 =2; The example says this move is valid. Removing 5 from a tower of height 6 is also not an option as 5%6 =5;
I understand the trick is to find the pattern, but giving a bad example leads to confusion.