Solving A Classic Interview Puzzle - Google Puzzle for Software Engineers

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 96

  • @suryasentosa9677
    @suryasentosa9677 Год назад +30

    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 RUclips channel 👍👍👍👏👏👏.

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  Год назад +1

      I’m extremely happy to see this comment :)

    • @danquaylesitsspeltpotatoe8307
      @danquaylesitsspeltpotatoe8307 10 месяцев назад

      @@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!

  • @irfansnm
    @irfansnm Год назад +20

    Brain stimulating and well explained!

  • @hemankgupta
    @hemankgupta Год назад +10

    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  Год назад +2

      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 10 месяцев назад

      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?

  • @numaanypervez6315
    @numaanypervez6315 Год назад +6

    I solved A, then B, then jumped to D 😁 and then started watching for C... it was lovely.

  • @TheCloudyoshi
    @TheCloudyoshi Год назад +2

    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!

  • @dr.mohammedsuhail1799
    @dr.mohammedsuhail1799 Год назад +4

    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  Год назад +2

      Thanks Sohail bhayya for your lovely comments and appreciation. It was a wonderful comment that made my day 😇

  • @sreenath2830
    @sreenath2830 Год назад +1

    I'm a subscriber of some channels uploading critical thinking puzzles. Your channel is the best 🥰

  • @vadimk2109
    @vadimk2109 Год назад +1

    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 !!

  • @sushantkanojiya1856
    @sushantkanojiya1856 Год назад +3

    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 Год назад +1

      Incorrect. The four pieces must be identical in shape, not just identical in area.

    • @sushantkanojiya1856
      @sushantkanojiya1856 Год назад

      Thank you.

  • @avinashthakur80
    @avinashthakur80 Год назад +1

    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 Год назад +3

    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 Год назад +1

      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.

  • @chriloaa
    @chriloaa Год назад +5

    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 Год назад +2

      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 10 месяцев назад

      Yes i saw the same.

    • @hapexamendar1093
      @hapexamendar1093 6 месяцев назад

      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%

  • @Mr.Not_Sure
    @Mr.Not_Sure Год назад +1

    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?

  • @yaduvarma9854
    @yaduvarma9854 Год назад +2

    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  Год назад +3

      😅 so that’s another perspective… you can always start in reverse 😁

  • @ishandeshmukh2925
    @ishandeshmukh2925 6 месяцев назад

    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

  • @dollcyjain2452
    @dollcyjain2452 Год назад +1

    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

  • @algorithminc.8850
    @algorithminc.8850 Год назад +2

    Very nice. And quite important. Cheers.

  • @n_eros
    @n_eros Год назад +1

    So glad you uploaded😍

  • @michaelglynn2638
    @michaelglynn2638 Год назад +1

    I enjoyed this, thank you.

  • @nowitspk
    @nowitspk Год назад

    went through all the 51 video. thanks for the playlist. I have a interview on tuesday will update how it went.

  • @levistepanian5341
    @levistepanian5341 Год назад

    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

  • @Klimbo93
    @Klimbo93 11 месяцев назад

    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!

  • @cool-aquarian
    @cool-aquarian Год назад +1

    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.

  • @CaGoPaz
    @CaGoPaz 10 месяцев назад

    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 Год назад +1

    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

  • @devarshbhatt8099
    @devarshbhatt8099 Год назад

    All answered correct!

  • @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.

  • @LokeshSharma-hm5jz
    @LokeshSharma-hm5jz Год назад

    LESSON 2 IS VERY USEFUL. It happens to me most of the times in coding quesitons

  • @tanishqagarwal6778
    @tanishqagarwal6778 Год назад +1

    Was waiting for new video

  • @biswanathprasad1332
    @biswanathprasad1332 Год назад

    It's really a good excercise for me. Solved in one go.
    Thank you

  • @chonpincher
    @chonpincher 8 месяцев назад

    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?

  • @FatimaMortaza
    @FatimaMortaza Год назад

    I really admire your videos from you like heart❤

  • @bix64000
    @bix64000 Год назад +1

    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.

  • @alexfekken7599
    @alexfekken7599 Год назад +4

    The answer to A is incorrect because the pieces are not "equal": they are mirror images of each other.

    • @geoffreyguez
      @geoffreyguez 10 месяцев назад

      They have an equally sized area

    • @alexfekken7599
      @alexfekken7599 10 месяцев назад

      @@geoffreyguez They also have the same colour (which is equally irrelevant to the problem as it is stated).

    • @geoffreyguez
      @geoffreyguez 10 месяцев назад

      @@alexfekken7599 I guess in this situation "equal" means equivalent but not strictly identical. As such, they are symmetrical

    • @alexfekken7599
      @alexfekken7599 10 месяцев назад +1

      @@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.

  • @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

  • @iitanchemistrybysagar
    @iitanchemistrybysagar 11 месяцев назад

    Mr ammar , please continue the series

  • @friend757
    @friend757 Год назад +2

    I passed the test happily

  • @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 ?

  • @ailanshangpliang4162
    @ailanshangpliang4162 11 месяцев назад

    'D' got me.

  • @udayptp
    @udayptp Год назад

    Awesome man

  • @demonstuffprabhat
    @demonstuffprabhat 10 месяцев назад

    Can't we divide the white part of C into 4 identical triangles ??
    It's one of the options.

  • @BorgNetzWerk
    @BorgNetzWerk 11 месяцев назад

    Hey there @LOGICALLYYOURS,
    just wanted to let you know some of your videos are flagged as "RUclips Kids" and can't be interacted with (no playlists, no comments etc.)
    Maybe you can change a setting or appeal to RUclips? I don't think Kids are the main audience of a Google Interview ^^

  • @canadiannuclearman
    @canadiannuclearman 10 месяцев назад

    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

  • @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.

  • @garvsenshivpuri9891
    @garvsenshivpuri9891 Год назад

    I did exaxtly like this

  • @surajlakhere2308
    @surajlakhere2308 Год назад

    In c block we can create triangle also

  • @SpeedyBozar
    @SpeedyBozar 9 месяцев назад

    the D part is the evidence i am mentally damaged by difficult puzzles

  • @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...

  • @gazart8557
    @gazart8557 11 месяцев назад

    Awesome

  • @beemawala2973
    @beemawala2973 Год назад

    Amar Sir Post More Amazing puzzle

  • @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.

  • @sanoysgamingchannel
    @sanoysgamingchannel 9 месяцев назад

    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 9 месяцев назад

      Because in any other puzzle i would be laughed at for being asked if i can meassure the sides

  • @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.

  • @rohanpawar1603
    @rohanpawar1603 Год назад

    This question tricked me😂

  • @devanshjain4454
    @devanshjain4454 Год назад

    things are planned easy it's on the solver to make them tough

  • @rogerkearns8094
    @rogerkearns8094 Год назад

    Yeah, I could see how do that 52 seconds in.

  • @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.

  • @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

  • @tanishqagarwal6778
    @tanishqagarwal6778 Год назад +2

    You promised to be regular
    But still 😢

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  Год назад +1

      New puzzles are almost ready.. won’t disappoint you this time :)

  • @gazart8557
    @gazart8557 11 месяцев назад

    Why on a hiatus bro?

    • @LOGICALLYYOURS
      @LOGICALLYYOURS  11 месяцев назад +1

      I’m so sorry for the delay.. this weekend a fresh one is coming

    • @gazart8557
      @gazart8557 11 месяцев назад

      Yaay🎉

  • @Betelgeusewaitforit
    @Betelgeusewaitforit Год назад +1

    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.

    • @Anavarel
      @Anavarel Месяц назад

      Exactly. This one goes to #bullshido

  • @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