Re: [algogeeks] Digest for algogeeks@googlegroups.com - 1 Message in 1 Topic

2013-09-05 Thread vinay bajaj
subarray_problem >Don > >On Thursday, August 29, 2013 11:09:59 PM UTC-4, yash wrote: > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To unsubscribe from this group and stop r

[algogeeks] Re: m*n matrix, sorted rows, sorted columns, WAP to find an element efficiently

2012-04-02 Thread vinay bajaj
This search can be done easily in O(n+m) start from top right corner. chek out this link you will understand!! http://www.geeksforgeeks.org/archives/11337 On Sunday, 1 April 2012 21:18:26 UTC+5:30, ashgoel wrote: > > -- You received this message because you are subscribed to the Google Groups

[algogeeks] Re: water-jug problem

2012-04-02 Thread vinay bajaj
http://www.cut-the-knot.org/wgraph.shtml Every distribution of wine in the three jugs A, B, and C, can be described by the quantities b and c of wine in the jugs B and C, respectively. Thus every possible distribution of wine is described by a pair(b, c). Initially b=c=0 so that one starts wi