Given a Linked List add 1 to it. Complete the given function and return the head of the link list after adding 1 to it.
You have to complete the method which takes 1 argument: the head of the linked list .You should not read any input from stdin/console. There are multiple test cases. For each test case this method will be called individually.
Your function should return a pointer to a linked list with no duplicate element.
1<=size of linked lists<=50
Note: If you use "Test" or "Expected Output Button" use below example format.
1 9 9 9
2 0 0 0
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.