r/webdev • u/jacobedawson • Mar 01 '17
Programmers are confessing their coding sins to protest a broken job interview process
https://theoutline.com/post/1166/programmers-are-confessing-their-coding-sins-to-protest-a-broken-job-interview-process
1.4k
Upvotes
0
u/cicadaTree Mar 01 '17 edited Mar 01 '17
you start from the begining of number sequence
compare every couple of numbers (numbers adjacent to each other)
if the second member in couple is lesser then the first one, switch place, otherwise move to step 4.
move to another couple, now second number from previous couple should be first one in this couple ( clearing the adjacent thing above).
you do this(step 3.) to to the end of the sequence(last element).
after each iteration you have one element less to compare, the last one, since that is the highest number in sequence ( bcz it was compared with all numbers in sequence).
*. Explain how bubble sort is crap bcz it has very high number of operation(meaning pair/couple comparisons) compared to other sorting algorithms. MUST DO step. Take of you hipster panties, buy book about C programming, write on your wall. "All great things take time". And start learn programming. Not fucking coding.