Can you solve this Microsoft Interview Question? | Puzzles for Software Engineer Part 2

preview_player
Показать описание
Can you solve this Microsoft Interview Question? | Puzzles for Software Engineer Part 2

Explore Premium LIVE and Online Courses :

Follow us for more fun, knowledge and resources:

Also, Subscribe if you haven't already! :)

#GeeksforGeeks #Learntocode #gfg

Hashtags:
#MicrosoftInterview, #InterviewQuestions, #SoftwareEngineering, #TechPuzzles, #CodingInterview, #MicrosoftCareers, #InterviewPrep, #ProgrammingPuzzles, #TechInterview, #SoftwareEngineer, #JobInterviews, #CodingChallenges, #InterviewSeries, #PuzzleSolving, #TechCareers, #ProgrammingInterview, #InterviewPractice, #EngineerInterviews, #TechPuzzlesPart2, #ProblemSolving, #InterviewTips, #SoftwareDevelopment, #CodingSkills, #InterviewChallenges, #EngineeringPuzzles

Tags:
Microsoft Interview, Interview Questions, Software Engineering, Tech Puzzles, Coding Interview, Microsoft Careers, Interview Prep, Programming Puzzles, Tech Interview, Software Engineer, Job Interviews, Coding Challenges, Interview Series, Puzzle Solving, Tech Careers, Programming Interview, Interview Practice, Engineer Interviews, Tech Puzzles Part 2, Problem Solving, Interview Tips, Software Development, Coding Skills, Interview Challenges, Engineering Puzzles
Рекомендации по теме
Комментарии
Автор

Get 30% Off on GfG Courses. Use Code: GFGYT30
Visit www.geeksforgeeks.org/courses to avail!

GeeksforGeeksVideos
Автор

Sir, agar ham 3 liter wali bucket 🪣 se 2 times 5 liter wali bucket 🪣 me dalenge toh 5 liter wali bhar jayegi 5 liter tou 3 wali bucket mey 1 liter Pani bachega, then again 1 liter Pani 5 liter bucket 🪣 jayega and lastly 3 litres wali bucket se ek baar fir Pani dalenge toh 3+1=4 liters of water aa jayega

Tabassumalia-mbej
Автор

Suppose 2 buckets are 5l and 3l .At first 5l ko full karo fir us 5l se 3l main pani dal ke 3l ko full karo, to 5l main 2 litres pani bacha hai, ab 3l bale ka sara pani phek ke usko khali karo, ab voh 5l main jo 2 litres pani bacha hua tha usse 3l main dal do, iska matlab 3l main ab sirf 1 liter jaga khali hai, ab 5l ko full karo aur usse 3l main pani dal ke 3l ko full karo, abh 5l main se 1 liter pani chala gaya, ab 5l me only 4 litres pani bacha hai, ho gaya 4 litres pani ka hisab

sungoswami
Автор

The answer can also be solve in this way.
1. First Fill 3 Litre Bucket.
2. Pour 3 Litre Bucket water into 5 Litre Bucket.
3. Again fill 3 Litre Bucket.
4. Again pour water from 3 Litre Bucket to 5 Litre Bucket.
5. The water in 3 Litre Bucket is 1 Litre.
6. Then use the 5 Litre Bucket water.
7. Now pour 1 Litre water from 3 Litre Bucket to 5 Litre Bucket.
8. In last again fill the 3 Litre Bucket and pour it's water to 5 Litre Bucket.
The water in 5 Litre Bucket is 4 Litre.

frittsartsolar
Автор

First fill the 3 litre bucket, pour it into the 5 litre one. Remaining space is 2 litre. Fill the 3 litre bucket again and fill the 5 litre until full. Remaining is 1 l. Empty the 5 l bucket, pour the 1 l in it, fill the 3 l once more and pour that in the 5 l bucket.

pradyumnachakraborty
Автор

Fill both the buckets 🪣 half-half.... 2.5+1.5=4

ArpitMishra-ch
Автор

This was very easy to understand as compared to teaching methods of college!

VaishnaviBachwal
Автор

This is easy!!! Too bad i know little coding

darshamuralidharan
Автор

2 nd method

3 liter. 5 liter
Transfer
Fill. -> 3 l of water
Again fill. -> 2+3 l = 5 liter
1 liter -> 5 l of water
1 l left. -> 5 use
1 l left. 0 liter
1 liter. -> 1 liter
0 liter. 1 liter
Fill 3 liter. -> 4 liter wanted

