Maximising the remainderi found the answer with some analysis on small set of numbers thanks everyone..
Maximising the remainder**This assumes that if X and Y are coprime then there is a value k between 0 and Y-1 such that kX % ...
Maximising the remainderGiven a set of numbers that may be added any number of times to produce to produce a number. the onl...
coordinate compressioncan someone just explain me the test cases.. I am sort of getting them but a bit confused and above...
player can remove 1 or X or Y coins from the towerA and B are playing a new game today . They form a tower of N coins and make a move in alternate tur...