@Vikas. I tried to understand what you were saying, but couldn't. Sorry. Dave.
On Sep 12, 7:33 am, vikas <[email protected]> wrote: > If L <= C, then > cup1 = L > cup2 = cup3 = cup4 = cup5 = cup6 = overflow = 0 > else if L < 3*C, then > cup1 = C > cup2 = cup3 = (L-C)/2 > cup4 = cup5 = cup6 = overflow = 0 > else if L < 5*C, then > cup1 = cup2 = cup3 = C > cup4 = cup6 = (L-3*C)/4 > cup5 = (L-3*C)/2 > overflow = 0 > else if L < 7*C, then > cup1 = cup2 = cup3 = cup5 = C > cup4 = cup6 = (L-3*C)/4 > overflow = (L-5*C)/2 > else if L >= 7*C, then > cup1 = cup2 = cup3 = cup4 = cup5 = cup6 = C > overflow = L-6*C > > take L > 7c > > suppose it takes 2t time to fill with rate x > > c = x*2t > > in first level after time 2t , water left L - 2xt > > in second level , after time 4t 2xt 2xt L - 6xt > > in third level after time 5t xt 2xt xt /// middle > will start overflowing by now > > after 6t > 3rd level 2xt 2xt 2xt > 4th level nill xt xt > nill > so you see here water used after 6t time is 2xt + 2*2xt +3*2xt + 2xt = > 14 xt or 7 cups > here 4th level too have half cups filled , please correct me if > something is wrong in calculations. > > On Sep 12, 3:01 am, Dave <[email protected]> wrote: > > > > > @Vikas: I think I have it covered. That's what the divisors do. If I'm > > wrong, give me a value of L where I am wrong. > > > Dave > > > On Sep 11, 2:17 pm, vikas <[email protected]> wrote: > > > > @Dave, > > > should not rate of filling be considered here ? if you note , the > > > side cups are filling in half of rate than to rest of cups in row. > > > On Sep 11, 10:01 am, bharatkumar bagana <[email protected]> > > > wrote: > > > > > what is M? > > > > > On Sat, Sep 10, 2011 at 8:10 PM, Ishan Aggarwal < > > > > > [email protected]> wrote: > > > > > 1.) > > > > > > there is a pyramid with 1 cup at level , 2 at level 2 , 3 at level 3 > > > > > and so > > > > > on.. > > > > > It looks something like this > > > > > 1 > > > > > 2 3 > > > > > 4 5 6 > > > > > every cup has capacity C. you pour L liters of water from top . when > > > > > cup 1 > > > > > gets filled , it overflows to cup 2,3 equally, and when they get > > > > > filled , > > > > > Cup 4 and 6 get water only from 2 and 3 resp but 5 gets water from > > > > > both the > > > > > cups and so on. > > > > > Now given C and M .Find the amount of water in ith cup. > > > > > > -- > > > > > Kind Regards > > > > > Ishan Aggarwal > > > > > [image: Aricent Group] > > > > > Presidency Tower-A, M.G.Road,Sector-14 > > > > > Gurgaon,Haryana.122015 INDIA > > > > > Phone : +91-9654602663 > > > > > [email protected] <[email protected]> > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups > > > > > "Algorithm Geeks" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]. > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/algogeeks?hl=en. > > > > > -- > > > > > **Please do not print this e-mail until urgent requirement. Go Green!! > > > > Save Papers <=> Save Trees > > > > *BharatKumar Bagana* > > > > **http://www.google.com/profiles/bagana.bharatkumar<http://www.google.com/profiles/bagana.bharatkumar> > > > > * > > > > Mobile +91 8056127652* > > > > <[email protected]>- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
