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

Правка en1, от Nightmare05, 2020-10-30 21:19:13

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 comment section to discuss other solutions as well.

My Code For P5

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

Cheers!!!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский Nightmare05 2020-10-30 22:08:23 103
en4 Английский Nightmare05 2020-10-30 22:03:33 206 Added the problem statements
en3 Английский Nightmare05 2020-10-30 21:25:37 1392
en2 Английский Nightmare05 2020-10-30 21:21:17 4 Tiny change: 'ee to use comment ' -> 'ee to use the comment '
en1 Английский Nightmare05 2020-10-30 21:19:13 6288 Initial revision (published)