Re: [algogeeks] Re: candies - interviewstreet -- how to go about solving this problem

2012-07-09 Thread sanjay pandey
does ur sol seems lyk incerasing 1 if next number is greater that prev n decreasing 1 if less..??? -- 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 this group,

Re: [algogeeks] Re: Microsoft Interview Question

2012-06-22 Thread sanjay pandey
@wgp the ques is to maintain the order intact.. -- 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 this group, send email to

Re: [algogeeks] Reverse Queue

2012-06-21 Thread sanjay pandey
it seems @hassan sol is correctcan nybody knw d flaw in it??? -- 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 this group, send email to

Re: [algogeeks] Re: Directi question-centre of the tree

2012-06-21 Thread sanjay pandey
@ashish it wont be...first we r finding one end from any node dat is r n den frm dat end we r traversing to other deepest end... it is possible dat r b d intermediate node...n distance from r to v2 is smaller than from r to v1 -- You received this message because you are subscribed to the Google

Re: [algogeeks] Re: Microsoft Interview Question

2012-06-21 Thread sanjay pandey
single traversal n O(n) are 2 diff things...plz specify??? -- 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 this group, send email to

Re: [algogeeks] Re: POSTAGE STAMP PROBLEM

2012-06-20 Thread sanjay pandey
@atul if range is high den complexity wud be much larger... -- 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 this group, send email to

[algogeeks] POSTAGE STAMP PROBLEM

2012-06-19 Thread sanjay pandey
The postage stamp problem is a mathematical riddle that asks what is the smallest postage value which cannot be placed on an envelope, if the letter can hold only a limited number of stamps, and these may only have certain specified face values. For example, suppose the envelope can hold only

Re: [algogeeks] 4Sum

2012-06-15 Thread sanjay pandey
@hemesh cud u plz elaborate wat is b[k]=a[i]+a[j]...n also ur solution... -- 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 this group, send email to

Re: [algogeeks] [amazon]: dutch national flag algorithm

2012-06-09 Thread sanjay pandey
http://www.geeksforgeeks.org/archives/8133 -- 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 this group, send email to algogeeks+unsubscr...@googlegroups.com.

Re: [algogeeks] classic problem to tree to circular doubly linked list

2012-05-24 Thread sanjay pandey
the main code is dis function only:i will explain dis static Node treeToList(Node root) { Node aList, bList; if (root==NULL) return(NULL);* /* the below next two lines are just lyk inorder traversal...u mst hv done dis*/* aList = treeToList(root-small); bList =

Re: [algogeeks] Algorithm Question

2012-05-24 Thread sanjay pandey
min heap wid N elements containing first line from each file will do... remove the top most n insert next one from dat file only -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] Re: finding anagrams in a list of words

2012-05-23 Thread sanjay pandey
@prem can u plz explain the variables used in the modified structure...n if m nt wrong then ur sol can result in repeated anagrams if characters in the words are repeated -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this