Can someone check my solution and tell me where it is wrong?
Just check that k=any power of 2
Will give yes
Isn’t the answer YES when k is a power of 2?
I finally debugged the issue. It was related to the “break” that I had inserted in the same for-loop where I was reading the input! After commenting the break, I got AC!
hey did you passed all your test cases? If yes, please could you explain your approach for dream of divisibility, thank you.