Interview Process   |   Interview Puzzles / Aptitude   |   Technical Questions
Organization : DirectI
Position : Software Developer
My technical Interview questions consists primary of three sections:
1. Program/Algorithm
2. Theoretical
3. Sql

Program/Algorithm Interview Questions
1. Write a recursive function reverseString(string str) that reverses an input string.
Where 'str' is the string to be reversed.

2. Write a function that will find all numbers which appears only once in an array of duplicates.

3. Recursive function to calculate factorial of an number.

4. Write a program to reverse a doubly linked list with/without using extra memory.

5. Sort an array based on frequency of numbers.


Theoretical Interview Questions
1. Which one is quicker and why?
A) Array
B) Link List.

2. How is mutex different from semaphore

3. Complexity of some sorting algos like quick,merge,hash...


Sql Interview Questions
1. Queries on joins(self join + left join)
2. Normalization concept and i was asked to normalize a table.


Thanks Anmol for sharing the details of your interview.
Send more details and your personal experiences [email protected]
Suggestions

Logic Problem Brain Teaser

The world is facing a serious viral infection. The government of various countries have issued every citizen two bottles. You as well have been given the same. Now one pill from each bottle is to be taken every day for a month to become immune to the virus. The problem is that if you take just one, or if you take two from the same bottle, you will die a painful death.

While using it, you hurriedly open the bottles and pour the tablets in your hand. Three tablets come down in your hand and you realize they look exactly the same and have same characteristics. You can’t throw away the pill as they are limited and you can’t put them back or you may put it wrong and may die someday.

How will you ensure that you are taking the right pill?
category : LOGIC

Fake Coin Brain Teaser

In front of you, there are 9 coins. They all look absolutely identical, but one of the coins is fake. However, you know that the fake coin is lighter than the rest, and in front of you is a balance scale. What is the least number of weightings you can use to find the counterfeit coin?
category : LOGIC

Water Measurement Riddle

A barman is having a 12 liters jug full of beer. He needs to divide or split that beer into two equal parts. All he has is two empty jugs of capacity 8 liters and 5 liters.

How will he do it using them?
category : LOGIC | MEASURE

Whats The Temperature Rebus

Below rebus represents the current Temperature.

0
=========
B.Sc
LLB

What is the current Temperature ?
category : REBUS

Popular Interview Problem

I have two rectangular bars.

They have property such that when you light the fire from one end , it will take exactly 60 seconds to get completely burn.
However they do not burn at consistent speed (i.e it might be possible that 40 percent burn in 55 seconds and next 60 percent can burn in 10 seconds).

Problem is : How do you measure 45 seconds ?

Tricky Math Race Riddle

Rooney, Hernandez, and Robin race each other in a 100 meters race. All of them run at a constant speed throughout the race.

Rooney beats Hernandez by 20 meters.
Hernandez beats Robin by 20 meters.

How many meters does Rooney beat Robin by ?
category : LOGIC | MATHS

Hard Logic Brain Teaser

There are 100 doors. 100 strangers have been gathered in the adjacent room. The first one goes and opens every door. The second one goes and shuts down all the even numbered doors – second, fourth, sixth... and so on. The third one goes and reverses the current position of every third door (third, sixth, ninth… and so on.) i.e. if the door is open, he shuts it and if the door is shut, he switches opens it. All the 100 strangers progresses in the similar fashion.

After the last person has done what he wanted, which doors will be left open and which ones will be shut at the end?
category : LOGIC

Measuring Time Logic Puzzle

You are given with two ropes with variable width. However if we start burning both the ropes, they will burn at exactly same time i.e. an hour. The ropes are non-homogeneous in nature. You are asked to measure 45 minutes by using these two ropes.

How can you do it?

Please note that you can’t break the rope in half as it is being clearly stated that the ropes are non-homogeneous in nature.

Crossing Bridge Brain Teaser

Four friends need to cross a dangerous bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge?

Tricky Iq Question

In a jar, there are some orange candies and some strawberry candies. You pick up two candies at a time randomly. If the two candies are of same flavor, you throw them away and put a strawberry candy inside. If they are of opposite flavors, you throw them away and put an orange candy inside.

In such manner, you will be reducing the candies in the jar one at a time and will eventually be left with only one candy in the jar.

If you are told about the respective number of orange and strawberry candies at the outset, will it be feasible for you to predict the flavor of the final remaining candy ?
category : LOGIC

Puzzles Tags :

Illusions Tags :