20th Apr 2018, 6:04 PM
Kirill Kardapoltsev
Kirill Kardapoltsev - avatar
3 Answers
+ 3
Line 8 should loop to m not m-1 to fully initialize the array. Line 15 loop to i-1 not n-1.
21st Apr 2018, 1:37 AM
John Wells
John Wells - avatar
+ 3
Thanks you for attention, but I could myself
21st Apr 2018, 5:18 AM
Kirill Kardapoltsev
Kirill Kardapoltsev - avatar
+ 2
Your 2nd for loop is wrong. See my solution here. https://code.sololearn.com/cmg0K6Ah54km/?ref=app
21st Apr 2018, 1:41 AM
Mohammad Nazmul Hossain
Mohammad Nazmul Hossain - avatar