Skip to content

Tag Archives: SAP Labs

Given a singly linked list and a number k, write a function to find the (n/k)-th element, where n is the number of elements in… Read More
Given that integers are being read from a data stream. Find the median of all the elements read so far starting from the first integer… Read More
Given an array of integers, our task is to write a program that efficiently finds the second-largest element present in the array.  Example: Input: arr[]… Read More
Given an array of numbers, find GCD of the array elements. In a previous post we find GCD of two number. Examples: Input : arr[]… Read More
Hi All. SAP Labs visited our campus. The whole process was divided in 5 rounds : 1) Aptitude and coding round 2) Technical interview 1… Read More
Given a string, the task is to count all palindrome sub string in a given string. Length of palindrome sub string is greater than or… Read More
Given a Binary Tree, convert it to a Circular Doubly Linked List (In-Place).   The left and right pointers in nodes are to be used as… Read More
Hi All. SAP Labs visited our campus. The whole process was divided in 5 rounds : 1) Aptitude and coding round 2) Technical interview 1… Read More
Given a string S containing alphanumeric characters, The task is to calculate the sum of all numbers present in the string. Examples:  Input:  1abc23Output: 24Explanation:… Read More
Given a singly linked list, find if the linked list is circular or not.  A linked list is called circular if it is not NULL-terminated… Read More
Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum… Read More
A number ‘n’ is called Bleak if it cannot be represented as sum of a positive number x and set bit count in x, i.e.,… Read More
Hey guys, a pool campus drive for North-East India has been conducted by SAP Labs India in Guwahati, Assam. The selection process is divided into… Read More
Hello guys, SAP recently conducted a pool drive for 2016 pass-outs. The first round was an online test which had questions from different sections like:… Read More
Given two positive numbers x and y, check if y is a power of x or not.Examples :  Input:  x = 10, y = 1Output:… Read More

Start Your Coding Journey Now!