Given a string in the form 'AAAABBBBCCCCCDDEEEE' compress it to become 'A4B4C5D2E4'. For this problem, you can falsely "compress" strings…
Given an array of integers (positive and negative) find the largest continuous sum.
Consider an array of non-negative integers. A second array is formed by shuffling the elements of the first array and…
Given an integer array, output all the unique pairs that sum up to a specific value k.
Given a string of words, reverse all the words. For example:
Write a function to reverse a Linked List in place. The function will take in the head of the list…
Write a function that takes a head node and an integer value n and then returns the nth to last…
Given a singly linked list, write a function which takes in the first node in a singly linked list and…
In Doubly Linked List, We declare two pointers to store location of next Node and previous Node.