Hence proved 😂

FareeduddinSyed
Автор

Fill the 5 L bucket and pour into 3 L of bucket then remove rest of water from 5 litre of bucket. Pour the water from 3 L of bucket into 5 L of bucket and again fill 3 L of bucket and pour in 5 L again. 1 litre will be left in 3L of bucket . Drain 5 L of bucket and add 1 litre of 3 L of bucket in 5L.Again fill 3L and fill in 5L.hence we get 4L

ananyajain
Автор

In first we fill up 5l bucket ful then transfer the water to 3l bucket so we have 2l of in 5l bucket then we use it.Again we fill up 5l bucket with the water that we transfer in 3l bucket after filling up 3l bucket in 5l bucket so 5l bucket has 3l water then we full fill up the 5l bucket by the water and again transfer water in 3l bucket by 5l bucket so we shall left with again 2l of waters then we use it.

Abishek
Автор

That's a very simple question....I am surprised they ask such simple questions

allthingsjava
Автор

Fill half amount of water in 5 litre bucket which is 2.5 and fill half amount of water in 3 litre bucket which is 1.5 . 2.5 +1.5 =4 in this way it could be solved

roshanpuri
Автор

"First, we will fill the 3-litre bucket and pour it into the 5-litre bucket. Now, the 5-litre bucket contains 3 litres of water. Next, we will fill the 3-litre bucket again and pour it into the 5-litre bucket. This will leave 1 litre of water in the 3-litre bucket. We will then empty the 5-litre bucket and pour the 1 litre of water from the 3-litre bucket into the 5-litre bucket. Finally, we will fill the 3-litre bucket one more time and pour it into the 5-litre bucket. Now, the 5-litre bucket contains exactly 4 litres of water."

youtubecreator
Автор

Step1: fill 3 litre🪣 and transfer the water into 5 L 🪣then again fill the water in 3L🪣and transfer it to 5L 🪣
Step 2: Now 5L🪣 is completely full and 1litre is remaining in 3L 🪣
Step3: just throw the water of 5L 🪣and fill it with 1L water that was remaining in 3L 🪣
Last step : fill the 3L 🪣again and pour the whole water in 5L 🪣as 1L was already there and you also added 3L
Hence 1+3=4

Vishakha-ty
Автор

Done, just fill 5 liter, now tranfer 3 liter to 3 liter bucket. Now throw 3 liter bucker water. You get 2 liter is 5 liter bucket. Now transfer it to 3 liter bucket. Fill 5 liter bucket again, transfer 1 liter to 3 liter bucket. You have 4 liter water in 5liter bucket.

rakeshrakesh
Автор

5litre wali bucket ko adha bhar lo(5/2=2.5litre) aur 3litre wali bucket ko bhi adha bhar lo (3/2=1.5litre) ab jo pani hum ne 3l wali bucket mai bhara h use 5l wali bucket mai dal do.
Aur phir 2.5litre+1.5litre=4litre

rinkygupta
Автор

Fill 5 lt bucket and transfer it to 3 lts bucket ..in 5 ltr bucket it is left with 2 ltr thereafter empty 3 lt bucket and pour the remaining 2 ltr from 5 ltr bucket and 3 ltr bucket is 1 ltr left to fill and again refill 5 lt buckt and with that bucket fill the remaining 1 ltr in 3 ltr bucket now you get 4 ltr in 5 ltr bucket

balramkoirala
Автор

Mera answer different hai

Ki sabse pehle ham 3 litre wali bucket and 5 litre waali bucket mai aadha bhar lenge which is

3/2 = 1.5,
5/2 = 2.5 then,

Hum 3 litre wali bucket ka paani 5 litre waali bucket mai daal lenge and since,

1.5 + 2.5 = 4 so,
1.5 litres of water in 3 litre bucket gets add into 5 litre bucket in which there is 2.5 litres of water already so we will have 4 litres of water.

Hence, solved

aagamsankalecha
Автор

5 litre wali balti se, 3 litre wali balti bharo fr 5ltr wali balti m 2 litre pani bachega, fr 3 ltr ki bhari balti ko khali krdo, or 5ltr wali balti se 3 ltr wali balti m 2 litr pani daldo, fr 5ltr wali balti dubara bharo, or 5 ltr wali balti se 3 ltr wali balti bhardo, is trah jb 3 ltr wali balti bhar jayegii to, 5 ltr wali balti m 4 ltr pani bachega.

Anonymous-db