Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (anonymous):

What does the below algorithm do? def is(A): n = A.length for j in xrange(2, n+1): key = A[j] i = j - 1 while i > 0 and A[i] > key: A[i+1] = A[i] i -= 1 A[i + 1] = key

OpenStudy (anonymous):

Insertion sort ?

OpenStudy (anonymous):

I thought it was selection sort

OpenStudy (anonymous):

\[\forall x\ \text{mathematician}(x) \implies \text{knowspython}(x)\] i think it's false

OpenStudy (anonymous):

how come? every math guy I meet knows either Python, Mathematica, or MATLAB

OpenStudy (anonymous):

or all 3 :-D

OpenStudy (anonymous):

either \(\neq\) and

OpenStudy (anonymous):

where did you get that algorithm?

OpenStudy (anonymous):

topcoder.com

OpenStudy (anonymous):

Learning from TC tutorials ?

OpenStudy (anonymous):

yes

OpenStudy (anonymous):

Good luck!:) and I think this is insertion sort check out the algorithm in here: http://en.wikipedia.org/wiki/Insertion_sort

OpenStudy (anonymous):

I'll have lots to learn... I'm still a loser who thinks linked lists and arrays are the same thing.

OpenStudy (anonymous):

and who compiles from the IDE... and who doesn't know how to use gcc make

OpenStudy (anonymous):

lol, I too compile through the IDE and I know many topcoders and top coders who do the same.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!