# Category Archives: Stack

## Count natural numbers whose all permutation are greater than that number

There are some natural number whose all permutation is greater than or equal to that number eg. 123, whose all the permutation (123, 231, 321)… Read More »

## Find maximum sum possible equal sum of three stacks

Given three stack of the positive numbers, the task is to find the possible equal maximum sum of the stacks with removal of top elements… Read More »

## Find next Smaller of next Greater in an array

Given array of integer, find the next smaller of next greater element of every element in array. Note : Elements for which no greater element… Read More »

## Paytm Interview Experience | Set 10 (For Experienced)

It was a walk-in for experienced candidates actually. Round 1: Machine Coding Round (60 min) Q1. Infix to Postfix conversion e.g. A+(B-C)*D becomes ABC-D*+ Q2.… Read More »

## Find maximum difference between nearest left and right smaller elements

Given an array of integers, the task is to find the maximum absolute difference between the nearest left and the right smaller element of every… Read More »

## Directi Interview Experience | Set 15 (1st Round of On-Campus)

Hi, I recently appeared for the 1st round of Directi’s recruitment process. Students were divided into 2 slots. The questions for the slots were as… Read More »

## VMware Interview Experience | Set 7 (On-Campus for IT Application Developer)

Round 1: Online Multiple Choice Questions It comprised of two sections. First section consisted around 15-20 questions related to logical reasoning (Quantitative – Easy-medium-level) and… Read More »

## VMware Interview Experience | Set 6 (On-Campus for IT Application Developer)

VMWare visited an extension centre of our campus for hiring IT App Developer. Round 1 The first round a written one, conducted on HirePro platform.… Read More »

## Accolite Interview Experience | Set 13 (On-Campus for Internship and FTE)

Accolite visited our campus for recruiting Full time employees as well as interns. The process started with pre-placement talks and then we had to undergo… Read More »

## VMware Interview Experience | Set 5 (On-Campus for IT Application Developer)

Round 1: ONLINE OBJECTIVE ROUND on HIREPRO platform This round comprised of 30 objective difficult and lengthy paragraph based aptitude questions to be solved in… Read More »

## Find if an expression has duplicate parenthesis or not

Given a balanced expression, find if it contains duplicate parenthesis or not. A set of parenthesis are duplicate if the same subexpression is surrounded by… Read More »

## Intuit Interview Experience | Set 11 (On-Campus)

Intuit was the first company to visit our campus. They selected 6 students. Online Round ———————— Only people with CGPA of 9+ were allowed to… Read More »

## MakeMyTrip Interview Experience | Set 11 (Developer Position)

I recently go interviewed for MakeMyTrip Developer position. I had 5 rounds: Round 1: 1) Reverse a Linked List – You should be able to… Read More »

## Implement a stack using single queue

We are given queue data structure, the task is to implement stack using only given queue data structure. We have discussed a solution that uses… Read More »

## Design a stack that supports getMin() in O(1) time and O(1) extra space

Question: Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return… Read More »