**You have 32 numbers. What is the least number of comparison needed to find the 2nd smallest out of them?**

# Snapdeal Interview Questions

## 4 letter words with atleast one vowel

**How many different 4 letter words can be formed that have at least one vowel?**

## Find Number present only once

**Write an algorithm to find out a number from an ****array of numbers where only one number occurs once and rest ****all occurs twice.**

**Note: Without using extra O(n) space and in O(n).**

[Read more…]

## Average speed of train

**A train is going at a speed of 60kmph towards Delhi ****and returned back at a speed of 30kmph. What is its average ****speed?**

[Read more…]

## Find 3 Fastest horses from 25 hourses

**There are 25 horses. We have to find out the fastest 3 horses. In one race maximum 5 horses can run. How many such r****aces are required in minimum to get the result ?**

## Output of the recursive program

**what will be the output of this program**

void print (int n) { if (n>0) { printf(“hello”); print(n-1); } printf(“world”); }