Given an array arr[] of integers, find out the maximum difference between any two elements such that larger element appears after the smaller number. … Read More
Tag Archives: SAP Labs
Given an array of integers arr[] of size N and an integer, the task is to rotate the array elements to the left by d… Read More
Given a sorted linked list and a value to insert, write a function to insert the value in a sorted way.Initial Linked List Linked… Read More
Given a sorted and rotated array arr[] of size N and a key, the task is to find the key in the array. Note: Find… Read More
Given a positive integer n, write a function to find if it is a power of 2 or not Examples: Input : n = 4Output… Read More
Given an array A[] of n numbers and another number x, the task is to check whether or not there exist two elements in A[]… Read More