Here is my submission. Can anybody please provide me a test case where my solution is wrong? It will be a great help. Thanks in advance.
4
2 100
1 100
4 100121
12 342
15
-1
-1
-1
Getting same answers(15, -1, -1, -1).
For sure precision error man , not able to give u test case but be careful in large numbers in case of log , floor and ceil
1 Like