Simple enough problem


What’s the mistake in my code?

@nayakashutosh99
hey here is code for reference ,dry run it you will get it:
func -> gives me size of final string
func2-> only goes in recursion where string length is in between l and r and c1 is counting 1 bit

Okay thank you very much!!!

@nayakashutosh99 mark your doubt as resolved and rate as well :slight_smile:

already marked. Let me reopen it and then rate