## Print the nodes at odd levels of a tree

Given a binary tree, print nodes of odd level in any order. Root is considered at level 1. For example consider the following tree 1… Read More »

## Merge two sorted lists (in-place)

Given two sorted lists, merge them so as to produce a combined sorted list (without using extra space). Examples: Input : head1: 5->7->9 head2: 4->6->8… Read More »

## Accolite Interview Experience | Set 18 (On-Campus)

Rounds: 1. Aptitude Round 2. Technical Round M1 3. Technical Round M2 4. Technical Round M3 5. HR Round Aptitude Round: There were 20 MCQs… Read More »

## A product array puzzle | Set 2 (O(1) Space)

Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all… Read More »

## Find n-th lexicographically permutation of a string | Set 2

Given a string of length m containing lowercase alphabets only. We need to find the n-th permutation of string lexicographically. Examples: Input : str[] =… Read More »

## Find top k (or most frequent) numbers in a stream

Given an array of n numbers. Your task is to read numbers from the array and keep at-most K numbers at the top (According to… Read More »

## Accolite Interview Experience | Set 17 (On-Campus)

Written aptitude: This round consists of 20 MCQ’S from OS, c, dbms etc. F2F Round 1: In this round, first she asked about some OOPS… Read More »

## 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 »

## Accolite Interview Experience | Set 16 (On-Campus)

Round 1 (APTITUDE) : 20 mcqs in 30 minutes of time -0.25 negative marking Questions were from core computer science subjects and one blood relation… Read More »

## Find Second largest element in an array

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… Read More »

## Sum of two large numbers

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

## Check if a string can be obtained by rotating another string 2 places

Given two strings, the task is to find if a string can be obtained by rotating another string two places. Examples: Input: string1 = “amazon”,… Read More »

## Accolite Interview Experience | Set 15 (On-Campus)

1st round consisted of 20mcq questions to be answered in 30 minutes. Around 120 students appeared for the test. Top 5 were called directly for… Read More »

## Length of longest palindrome list in a linked list using O(1) extra space

Given a linked list, find length of the longest palindrome list that exist in that linked list. Examples: Input : List = 2->3->7->3->2->12->24 Output :… Read More »

## Find elements which are present in first array and not in second

Given two arrays, the task is that we find numbers which are present in first array, but not present in the second array. Examples :… Read More »