Given a list of toy prices and an amount to spend, determine the maximum number of gifts he can buy.
You are given a pointer/ reference to the node which is to be deleted from the linked list of N nodes. The task is to delete the node. Pointer/ reference to head node is not given.
Given a String S, reverse the string without reversing its individual words. Words are separated by dots.
Minimize the difference between maximum and minimum elements of the array after performing the increment or decrement on every element of the array.