No idea... Sorry if I sounded rude in my first comment. Try entering this: 1 3 5 7 9 2 4 6 8 10, in that order. That's what I did. Also, I didn't download it, so that might affect it too...
I don't know what is wrong with it. I had Paddle2See look at it and he helped me a lot but there are still glitches. Do you have an idea of what the problem might be?
Apparently, it is assuming that the Answer block always returns a character string...so it is doing character string type comparisons. Here is a work-around: I forced the list to have numbers by adding zero to the answer block results
(link to project)">(link to project)
Warning: This is very glitchy. If you know what the problem is, please tell me. Another sorting algorithm. It will sort a list from smallest to largest. It is a bit more complicated than Bubble Sort, but faster.
Thanks Paddle2See for helping me its online glitches
Comments
You need to be logged in to post comments
Add a Comment
nice
I am happy you find it nice.
glitch 0 5 1 12 20 1999 999999999
Yes. Do you know how to fix it?
(view all replies)Mine messed up a couple of numbers, too: 0 1 2 4 3 6 5 8 7 9 10
No idea... Sorry if I sounded rude in my first comment. Try entering this: 1 3 5 7 9 2 4 6 8 10, in that order. That's what I did. Also, I didn't download it, so that might affect it too...
I don't know what is wrong with it. I had Paddle2See look at it and he helped me a lot but there are still glitches. Do you have an idea of what the problem might be?
Glitch: "The sorted list is: 0 5 226 12 1673 5347 9087." 226 dosen't come before 12!
Yeah... I don't know what the problem is.
Still cool though.
Wow...Nice Project. Have you seen this: (link to project)">(link to project)
Thank you. I will check it out.
It isn't faster on my computer.
You have another problem too...you can't get it to run a second time. It appears that the Answer block hangs on to it's value between runs...
Thanks. That's really weird. I'm SURE that only happens online. Do you know of a way to get around THAT?
(view all replies)Apparently, it is assuming that the Answer block always returns a character string...so it is doing character string type comparisons. Here is a work-around: I forced the list to have numbers by adding zero to the answer block results (link to project)">(link to project)
If you do numbers bigger than 9, it breaks It only sorts the first digit
hmm... I don't think it does that offline. Do you know how to fix it?