Swati Mishra1 month agoMost voted3
this is how my coaching sir taught it. never going back to fractions
A does a job in 12 days, B in 18.
total work = LCM(12,18) = 36 units
A = 3 units/day, B = 2 units/day
together 5/day -> 36/5 = 7.2 days
works for pipes and cisterns too, leak is just negative units
this is how my coaching sir taught it. never going back to fractions
also easy for "A leaves after 4 days" type questions, just subtract A's units
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.