## Reverse a Linked List in groups of given size | Set 2

Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Examples: Inputs: 1->2->3->4->5->6->7->8->NULL and k… Read More »

## Find length of loop in linked list

Write a function detectAndCountLoop() that checks whether a given Linked List contains loop and if loop is present then returns count of nodes in loop.… Read More »

## Median of Stream of Running Integers using STL

Given that integers are being read from a data stream. Find median of all the elements read so far starting from the first integer till… Read More »

## Shuffle 2n integers in format {a1, b1, a2, b2, a3, b3, ……, an, bn} without using extra space

Given an array of 2n elements in the following format { a1, a2, a3, a4, ….., an, b1, b2, b3, b4, …., bn }. The… Read More »

## Adobe Interview Experience | Set 47

Round 1(Telephonic) Dynamic memory allocation for 2d array How polymorphism works in C++(Vptr and Vtable implementation) Rope burning puzzle (Measure 45 mins) Round 2(Skype) Find… Read More »

## Program for Binary To Decimal Conversion

Given a binary number as input, we need to write a program to convert the given binary number into equivalent decimal number. Examples : Input… Read More »

## Nuts & Bolts Problem (Lock & Key problem) | Set 2 (Hashmap)

Given a set of n nuts of different sizes and n bolts of different sizes. There is a one-one mapping between nuts and bolts. Match… Read More »

## Search an element in an unsorted array using minimum number of comparisons

Given an array of n distinct integers and an element x. Search the element x in the array using minimum number of comparisons. Any sort… Read More »

## Count pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N)

Given N, count all ‘a’ and ‘b’ that satisfy the condition a^3 + b^3 = N. Examples: Input : N = 9 Output : 2… Read More »

## Find the Longest Increasing Subsequence in Circular manner

Given an array, the task is to find to LIS (Longest Increasing Subsequence) in a circular way. Examples : Input : arr[] = {5, 4,… Read More »

## Put spaces between words starting with capital letters

You are given an array of characters which is basically a sentence. However there is no space between different words and the first letter of… Read More »

## Adobe Interview Experience | Set 46 (For Internship)

The interviewer first asked me to tell sumthing about myself. Then he asked my favorite subjects what are virtual functions in C++? how are calls… Read More »

## Minimum number of jumps to reach end | Set 2 (O(n) solution)

Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function… Read More »

## Sort an array after applying the given equation

We have an integer array that is sorted in ascending order. We also have 3 integers A, B and C. We need to apply A*x*x… Read More »

## Multiply Large Numbers represented as Strings

Given two numbers as strings. The numbers may be very large (may not fit in long long int), the task is to find product of… Read More »