I came across this piece of code but I'm not familiar with this while loop syntax.
while(i < j){
while(distance(arr[++i]) < distance(p));
while(distance(arr[--j]) > distance(p));
if(i < j){
swap(arr, i, j);
}
}
I've never seen a while loop without braces that end in semicolons. What do they mean?