how a single linked list can be sorted by swapping the pointers??
Gunjan Rathi 0 Newbie Poster
Recommended Answers
Jump to PostHave you looked at std::sort? It accepts a custom comparator.
Jump to PostThe link in my post is a reference article.
Jump to PostI wish there were a way to comment without up/down voting, so I commented on tinstaafl's post about std::sort with an up vote (I didn't feel it deserved a down vote).
Anyway, I had to do this in some production real-time code in the past. What I did was to …
All 10 Replies
Gunjan Rathi 0 Newbie Poster
tinstaafl 1,176 Posting Maven
rubberman commented: I'd agree if this were a C++ question, but it isn't. See my reply below. +12
Gunjan Rathi 0 Newbie Poster
tinstaafl 1,176 Posting Maven

1stDAN
Gunjan_1 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Gunjan_1 0 Newbie Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.