Aug 29, 2015 at 8:12pm UTC
Removing code. :/
Last edited on Aug 30, 2015 at 10:23pm UTC
Aug 29, 2015 at 8:25pm UTC
That's really confusing and doesn't make much sense. Perhaps if you explained what you're trying to do someone might be able to help you.
Aug 29, 2015 at 8:43pm UTC
Added some comments, does that make it clearer?
Aug 29, 2015 at 9:12pm UTC
Not really, if you can't describe it in words, you can't instruct a machine to do it.
For example, you don't explain why the empty list has two nodes. And you haven't explained that insertion (which is wrong) in detail.
Aug 29, 2015 at 9:44pm UTC
Sorry, English is not my first language. :/
I added a more detailed explanation of the sorting going on in insert, which is probably where the error is. I've sketched the algorithm on a white board and it seems correct, but obviously something is going wrong I'm missing.
Last edited on Aug 29, 2015 at 9:45pm UTC