You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems producing wrong value (might be race condition) - you'll never get done == max.
I am getting 3 -> 6 -> 1 -> 2 and max is 8, they're not properly summing