I was converting a C++ algorithm to C#. I came across this for loop:
for (u = b.size(), v = b.back(); u--; v = p[v]) b[u] = v;
It gives no
In above code, u and v are initialized with b.size() and b.back().
u
v
b.size()
b.back()
Every time the condition is checked, it executes decrement statement too i.e. u--.
u--
The for loop will exit when u will become 0.
for
0