+ 2

This code

can you find an error and make it correct 🙂 https://code.sololearn.com/c9Y8D6GxxAkz/?ref=app

6th Sep 2022, 6:15 PM
Davinder Kumar
Davinder Kumar - avatar
5 Answers
+ 2
Jayakrishna🇮🇳 i commented temp array coz i I'm printing directly array after it does satisfies // ==
7th Sep 2022, 8:57 AM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Line 48: b[i-arr.length/2] = arr[i-1]; // i-1, not i
6th Sep 2022, 7:12 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 it still doesn't give me the desired output
7th Sep 2022, 4:11 AM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Jayakrishna🇮🇳 i found an issue it worked finally thanks you
7th Sep 2022, 6:25 AM
Davinder Kumar
Davinder Kumar - avatar
+ 1
That's fine. But why you commented temp array..? Make use of it works.. You're welcome..
7th Sep 2022, 8:41 AM
Jayakrishna 🇮🇳