Can Someone Help Me With Newton's Coding Challenge Solutions?

Revision en5, by Nightmare05, 2020-10-30 22:08:23

Hi guys,

I gave the Newton's coding challenge held today and could solve only 4, I got 15+ WAs on 5th and couldn't solve the 6th problem. Can anyone please tell me the solution for the last problem and if possible tell me the error in my code for 5th problem?

Also feel free to use the comment section to discuss other solutions as well.

Please visit this link to see a screenshot of the problem statement of P5

My Code For P5

I would be really thankful if someone can point out, exactly what edge cases did I miss!

Cheers!!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English Nightmare05 2020-10-30 22:08:23 103
en4 English Nightmare05 2020-10-30 22:03:33 206 Added the problem statements
en3 English Nightmare05 2020-10-30 21:25:37 1392
en2 English Nightmare05 2020-10-30 21:21:17 4 Tiny change: 'ee to use comment ' -> 'ee to use the comment '
en1 English Nightmare05 2020-10-30 21:19:13 6288 Initial revision (published)