Kartikey353 / Learn-DSA

4 stars 14 forks source link

findPairWithGivenSumInADoublyLinkedList.cpp #29

Open priyanshuanand166 opened 1 year ago

priyanshuanand166 commented 1 year ago

Given a sorted doubly linked list of positive distinct elements, the task is to find pairs in a doubly-linked list whose sum is equal to given value x,without using any extra space.