In the solution video, if(a[i] == 2) we just decemented high pointer i.e. high-- and we have not incremented curr pointer curr++.
I understood the reason that there may be a case where 2 can be swapped with 2 so we can’t increment curr pointer.
But why this is not in the case if(a[i] == 0) because in this case we incremented curr++ as well as we have done low++.