Find pairs with a given sum in a DLL

1 min read

https://www.geeksforgeeks.org/find-pairs-given-sum-doubly-linked-list/

Reverse a doubly linked list
Count triplets in a sorted DLL whose sum is equal to given value X