filmov
tv
Common Interview Puzzles Asked in Freshers Interview - Episode #4
Показать описание
Common Interview Puzzles Asked in Freshers Interview
Minimum cut Puzzle | Minimum cut Puzzle | Pay an employee using a gold rod of 7 units? | Gold Bar Cut Puzzle
Puzzle: You have got someone working for you for five days and a gold bar to pay him. You must give them a piece of gold at the end of every day. What are the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day?
Alternate Version - 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 employee, so that the number of employee’s rod units increases by one at the end of each day? The employer can make at most 2 cuts in the rod.
(Hint- after the end of the day employee’s can’t spend any part of rod)
Handshake Problem | Handshake Puzzle
A couple invites n – 1 other couples to dinner. Once everyone arrives, each person shakes hands with everyone he doesn’t know. Then, the host asks everyone how many hands they shook and each person replies with a different number. Assuming that everyone knows his or her own spouse, how many hands did the hostess shake?
Find Missing Row in Excel | Find missing Row in Excel
We are given an excel sheet which contains integers from 1 to 50, including both. However, the numbers are in a jumbled form and there is 1 integer missing. You have to write a code to identify the missing integer. Only the logic is required.
3 keys and Gates Puzzle
There are three keys that open locks of three different gates. In how many attempts, you can figure out the key for each gate?
Divide a Square into 5 parts
How to divide a square into 5 parts such that4
parts among them are equal. The condition is that
even once the pen does not get up.
Minimum cut Puzzle | Minimum cut Puzzle | Pay an employee using a gold rod of 7 units? | Gold Bar Cut Puzzle
Puzzle: You have got someone working for you for five days and a gold bar to pay him. You must give them a piece of gold at the end of every day. What are the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day?
Alternate Version - 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 employee, so that the number of employee’s rod units increases by one at the end of each day? The employer can make at most 2 cuts in the rod.
(Hint- after the end of the day employee’s can’t spend any part of rod)
Handshake Problem | Handshake Puzzle
A couple invites n – 1 other couples to dinner. Once everyone arrives, each person shakes hands with everyone he doesn’t know. Then, the host asks everyone how many hands they shook and each person replies with a different number. Assuming that everyone knows his or her own spouse, how many hands did the hostess shake?
Find Missing Row in Excel | Find missing Row in Excel
We are given an excel sheet which contains integers from 1 to 50, including both. However, the numbers are in a jumbled form and there is 1 integer missing. You have to write a code to identify the missing integer. Only the logic is required.
3 keys and Gates Puzzle
There are three keys that open locks of three different gates. In how many attempts, you can figure out the key for each gate?
Divide a Square into 5 parts
How to divide a square into 5 parts such that4
parts among them are equal. The condition is that
even once the pen does not get up.
Комментарии