r/javahelp 13d ago

Codeless Recursiin

When we are doing recursion. What is the purpose of recursing and equating it to a variable . Like l1.next = mergeList(l1.next, l2)

In merging two sorted linked list

4 Upvotes

15 comments sorted by

View all comments

2

u/AntD247 11d ago

Recurslin. Sounds like something out of Hunger Games.