Interview Puzzle - A Clock Takes 6 Seconds To Strike 6, How Long Will It Take To Strike 12? GeekWeek

preview_player
Показать описание


Geeksforgeeks website link:

Interview Puzzle - A clock takes 6 seconds to strike 6, how long will it take to strike 12?
It's an interview puzzle, so I would encourage you to understand by yourself what the puzzle is trying to ask, because during an interview, they would never prefer to elaborate the puzzles.
However, in case if you didn't understand the problem, please find it below:
So here the puzzle statement is trying to say, when the time is 6 o'clock, the clock sounds 6 audible strikes and the total duration of the striking process is 6 seconds.
So, when the time is 12 O'clock, of course the clock would sound 12 strikes and you have to find out the duration it takes for the striking process.
Sounds simple but it's a bit tricky.

I have a quick but an important announcement about the BIGGEST FESTIVAL FOR computer Programmers along with exciting job opportunities.

GeeksforGeeks is organising Geek Week, a 7-day event between (19th and 25th of October, 2021), to celebrate coders. This week shall see daily contests, sales, competitions & engagement activities throughout with infinite excitement.

The geek week consists of:
GEEK ARENA (A bunch of six events, including Quiz and ideas summit),
LEARNER’S CORNER (where you find your favorite courses with supreme discounts),
JOB FIESTA (Geek Week wouldn’t be complete without job opportunities... here you'd find numerous job vacancies).
SUPER SAVERS FOR SUPER LEARNERS (which offers courses at extremely discounted prices)
ARE YOU THE CHOSEN ONE? (so if you are lucky, you win the courses for free)
and last but not least
ERROR 404: CODE NOT FOUND (A battle for all the programmers out there)

Geek Week is all about enhancing your programming skills with as much fun as possible. So, are you excited about this surprising 7-day Geek Week journey?

You can also watch previous episodes of frequently asked interview puzzles and tricky logical riddles:

7 Riddles That Will Test Your Brain Power - Episode #6

5 Interview RIDDLES || Episode #5 || Presence of mind

10 Interview RIDDLES || Episode #4 || Quick & Tricky

10 Interview RIDDLES || Episode #3 || Intelligence Test

5 interview Puzzles || Episode #2 :

10 Interview RIDDLES || Episode #1 || Frequently asked Job Interview RIDDLES

Also give a try to google interview puzzles.

Google Interview Riddle - 3 Friends Bike and Walk || Logic and Math Puzzle

Seemingly IMPOSSIBLE Fox Puzzle || Fox in a Hole || Asked in Google Interview

You can share puzzles and riddles with me on these links:
Рекомендации по теме
Комментарии
Автор

I had a completely different thought process. By strike 6, I thought it meant 6 o’clock, so the current time would be 5:59:54, meaning it would take 6 hours and 6 seconds to strike 12 o’clock

ThatTRATKid
Автор

6 strikes is 6 syrikes + 5 gap. Without knowing the value of the gap or strike. The fact that you declared a strike as 0 seconds is not true, if a strike is 0 seconds then there is no strike, a strike can not have 0 seconds.

testprime
Автор

The language of the problem isn't clear. To fix this problem, you must define what it means for a clock to 'strike' an hour. Since modern clocks don't chime on the hour (and haven't for many decades now), you can't assume that the meaning of striking an hour is the same for everyone. It can both be interpreted as a chiming and as 'reaching the hour'.
Also even if you make the assumption that you are talking about the chiming. There is no assumption that the rate of the chiming is consistent across all hours. Meaning the clock could take both 3 secs for the 6 and 12 chimes by just doubling the tempo. This is another clarification that has to be made in the problem for it to be solvable. And no, you can't make the assumption on your own even if it is intuitive, because many of these interview-like puzzles are dependent on the fact that specific assumptions are absent. Like the fact that you naturally make an assumption in some case will prevent you from answering correctly, e.g. trick questions. Or, they want you to find the missing information rather than making an assumption and moving on.
My answer would be:
'The answer cannot be determined with the information provided.'
Finding holes like this in puzzles might annoy non-technical people, but often enough, talented people (the ones who SHOULD be doing the technical interview) will be enlightened by your answer and give you bonus points for critical thinking. This type of thinking helps in requirements gathering (client might assume something different than you do) and test writing (better coverage). They will likely define some more assumptions so that you can solve the problem the way they originally intended anyway. So you don't get out of solving the problem, but you do get those bonus points.

David-bplr
Автор

Ammar, 6 seconds to strike 6 means to many people who've had striking clocks in their houses that it's 6 seconds from the activation of the striking mechanism until the sound of the 6th strike. That eliminates your interval-based solution entirely, making the correct answer the simplest one: each strike takes one second. I already posted a comment here (that mysteriously has been deleted) with a link to a YouTube video that shows old clocks and the sounds they make, where you can hear the striking mechanism activating just before the first strike and continuing to make its sound until the last strike.

qcokay
Автор

u didnt say from where u start to count ... who the hell start from 1?

georgi_verstapen
Автор

6 hours and 6 seconds, I like it better that way!

shaishavshah
Автор

I would have never thought about a 'grandfather clock'.
I thought the initial time was, 5:59:54 and similar for 12.

fizixx
Автор

Thanks For Detailed Explanation Sir...
Love From INDIA ❤️💖

pranaykumar
Автор

I like it. If you know that strike means a split second (to hit a bell, instantly), the question is sufficient, but the solution is not apparent, at first. It takes TIME to think about it.

darbyl
Автор

Wow, I’m literally preparing for interviews now as you upload. Thanks for the great puzzles!

zebfross
Автор

I immediately understood the difference involving gaps. But that means that the required time is 6 times the length of a strike plus 5 times the length of a gap. But we don't know how long a strike is. In my experience, it's not negligible. The best I can say is that the length of time for 12 strikes is 12 times the length of a sound plus 11 times the length of a gap.

charlesmrader
Автор

this puzzle was for 7th grade student (only if you tell them the meaning of strike)

manusarda
Автор

Please make videos on george j summers puzzles that would be really helpful.💯

shivammehta
Автор

1st strike happens at 0 second??? 1st strike ends or finishes at 1st second. Why complicate things??

sadashivbhide
Автор

i would not grieve over not working at a company that asked such a vague question expecting to arrive at their conclusion without them elaborating.

just as companies want to hire smart people. people want to work at companies that communicate effectively with their employees, at the very least. a company that asks this in an interview, but refuses to elaborate has failed to communicate effectively.

mintoocool
Автор

All Trick you need to know that striking starts at 0 second, not at 1. Like the ruler starts at 0cm, not 1cm :)

emem
Автор

The comments are full of people trying to outsmart the problem so they can avoid having to actually solve it.

reidflemingworldstoughestm
Автор

Can anyone explain why should we divide 6/5 or 11/12 ??

NaveenKumar-ulob
Автор

Me think 6*11/5 or 6*2.2 seconds as 6 bongs is 5 intervals & 12 bongs is 11 intervals

zebj
Автор

Sir I think the least possible answer is 36seconds to strike 12 with respect to seconds hand.

sabijesh