this is the link of my question …i have been trying to know whats wrong with my code …but i dont know whats wrong with my code
Time limit error
hello @Gaurav_dev
In ur code u are modifying i for counting number of set bit which is wrong .
store i in some temporary variable and then use that variable to count number of set bits.
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.