We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

tharun • 4 years ago

Unfortunately, the Method 2 is wrong. Issue with the recursive function.
Fails for the following testcase:
[10, 20, 30, 5]
Expected: 3
Actual: 1

Rajeev Singh • 4 years ago

Thanks for pointing it out. I have fixed it now.

Misha Infotech • 2 years ago

Hello bro Thanks a lot for your support.

I am requesting u to please provide sign in apple also I am using your social media login but stuck on Apple Oauth2 Please help. Thanks U for advance