05/09/25 @LeetCode POTD Thanks @CSwithMIK. problem beautifully reduces down for each operation subtract i times num2 from num1 and then try to express that number in terms of powers of 2. Hence we need min number of bits in val or at max val if we find this then that ops is ans.
1
0
14
338
0
Download Image
@xkeycode21 @LeetCode @CSwithMIK Same I watched his video. First I was thinking to write a DFS with global min, but pruning condition aayi hi ni, also TLE hi aata.