|
|
for (size_t a=0;a<some_vector.size();a++)
Is looping constantly this complex? I couldn't design something like this if my life depended on it. |
|
|
|
|
|
|
|
|
|
I was starting to worry, even if I was a seasoned programmer; if people are able to spit stuff like that out right off the top of their head, I am in the wrong business. |
|
|
Although I'm pretty sure an extra else wouldn't hurt anything |
return (x>y)?x:y;
is the best time n^2 or 2^n, or is it something completely different? |
Multi-dimentional arrays referred to arrays of arrays |
we were supposed to try and decipher what the output was without compiling and executing the code |
|
|
|
|