Seg Fault in Double Linked List

Removing code. :/
Last edited on
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.
Added some comments, does that make it clearer?
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.
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
Topic archived. No new replies allowed.