36d5eb111a4ffcebcdf9d95e56c09df056914f64
Pretty simple, returns the last node as that's the new root node. Uses default parameters to make sure the first node has next set to null.
Algorithms
Common algorithms in C/C++/Python depending on which one is the nicest/makes the most sense to use. This will include random maths stuff as well, such as making supporting mechanisms for, say, the use of group semantics.
Languages
C++
61.7%
C
16.7%
Racket
16.6%
Makefile
3.3%
Emacs Lisp
1.7%