Skip to content

Tag Archives: SAP Labs

  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
  An element in a sorted array can be found in O(log n) time via binary search. But suppose we rotate an ascending order sorted… Read More
Given a positive integer, write a function to find if it is a power of two or not.Examples :  Input : n = 4 Output… Read More
Write a program that, given an array A[] of n numbers and another number x, determines whether or not there exist two elements in A[]… Read More