Interview Logic Questions

Find the number of zero's in 'Factorial of a number' N factorial

2010
11
Aug

How to find the number of zeros in the factorial of a number, For example 10! = 3628800 has 2 zeros.

Read More

Select second largest value in a column using SQL

2010
12
May

Find the second largest value in a column using SQL (Preferrably a single query)



Create 24 using Addition Subtraction Multiplication and Division from 3 3 8 8

2010
20
Feb

How do you apply +, -, *, /, (, ) on 3, 3, 8, 8 to get 24?



Reminder after dividing factorial 1! + 2! + 3! + ? + 100! By 7?

2010
20
Feb

Find the remainder left after dividing 1! + 2! + 3! + ... +100! By 7?



Measure 30 Minutes and 15 minutes with a 20 Minute Candle

2010
19
Feb

2 Candles each which can burn for 20 minutes each are given to you. How will you measure a time of
1) 30 minutes?
2) 15 minutes ?
(You are not having a watch or clock :D and the rate of candle burning varies from section to section on the candle.)



Combinations to Reach Nth Stair by moving up one step or two step at a time.

2010
25
Jan

There is a stair, and a person can go up the stairs, in steps of one or steps of two (ie Skip a step and jump). Find in how many combinations can a person reach the Nth stair.

Read More

Number of Tennis Balls to make a 4 sided pyramid of 25 levels

2009
10
Dec

How many number of Tennis Balls are required to make a 4 sided pyramid of 25 Levels?

Read More

Divide A Triange into a 5 triangle of equal Area.

2009
02
Dec

How would you go about dividing a Triangle of any type to 5 Triangles of Equal Area?



Jar of Oranges Apple and Mix of oranges and apple

2009
02
Dec

You are given 3 Jars with one containing only Apples, one containing only Oranges, and one containing a mix of oranges and apple. The labels of the jars are all mislabeled. How many fruits should you take out to label the Jars correctly?

Read More