0

Can anyone explain me whats the error?

https://code.sololearn.com/clQhT0tR9iX9/?ref=app

30th Jul 2021, 12:26 PM
kreddyt
kreddyt - avatar
3 Réponses
+ 2
Index 6 out of bounds. You take an array item which do not exist. Line 50 should be: split(arr,0, arr.length-1,b);
30th Jul 2021, 12:55 PM
JaScript
JaScript - avatar
+ 1
The logical way of your attempt is pretty difficult. This is another, which I prefer: https://code.sololearn.com/cL1j1M51iwaB/?ref=app
30th Jul 2021, 4:53 PM
JaScript
JaScript - avatar
0
Yeah can u check the logical error too I can't find it
30th Jul 2021, 1:05 PM
kreddyt
kreddyt - avatar