U can use merge sort for this.. try and picture the problem, u'll get my point..
On Fri, Aug 5, 2011 at 1:27 PM, amit kumar <[email protected]> wrote: > can u plz xplain d qstn a litl more.... > thanx > > On Fri, Aug 5, 2011 at 8:33 PM, [email protected] < > [email protected]> wrote: > >> Given a rope of 10m , numbered at 1m i.e like >> 0 1 2 3 4 5 6 7 8 9 10 >> |----|---|---|---|---|---|---|---|---|---| >> |-------------------10m------------| >> >> One dry out it clothes of various length like 4m from 0-4 then of 2m from >> 6-8 then 6m from 2-8 and so on ,one on top of another , then u need to >> construct a data structure such that >> when seeing from the top u have to give the number of clothes drying , at >> one particular instance. >> -- >> Thanks and Regards >> >> *Karan Bagaria* >> *MCA Final Year* >> Training and Placement Representative >> >> >> -- >> 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. >> > > -- > 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. > -- 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.
