4 ms·
I have this problem. My problem is when I see this question I freeze and then I come up with a solution like this. n = 100; return n(n+1)/2
by mateo411 6y ago
I have this problem. My problem is when I see this question I freeze and then I come up with a solution like this.
n = 100;
return n(n+1)/2