## Puzzle 4 | (Pay an employee using a 7 units gold rod?)

An employee works for an employer for 7 days. The employer has a gold rod of 7 units. How does the employer pay to the… Read More »

## Puzzle 3 | (Calculate total distance travelled by bee)

Puzzle: Two trains are on same track and they are coming toward each other. The speed of the first train is 50 km/h and the… Read More »

## Bit Fields in C

In C, we can specify size (in bits) of structure and union members. The idea is to use memory efficiently when we know that the… Read More »

## Puzzle 2 | (Find ages of daughters)

Alok has three daughters. His friend Shyam wants to know the ages of his daughters. Alok gives him first hint. 1) The product of their… Read More »

## Count number of islands where every island is row-wise and column-wise separated

Given a rectangular matrix which has only two possible values ‘X’ and ‘O’. The values ‘X’ always appear in form of rectangular islands and these… Read More »

## Puzzle 1 | (How to Measure 45 minutes using two identical wires?)

How do we measure forty-five minutes using two identical wires, each of which takes an hour to burn? We have matchsticks with us. The wires… Read More »

## Amazon Interview Experience | Set 178 (For SDE-1)

In-house interview with Amazon Bangalore for SDE 1. Here’s my experience. Round 1: My first round was the HM round because no other panel members… Read More »

## Find maximum depth of nested parenthesis in a string

We are given a string having parenthesis like below      “( ((X)) (((Y))) )” We need to find the maximum depth of balanced parenthesis, like… Read More »

## Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | Set 1

Given an array of size n where all elements are distinct and in range from 0 to n-1, change contents of arr[] so that arr[i]… Read More »

## SAP Labs Interview Experience | Set 4 (Off-Campus)

Hi everyone, Recently i had wonderful interview experience with Sap Labs India. I would like to share the interview experience with all the readers and… Read More »

## Microsoft interview Experience | Set 49 (For Internship)

Recently Microsoft visited our campus for SDE intern. The process took over 4 months. Round 1 (Online MCQ’s) time- 30 minutes. This was conducted on… Read More »

## GATE | GATE-CS-2015 (Set 3) | Question 65

Consider three software items: Program-X, Control Flow Diagram of Program-Y and Control Flow Diagram of Program-Z as shown below The values of McCabe’s Cyclomatic complexity… Read More »

## GATE | GATE-CS-2015 (Set 3) | Question 64

Consider the following C program. The output of the program is __________. filter_none edit close play_arrow link brightness_4 code # include <stdio.h> int f1(void); int… Read More »

## GATE | GATE-CS-2015 (Set 3) | Question 63

Language L1 is polynomial time reducible to language L2. Language L3 is polynomial time reducible to L2, which in turn is polynomial time reducible to… Read More »

## GATE | GATE-CS-2015 (Set 3) | Question 65

Consider the following policies for preventing deadlock in a system with mutually exclusive resources. I. Processes should acquire all their resources at the beginning of… Read More »