Some test cases are not passing
@aryanraj your code is failing for the following test case, please modify your code accordingly
10
45
25509
34345
4111
5243
2345
452
999
279
311
Instead of deleting the smallest possible power of 2 first, consider an approach where you can delete the maximum possible number first
tell me solution i am doing the same approach
@aryanraj i will give you a hint. Find the relation of the required answer with the number of setbits in the given number. Tell me if you are able to figure it out now!
ya i find relation and ans but it is very difficult to think tell me if steps are power of 3
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.