Please find the error. i did find a better code but I wanted to know what's wrong with my code
so sorry, my bad. Here’s the right one
u r modifying value of n.
dont do n–, no need of three loops if u are using two pointers
check this->
so sorry, my bad. Here’s the right one
u r modifying value of n.
dont do n–, no need of three loops if u are using two pointers
check this->