Solving A Classic Interview Puzzle - Google Puzzle for Software Engineers

  Рет қаралды 53,445

LOGICALLY YOURS

LOGICALLY YOURS

Күн бұрын

It's a classic google interview puzzle asked in the interviews for software engineers. The puzzle has four challenges. The idea behind this whole problem is to demonstrate how human mind can easily get conditioned.
This puzzle teaches you two lessons, so don't skip the video.
You can buy "Logically Yours" merchandise here:
kadakmerch.com/collections/lo...
Below are more google interview puzzles you can try:
Ant & Honey Puzzle || Increase your logical thinking
• Ant & Honey Puzzle || ...
Google Interview Puzzle | Poisonous Milk Bottle | Simple yet Tricky
• Google Interview Puzzl...

Пікірлер: 95
@irfansnm
@irfansnm Жыл бұрын
Brain stimulating and well explained!
@suryasentosa9677
@suryasentosa9677 Жыл бұрын
It's true . After I found the answers of blocks A, B and C, then I started thinking complicatedly to solve the block D😂. Thanks Mr. Ammar for your very interesting puzzles so far. I'm one of your fans. Please upload more puzzles in KZbin channel 👍👍👍👏👏👏.
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
I’m extremely happy to see this comment :)
@danquaylesitsspeltpotatoe8307
@danquaylesitsspeltpotatoe8307 7 ай бұрын
@@LOGICALLYYOURS Heres one Google puzzle, they didnt want to be sexist and underpay women (which they feared) so they checked what females got paid compared to what males did! They found out women where paid 25% more! What did they do to fix this? 1) Reduced womens pay down to what they pay men? 2) Increase mens pay so they are paid the same as females and not under paid by 25%? 3) Say thats fine we dont mind being sexist and discriminating against men? And did nothing! This is why everyone should use another search engine and block ads on google!
@numaanypervez6315
@numaanypervez6315 Жыл бұрын
I solved A, then B, then jumped to D 😁 and then started watching for C... it was lovely.
@TheCloudyoshi
@TheCloudyoshi Жыл бұрын
I couldn't get D, and somehow as soon as you started talking about conditioned thinking, I looked back at D and realized the solution before you showed the lines. Interesting video!
@hemankgupta
@hemankgupta Жыл бұрын
I actually solved all of them. C was a bit tricky but I figured it out. I appreciate the efforts that you put into making and animating these puzzles. Waiting for more new logic every week.👍👍👍❤❤❤
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
Thanks Hemank. By the way you’ve got a unique name.
@hemankgupta
@hemankgupta Жыл бұрын
@@LOGICALLYYOURSOoo Thank you so much you replied to my comment. I am a 14 year old boy and a big fan of yours.
@andreas5384
@andreas5384 7 ай бұрын
It took me very long to understand that I did not have to be able to actually construct the shapes, but describing them would be OK. E.g., how would you dissect the side of D into fifths?
@michaelglynn2638
@michaelglynn2638 Жыл бұрын
I enjoyed this, thank you.
@sreenath2830
@sreenath2830 Жыл бұрын
I'm a subscriber of some channels uploading critical thinking puzzles. Your channel is the best 🥰
@n_eros
@n_eros Жыл бұрын
So glad you uploaded😍
@biswanathprasad1332
@biswanathprasad1332 Жыл бұрын
It's really a good excercise for me. Solved in one go. Thank you
@devarshbhatt8099
@devarshbhatt8099 Жыл бұрын
All answered correct!
@algorithminc.8850
@algorithminc.8850 Жыл бұрын
Very nice. And quite important. Cheers.
@nowitspk
@nowitspk Жыл бұрын
went through all the 51 video. thanks for the playlist. I have a interview on tuesday will update how it went.
@LokeshSharma-hm5jz
@LokeshSharma-hm5jz 10 ай бұрын
LESSON 2 IS VERY USEFUL. It happens to me most of the times in coding quesitons
@udayptp
@udayptp 11 ай бұрын
Awesome man
@dollcyjain2452
@dollcyjain2452 Жыл бұрын
Mind blowing and amazing problem 3rd one was very difficult for me but I am sure that after watching this i will be able to solve other problems by preventing the mistakes made here
@FatimaMortaza
@FatimaMortaza Жыл бұрын
I really admire your videos from you like heart❤
@dr.mohammedsuhail1799
@dr.mohammedsuhail1799 Жыл бұрын
Hey ammar just came to know about your channel.. I am really happy to see that your channel has grown with soo many subscribers and views.... And content is just superb.... it reflects your hard work.. And no doubt the accent oration and confidence is showing reflection of your father and wisdom from your mom.... Subscribing now... ... Stay blessed.. All the best 🎉
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
Thanks Sohail bhayya for your lovely comments and appreciation. It was a wonderful comment that made my day 😇
@vadimk2109
@vadimk2109 Жыл бұрын
For C you have also the option of drawing the diagonals of the 3 smaller whites squares-> 12 identical triangles and then easy to split into 4 🙂 you don't even need to think about the pattern of the others !!
@VirajChandra
@VirajChandra 11 ай бұрын
yes
@tanishqagarwal6778
@tanishqagarwal6778 Жыл бұрын
Was waiting for new video
@sushantkanojiya1856
@sushantkanojiya1856 Жыл бұрын
Great one. So happy that I almost solved the puzzle the same way. I guess, the conditioned mindset didn't affect me. I just went for the easiest solution. 😅 For the area C, there are 3 squares considering each square is of 1 cm² area. The total is 3 cm². Dividing by 4, it will be 0.75 cm² each. It's easy to divide outside squares by cutting the length of 0.75 cm . Now the remaining part, just draw the diagonal line, and it is divided into 2 identical areas of 0.75 cm² each. But, your solution was amazing. It was all in front of our eyes, and we never observed. 😮 P.S.: Oh, it's so hard to explain the solution just by typing down here for me. 😅
@qc1okay
@qc1okay Жыл бұрын
Incorrect. The four pieces must be identical in shape, not just identical in area.
@sushantkanojiya1856
@sushantkanojiya1856 Жыл бұрын
Thank you.
@gazart8557
@gazart8557 9 ай бұрын
Awesome
@avinashthakur80
@avinashthakur80 Жыл бұрын
Another solution to C could be similar to B. As we divided B into 3 squares, further divide these 3 squares into 4 triangles(or squares). Then you have 12 identical triangles(or squares) Now, just group them into groups of 3 to get 4 groups. This can form your solution also, or something different.
@Andreas-ni2lt
@Andreas-ni2lt Жыл бұрын
You would be able to get equally sized, but not equal pieces this way. Edit: I mean with triangles.
@qc1okay
@qc1okay Жыл бұрын
@@Andreas-ni2lt No, if we're allowed to move around the items that we've cut, then even with triangles, we can form them into four identical groups.
@zacharymogel9500
@zacharymogel9500 Жыл бұрын
I knew for part D I could just draw 4 lines, but for C I thought of cutting it diagonally like A, then dividing those two parts in half again
@praveenrao9266
@praveenrao9266 Жыл бұрын
Yes exactly so even I also doing it in same way... So we'll get 4 identical triangles
@qc1okay
@qc1okay Жыл бұрын
@@praveenrao9266 No you don't get 4 identical triangles, so this solution fails. You CAN get four items of identical area with the method that the two of you are using, but you will have two different types of shapes among the four.
@levistepanian5341
@levistepanian5341 10 ай бұрын
I solved C by imagining a diagonal cut similar to A, as well as a perpendicular cut strategically placed such that it divides each half into two equal pieces
@iitanchemistrybysagar
@iitanchemistrybysagar 9 ай бұрын
Mr ammar , please continue the series
@garvsenshivpuri9891
@garvsenshivpuri9891 10 ай бұрын
I did exaxtly like this
@ishandeshmukh2925
@ishandeshmukh2925 4 ай бұрын
For Solving C i tore the White region like A and flipped one piece to form a rectangle and then its easy to divide by 4
@friend757
@friend757 Жыл бұрын
I passed the test happily
@yaduvarma9854
@yaduvarma9854 Жыл бұрын
Haha... I actually solved D first , since that was the easiest... And then went on to solve A and B ... Unfortunately couldn't crack C... Atleast I dodged conditioned mindset😋...
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
😅 so that’s another perspective… you can always start in reverse 😁
@CaGoPaz
@CaGoPaz 7 ай бұрын
the C part can be divided in another shape like the A but put a straight line in the middle of C diagnolly
@mohammedzubair4739
@mohammedzubair4739 Жыл бұрын
Very interesting puzzle Your explanation is crystal clear, I enjoyed it Please upload next puzzle soon
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
Thanks Zubair… next one will be posted very soon
@Mr.Not_Sure
@Mr.Not_Sure Жыл бұрын
0:31 A "identical and equal sized", but in author's solution they not identical. Rather symmetrical. But left and right shoe are not the same right?
@JandN
@JandN Жыл бұрын
I have another solution for C. Make a diagonal cut from top left to bottom right and then bottom left to the corner of the inner square's bottom left point. Now you have 4 identical triangles.
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
That won’t work bro, but i appreciate you thought from a different perspective. You can see two of them would be different from other two.
@ailanshangpliang4162
@ailanshangpliang4162 8 ай бұрын
'D' got me.
@chriloaa
@chriloaa Жыл бұрын
In my opinion the solution of A is not correct or at least discussable. The to pieces have to same size but not the same shape. They can't be bring to a full coverage by only shifting within in the plain. A operation of flipping (or mirroring) has to be done to fulfill both requirements. I'm in doubt that this is allowed in this setup.
@tubular618
@tubular618 Жыл бұрын
I agree. The given solution results in two objects of equal area and symmetry about the diagonal, but technically not 'identical' as specified in the instructions.
@canadiannuclearman
@canadiannuclearman 7 ай бұрын
Yes i saw the same.
@hapexamendar1093
@hapexamendar1093 3 ай бұрын
Well, there is a difference between the verbal instructions and the written instructions. So if this is allowed in A, C could also have a different answer as you have three blocks that are .5 x .5 and if you take 75% of each of those blocks each will have 25% left over from each which can make a fourth shape of 75%
@beemawala2973
@beemawala2973 11 ай бұрын
Amar Sir Post More Amazing puzzle
@Klimbo93
@Klimbo93 9 ай бұрын
Block C explanation of the thinking process strikes me as "pray for the solution to hit you in the face" May I sugguest how I found it myself, using rather rational thoughts 1. Analysing lessons learned (pattern recognition) When I saw the challenge of it, I tried to find some simpler problem which looked analogical. Block A had also a strange looking solution and I wondered what lesson learned I could get from that one on figuring out a procedure to methodically finding that strange morphologies. I figured that if I considered the partition of the white region into the simplest equal parts, three squares, then any partition of them parts into equal subparts will give equal parts throuthoughy the whole zone too, as well potential to rearranging them into new assemblies if the same number of subparts. In Block A, since I needed to divide by two, while I had three, I needed to divide the area into a common multiple of equal parts, six, then arranging the smaller partitions into assemblies of three, ie, two blocks of three equal parts. The partition of the three equal squares into two pieces each turned to work out as 45º rectangles, which then arrenged into blocks of three would give the shape we sorted out intuitively. 2. Applying lesson learned Applying this strategy, now we had the white zone of Block C separated into the three simplest equal partitions. Now, since we needed four and not three equal partitions, we need to find a common multiple, twelve. So each square must be fractioned into four equal elements. I first tried breaking it into triangles again, but assemblies of three triangles don't really make for building elements. Then I tried a four square partition. Assemblying three squares into that L shape did allow to fill the white zone, and therefore the solution was found. 3. Comments Mind I said "a common multiple", not the smallest one. If the shapes I found dividing the squares into the first order of partitions didn't give me any results, breaking down further into smaller sub-pieces with a factor of 2, 3, 4, etc, may have eventually solved the problem. Thanks for reading!
@chonpincher
@chonpincher 5 ай бұрын
The problem is ill-specified. (1) What do you mean by “divide”: by Euclidean construction or some other way? (2) What do you mean by “equal”: geometrically congruent (allowing reflection?) or just equal in area? (3) What do you mean by “pieces”: can the pieces be formed by assembling smaller pieces?
@rohanpawar1603
@rohanpawar1603 11 ай бұрын
This question tricked me😂
@surajlakhere2308
@surajlakhere2308 10 ай бұрын
In c block we can create triangle also
@HarshLohia-cc4eb
@HarshLohia-cc4eb Жыл бұрын
Hey amar, i am a student and genuinely interested in such riddles. Could you recommend me some online sources from which you gain such fascinating Puzzles and their answers
@SpeedyBozar
@SpeedyBozar 7 ай бұрын
the D part is the evidence i am mentally damaged by difficult puzzles
@devanshjain4454
@devanshjain4454 Жыл бұрын
things are planned easy it's on the solver to make them tough
@cool-aquarian
@cool-aquarian Жыл бұрын
Solved for all four. My solution for C is different (as I understood equal as meaning equal area pieces, otherwise should have mentioned identical pieces instead of equal pieces): 1) divide C into 2 identical trapeziums in the middle. 2) for each trapezium, divide using line passing through middle point of the two parallel lines.
@sanoysgamingchannel
@sanoysgamingchannel 6 ай бұрын
Soo are we to assume we can just meassure the sides, because i at least cant draw 4 perfectly spaced parallels by hand
@sanoysgamingchannel
@sanoysgamingchannel 6 ай бұрын
Because in any other puzzle i would be laughed at for being asked if i can meassure the sides
@canadiannuclearman
@canadiannuclearman 7 ай бұрын
There is an error in A the 2 parts are not the same one is the mirror image of the other. Not unless you flip one upsidedown if it was like a piece of paper
@posthocprior
@posthocprior Жыл бұрын
This was confusing. The length of the smaller square and the length of the larger square are given. So, I thought the primary exercise was to find the area of each, subtract and then divide. It would have been clearer if the lengths wasn’t presented.
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
Without lengths mentioned, dividing square B into three pieces would become objectionable. Pls try it and let me know if you got my point.
@rogerkearns8094
@rogerkearns8094 Жыл бұрын
Yeah, I could see how do that 52 seconds in.
@demonstuffprabhat
@demonstuffprabhat 8 ай бұрын
Can't we divide the white part of C into 4 identical triangles ?? It's one of the options.
@bix64000
@bix64000 Жыл бұрын
Am I the only one to think that your solution for A doesn't give two "identical" pièces, as requested, but two symmetrical pieces instead? B, C and D solutions are identical.
@BorgNetzWerk
@BorgNetzWerk 9 ай бұрын
Hey there @LOGICALLYYOURS, just wanted to let you know some of your videos are flagged as "KZbin Kids" and can't be interacted with (no playlists, no comments etc.) Maybe you can change a setting or appeal to KZbin? I don't think Kids are the main audience of a Google Interview ^^
@jfichtner
@jfichtner Жыл бұрын
I don't understand how D is a proper solution if you can't use tools/rulers. How can you know the lines are equadistant? Same with C, honestly. A and B both involve drawing lines from point to point, or i guess for B from point to line parallel with another line. For C I came up with 4 triangles, drawing from corner to corner. I feel like D is not possible without tools, at least for more than a rough estimation.
@joysuryadutta2306
@joysuryadutta2306 Жыл бұрын
i already did ut...hahaah.. then i thought naaa...but i thought why not ...actually with the same logic it can be done in plenty of ways..i do have more than one solution
@alexfekken7599
@alexfekken7599 Жыл бұрын
The answer to A is incorrect because the pieces are not "equal": they are mirror images of each other.
@geoffreyguez
@geoffreyguez 8 ай бұрын
They have an equally sized area
@alexfekken7599
@alexfekken7599 8 ай бұрын
@@geoffreyguez They also have the same colour (which is equally irrelevant to the problem as it is stated).
@geoffreyguez
@geoffreyguez 8 ай бұрын
@@alexfekken7599 I guess in this situation "equal" means equivalent but not strictly identical. As such, they are symmetrical
@alexfekken7599
@alexfekken7599 8 ай бұрын
@@geoffreyguez Ah I see: this was not meant as a mathematical problem. In that case any solution that anybody feels comfortable with is an acceptable solution of course. With my mathematical background I would totally fail an interview like this.
@JanPBtest
@JanPBtest Жыл бұрын
It's well-known (been known and researched for about 20 years now) that ability to solve puzzles at interviews does not correlate with job performance. That's why they were largely abandoned as an interviewing tool. I'm surprised to see the idiocy coming back. BTW, research into work performance has more interesting findings up its sleeve. For example: (1) open-seating office layout decreases job performance, and (2) so does the short American PTO (it was found, for example, that the average German employee brings more revenue to his employer with his 6-week PTO than the average American one with his 2-week PTO. Of course, nobody listens. It's like covid and science, I guess 🙂
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
I agree that the job selection shouldn’t be purely based on aptitude and puzzles. However, there should be at least one simple riddle part of this process (and the candidate should be given sufficient time to solve it). I recently got an offer from a leading global IT company who conducted a computer based aptitude test as the first step of selection process. It was a tough one and I cracked it. Although I was happy to get selected here but I personally felt it’s not a good approach to filter out technical candidates based on this test. One or two simple riddles would make more sense during the interview rounds.
@JanPBtest
@JanPBtest Жыл бұрын
@@LOGICALLYYOURS I worked in the industry for many years and my conclusion is that interviews simply are useless in general _except_ to establish quickly if the personis not a _total_ fake or a psychopath. Otherwise, the interview process cannot possibly evaluate the potential for job performance simply because it's impossible, physically, to figure it out within the interview time frame. Also, performance depends to a _very_ large extent on the workplace morale. For example, people assume Google employees are so great because Google knows how to hire good people. But the truth is exactly the opposite: first of all, _nobody_ knows how to hire good people. If this were known, it would be a huge revolution in not just the compter industry but everywhere. The reason people perform so well is that the company isvery successful (for other reasons). I've seen this phenomenon first-hand, the correlation islike clockwork. Anyway, long story 🙂Science depatments at universities don't bother with interviews, they go by the track record. But this is really impossible to do with the computer industry as there is no established record like the publishing record in science. So everyone plays silly games instead, pretending they mean anything.
@swedishpsychopath8795
@swedishpsychopath8795 Жыл бұрын
OMG: I solved all of them in my head in 35 seconds just by looking on the thumbnail. Watching the video was fun as a bonus. The only difference was that I made the lines vertical in the D square. Too easy. If this is indicative of the level at Google then don't bother to offer me a job there. BTW: My IQ is 157.
@gazart8557
@gazart8557 9 ай бұрын
Why on a hiatus bro?
@LOGICALLYYOURS
@LOGICALLYYOURS 8 ай бұрын
I’m so sorry for the delay.. this weekend a fresh one is coming
@gazart8557
@gazart8557 8 ай бұрын
Yaay🎉
@1Happy_Singh
@1Happy_Singh Жыл бұрын
Why Can't We Divide The " C " Into 2 Triangles And 1 Square ? Should Shape Must Be Same Or Just The Area ?
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
Well it’s mentioned that pieces should be identical… but still do you have a solution that gives 4 pieces of same area ?
@restingsmirkface
@restingsmirkface Жыл бұрын
As a SW Engineer, I admit I totally misinterpreted the problem. I thought you had to *actually* use techniques that could get you _exact_ positions of your dividing lines (e.g. bisection). In the block D example, they divide it visually - with no demonstrated way of knowing exactly where to place the lines, other than to hand-wave and basically say "well, I would use a calculator to get the correct answer". I bet these days people "pass" by explaining they would just ask ChatGPT to do their work for them...
@tanishqagarwal6778
@tanishqagarwal6778 Жыл бұрын
You promised to be regular But still 😢
@LOGICALLYYOURS
@LOGICALLYYOURS Жыл бұрын
New puzzles are almost ready.. won’t disappoint you this time :)
@Betelgeusewaitforit
@Betelgeusewaitforit 9 ай бұрын
No no.. not possible the question does not have anything to divide with and what is the material of these squares ? Can we fold it ? Is it brittle ? Do I need scissors or precision cutting device ? It's not tricky just absurd and illogical question.
@waseemtarique3507
@waseemtarique3507 Жыл бұрын
Assalamualaikum ammar bhai i sent you request on LinkedIn I am also power apps developer i need some suggestions from you kindly accept
Who Won the 4th Game? | AMAZON Interview Riddle | Hard Logic Puzzle
6:19
Hard Puzzle 9 Digit Passcode to Open The Door - Tricky Riddle
9:16
LOGICALLY YOURS
Рет қаралды 48 М.
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 9 МЛН
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 45 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 10 МЛН
Solving A Classic Google Interview Logic Puzzle
9:03
MindYourDecisions
Рет қаралды 8 МЛН
Logic Riddle 65 Demons In a Village || Hard Interview Riddle
6:09
LOGICALLY YOURS
Рет қаралды 52 М.
Autoencoders | Deep Learning Animated
11:41
Deepia
Рет қаралды 2,8 М.
GOOGLE Interview Question || Puzzle : 12 Men On An Island || Hard Logic Puzzle
22:01
This logic puzzle stumped ChatGPT. Can you solve it?
16:30
MindYourDecisions
Рет қаралды 298 М.
Solving a viral geometry problem from Twitter
5:25
MindYourDecisions
Рет қаралды 580 М.
YAHOO Interview Puzzle || Camel and Bananas || Logic + Optimization
5:34
Torch and 8 Batteries Puzzle || Think outside the box
5:23
LOGICALLY YOURS
Рет қаралды 256 М.
10 Interview RIDDLES || Episode #4 || Quick & Tricky
9:18
LOGICALLY YOURS
Рет қаралды 2,5 МЛН
Что не так с яблоком Apple? #apple #macbook
0:38
Не шарю!
Рет қаралды 418 М.
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 2,1 МЛН
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН