2017년 7월 25일 화요일

Bubble sort


I need some help... i used the bubble sort that i found on internet tutorials
You can see the image.

But when then number which has to be sort change of dizain its cames to end of the list.
9 seems bigger of 10, it seems to keep 0 but not 10...    (1)0

Can you help me?

--
you are comparing text instead of numbers
use the numeric < or > blocks from the math drawer to compare

--
Thank you! Very quick answer!!

--

댓글 없음:

댓글 쓰기