How to Merge Two Sorted Lists (Recursion and Iterative)? April 8, 2016 algorithms, c / c++, coding exercise, data structure, recursive No Comments Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Merging … [Continue Reading...]
How to Delete Node in a Linked List (Given Only Access to That Node)? April 7, 2016 algorithms, c / c++, data structure No Comments Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 -> 2 … [Continue Reading...]