#recursive
Read more stories on Hashnode
Articles with this tag
Problem You are given a linked list where each element in the list is a node and have an integer data. You need to add 1 to the number formed by...
Problem Given the head of a singly linked list, reverse the list, and return the reversed list. (link) Example 1: Input: head = [1,2,3,4,5] Output:...