1
vote
Merge two sorted linked lists in C++
std::forward_list already has a merge() member function. In an interview, I would use that rather than reinventing a wheel. I'...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
linked-list × 1068c++ × 326
c × 259
java × 252
beginner × 114
algorithm × 90
python × 87
reinventing-the-wheel × 70
c++11 × 64
stack × 61
performance × 59
pointers × 56
c# × 54
programming-challenge × 47
interview-questions × 44
memory-management × 43
object-oriented × 38
python-3.x × 33
queue × 33
javascript × 30
circular-list × 30
unit-testing × 25
hash-map × 25
iterator × 25
mergesort × 24