[algogeeks] Design questions practice

2011-06-02 Thread Sachin Agarwal
Hi, Can someone recommend me good resources (books/websites etc.) for design interview questions. Thanks -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from thi

[algogeeks] Pile of nuts in an Oasis

2011-04-01 Thread Sachin Agarwal
A pile of nuts is in an oasis, across a desert from a town. The pile contains 'N' kg of nuts, and the town is 'D' kilometers away from the pile. The goal of this problem is to write a program that will compute 'X', the maximum amount of nuts that can be transported to the town. The nuts are transpo

[algogeeks] Re: algo for mirror a tree

2011-03-13 Thread Sachin Agarwal
assuming its a binary tree Node* mirror(Node* root){ if(root==NULL) return; Node* mirrorLeft = mirror(root->left)' Node* mirrorRight = mirror(root->right); root->left = mirrorRight; root->right=mirrorLeft; return root; } On Mar 11, 4:50 am, AKS wrote: > can u

[algogeeks] Re: 9march

2011-03-09 Thread Sachin Agarwal
suppose the original length was 'x' cm and original width was 'y' cm. After 3 wishes, the final length will be x/8 cm and width will be reduced to x/27 cm y=9 cm (given) (x/8) * (y/27) = 4, solve for x whch will be 96cm On Mar 9, 12:06 am, Lavesh Rawat wrote: > *Magic Belt Problem Solution* > *

[algogeeks] Re: Who Loves Circus .....

2011-03-03 Thread Sachin Agarwal
1. sort the pairs with key as one of the parameters 2. find the longest increasing sub-sequence (not necessarily contiguous) from the sorted list with key the the other parameter. Sachin On Mar 1, 3:02 pm, bittu wrote: > A circus is designing a tower routine consisting of people standing > atop

[algogeeks] Re: Meetings puzzle

2011-02-08 Thread Sachin Agarwal
event n > > On Wed, Feb 9, 2011 at 11:30 AM, Sachin Agarwal > wrote: > > > > > > > > > Suppose I have a room and I want to schedule meetings in it. You're > > given a list of meeting start and end times. Find a way to schedule > > the maximum number

[algogeeks] Meetings puzzle

2011-02-08 Thread Sachin Agarwal
Suppose I have a room and I want to schedule meetings in it. You're given a list of meeting start and end times. Find a way to schedule the maximum number of meetings in the room. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to thi