SNTEMPLE - Editorial

Nice, the same idea as mine, but with better complexity avoiding binsearch at all

3 Likes

Don’t worry, they’ll be added soon. I don’t have access to add them by myself.

Thanks mate.

@genius007 , bhambhu on fire.

How are we finding m using binary search ? Please explain ?

it can take such inputs

Great !!!

Can you explain why you subtracted (minLength)*(minLength) from totalSum?
What made you reach this conclusion?