Re: [algogeeks] Explain this.....

2011-06-22 Thread Piyush Sinha
I am using Dev C++ its showing last output as 99 only On 6/22/11, oppilas . jatka.oppimi...@gmail.com wrote: Yes, that I know, but why last argument is printing 100 instead of 99? On Wed, Jun 22, 2011 at 7:50 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: the arguments are passed from

Re: [algogeeks] Question on Combination

2011-06-22 Thread Piyush Sinha
. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926

Re: [algogeeks] string matching

2011-06-22 Thread Piyush Sinha
. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- 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

Re: [algogeeks] Binary Tree

2011-06-21 Thread Piyush Sinha
to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message

[algogeeks] Adobe Q

2011-06-15 Thread Piyush Sinha
WAP to find the LCA in a n-ary tree. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

[algogeeks] Adobe Q

2011-06-15 Thread Piyush Sinha
*A preorder of a complete binary tree is given , prints its level order* -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm

[algogeeks] MSFT Q

2011-06-15 Thread Piyush Sinha
*How will you design a SpellChecker for an e-mail application?* -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] DE Shaw Q

2011-06-15 Thread Piyush Sinha
on to the next heap. The player who picks the last coin wins. Design an algorithm for predicting the winner.* -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed

Re: [algogeeks] [brain teaser ] Probability Riddle Loaded Revolver 13 june

2011-06-13 Thread Piyush Sinha
, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https

Re: [algogeeks] [brain teaser ] Probability Riddle Loaded Revolver 13 june

2011-06-13 Thread Piyush Sinha
ignore the above answerit shouldn't rotate again... On Mon, Jun 13, 2011 at 1:37 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: should rotate again.. On Mon, Jun 13, 2011 at 1:12 PM, sunny agrawal sunny816.i...@gmail.comwrote: Pull the Trigger Again ?? On Mon, Jun 13, 2011 at 1:01

Re: [algogeeks] Sorting an array - using the foll functions

2011-06-12 Thread Piyush Sinha
this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] Is this code correct?

2011-06-12 Thread Piyush Sinha
@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com

Re: [algogeeks] Re: MS Interview

2011-06-09 Thread Piyush Sinha
. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91

[algogeeks] MS Q

2011-06-09 Thread Piyush Sinha
is 'RGGB' and the user guesses 'YRGB' they have 2 hits and one pseudo hit. Write a program to, given a solution and a guess, calculate the number of hits and pseudo hits. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926

Re: [algogeeks] Difference btwn elements in a sorted array a-b=k

2011-06-07 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91

Re: [algogeeks] Re: Difference btwn elements in a sorted array a-b=k

2011-06-07 Thread Piyush Sinha
, here if you increase a or decrease b in both case difference will increase.. ? correct me if i am wrong. On Jun 7, 2:39 pm, Piyush Sinha ecstasy.piy...@gmail.com wrote: Whats the problem in using two pointers one pointing the lower index while the other pointing the upper

Re: [algogeeks] Re: Microsoft ques : reverse of dutch national flag problem

2011-06-07 Thread Piyush Sinha
 pm, Piyush Sinha ecstasy.piy...@gmail.com wrote: Can we use recursion/internal stack memory??? On 6/5/11, hary rathor harry.rat...@gmail.com wrote: it it is possible in order of  O(n ) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

[algogeeks] Facebook Q

2011-06-07 Thread Piyush Sinha
all of them in linear time. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] Re: Difference btwn elements in a sorted array a-b=k

2011-06-07 Thread Piyush Sinha
use the same logic u use for a+b=k for difference.. because, here if you increase a or decrease b in both case difference will increase.. ? correct me if i am wrong. On Jun 7, 2:39 pm, Piyush Sinha ecstasy.piy...@gmail.com wrote: Whats the problem in using two

Re: [algogeeks] 5th largest element

2011-06-06 Thread Piyush Sinha
://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

[algogeeks] Google Puzzle

2011-06-06 Thread Piyush Sinha
On a empty chessboard, a horse starts from a point( say location x,y) and it starts moving randomly, but once it moves out of board, it cant come inside. So what is the total probability that it stays within the board after N steps. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91

[algogeeks] AMAZON Q

2011-06-06 Thread Piyush Sinha
Design your hash_map that allow the following Add in O(1) , delete in O(1) , iterate in O(n)? -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google

Re: [algogeeks] Re: Binary Tree Problem

2011-06-05 Thread Piyush Sinha
(root-left,p); r=findDiameter(root-right,p); *p=max(*p,(l+r)); return max(l,r)+1; } return 0; } On Mon, May 30, 2011 at 3:16 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: I think following algo will work..I haven't tested it plus its in its

Re: [algogeeks] C doubt

2011-06-05 Thread Piyush Sinha
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91

Re: [algogeeks] Microsoft ques : reverse of dutch national flag problem

2011-06-05 Thread Piyush Sinha
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you

Re: [algogeeks] box packing

2011-06-04 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91

Re: [algogeeks] Google

2011-06-03 Thread Piyush Sinha
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Google

2011-06-03 Thread Piyush Sinha
@Vipulwont this become the case of extra memory overhead??? On 6/3/11, Vipul Kumar vipul.k.r...@gmail.com wrote: convert the trees to DLL and then merge them to get the combined sorted DLL , now create the AVl tree of that DLL. On Fri, Jun 3, 2011 at 3:47 PM, Piyush Sinha ecstasy.piy

Re: [algogeeks] Google

2011-06-03 Thread Piyush Sinha
Sinha ecstasy.piy...@gmail.com wrote: m talking in terms of pointers.. On 6/3/11, Vipul Kumar vipul.k.r...@gmail.com wrote: no,use the node of the tree as the node of the LL . On Fri, Jun 3, 2011 at 5:08 PM, Piyush Sinha ecstasy.piy...@gmail.com wrote: @Vipulwont this become the case

Re: [algogeeks] Google

2011-06-03 Thread Piyush Sinha
ya true.nice solution...my bad On 6/3/11, Vipul Kumar vipul.k.r...@gmail.com wrote: yeah .. still complexity will be O(n) only far better then O(n^2) On Fri, Jun 3, 2011 at 5:27 PM, Piyush Sinha ecstasy.piy...@gmail.com wrote: Ok..sorry my bad.i confused it with something else

Re: [algogeeks] Re: Binary Tree Problem

2011-05-31 Thread Piyush Sinha
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google

Re: [algogeeks] Binary Tree Problem

2011-05-30 Thread Piyush Sinha
from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926

Re: [algogeeks] Re: Binary Tree Problem

2011-05-30 Thread Piyush Sinha
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you

Re: [algogeeks] Re: Binary Tree Problem

2011-05-30 Thread Piyush Sinha
/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] Google Interview Question

2011-05-30 Thread Piyush Sinha
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed

Re: [algogeeks] Re: Finding Blocks in a matrix

2011-05-29 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha

Re: [algogeeks] Re: Finding Blocks in a matrix

2011-05-29 Thread Piyush Sinha
=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] Find min after rotating an array

2011-05-28 Thread Piyush Sinha
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed

Re: [algogeeks] Google Interview Question

2011-05-27 Thread Piyush Sinha
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Google Interview Question

2011-05-27 Thread Piyush Sinha
: @Piyush, how to deal with this case :100 , 10 2011/5/27 Piyush Sinha ecstasy.piy...@gmail.com we can work out if we sort according to the leftmost integer On 5/27/11, adityasir...@gmail.com adityasir...@gmail.com wrote: are you kidding me. Just simple sort wont work. On Fri, May 27

Re: [algogeeks] Odd Even Sort array

2011-05-27 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha

[algogeeks] Arrays

2011-05-25 Thread Piyush Sinha
. For example, given array A such that A[0]=10, A[1]=2, A[2]=5, A[3]=1, A[4]=8, A[5]=20 the function should return 1, because the triple (0, 2, 4) fulfills all of the required conditions. For array A such that A[0]=10, A[1]=50, A[2]=5, A[3]=1 the function should return 0 -- *Piyush Sinha* *IIIT

Re: [algogeeks]

2011-05-24 Thread Piyush Sinha
); if ( ithbit ^ jthbit) return false; i++;j--; } return true; } Thanks, Immanuel On Tue, May 24, 2011 at 12:42 AM, Piyush Sinha ecstasy.piy...@gmail.comwrote: Constraint is no extra space and the complexity should be as efficient as possible. On 5/24/11, Piyush Sinha

Re: [algogeeks] Re: Find closest point

2011-05-24 Thread Piyush Sinha
@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id

[algogeeks] AMAZON Q

2011-05-24 Thread Piyush Sinha
The input number is n. Find the closest Fibonacci series number i where i n. Show the time complexity of the problem. For eg : if n = 10, the output i should be 8 -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926

Re: [algogeeks] Re: AMAZON Q

2011-05-24 Thread Piyush Sinha
+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you

Re: [algogeeks] Re: AMAZON Q

2011-05-24 Thread Piyush Sinha
. for the unknown one, i ll have to think.. On Tue, May 24, 2011 at 6:48 AM, Piyush Sinha ecstasy.piy...@gmail.comwrote: @Aakash Sir...if it is so, can u elaborate ur logic??i mean what should be maximum limit on the precomputation?? On 5/24/11, Aakash Johari aakashj@gmail.com wrote: if u

Re: [algogeeks] Re: AMAZON Q

2011-05-24 Thread Piyush Sinha
. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- 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

Re: [algogeeks] Re: AMAZON Q

2011-05-24 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad

Re: [algogeeks] Re: AMAZON Q

2011-05-24 Thread Piyush Sinha
://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group

[algogeeks]

2011-05-23 Thread Piyush Sinha
Find whether the binary representation of a number is palindrome or not. The input begins with integer N. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed

Re: [algogeeks]

2011-05-23 Thread Piyush Sinha
Constraint is no extra space and the complexity should be as efficient as possible. On 5/24/11, Piyush Sinha ecstasy.piy...@gmail.com wrote: Find whether the binary representation of a number is palindrome or not. The input begins with integer N. -- *Piyush Sinha* *IIIT, Allahabad* *+91

Re: [algogeeks] Re: Array problem

2011-05-22 Thread Piyush Sinha
@MONSIEUR.. someone once saidTHE SECRET OF SUCCESS IS TO NEVER REVEAL YOUR SOURCES... ;)...:P..:P On 5/22/11, MONSIEUR monsieur@gmail.com wrote: @piyush: excellent buddybtw what was the initial spark...???.:-) On May 21, 1:01 pm, Piyush Sinha ecstasy.piy...@gmail.com

Re: [algogeeks] Print Subsets

2011-05-21 Thread Piyush Sinha
@immanuel...i don't think it will..even if u think it does, provide any sample test case On 5/21/11, immanuel kingston kingston.imman...@gmail.com wrote: I think your soln will print repetitions also. On Mon, May 16, 2011 at 2:34 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: *int

Re: [algogeeks] Array problem

2011-05-21 Thread Piyush Sinha
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91

Re: [algogeeks] Re: FUN TEASER 11 may

2011-05-21 Thread Piyush Sinha
to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727

[algogeeks] strings

2011-05-19 Thread Piyush Sinha
Design an algorithm to find whether a given string is formed by the interleaving of two given strings or not. e.g. s1= aabccabc s2= dbbabc s3= aabdbbccababcc Given s1,s2,s3 design an efficient algorithm to find whether s3 is formed from the interleaving of s1 and s2 -- *Piyush Sinha* *IIIT

Re: [algogeeks] [brain teaser ] Greater than God Riddle 18 may

2011-05-18 Thread Piyush Sinha
email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message

Re: [algogeeks] Array problem

2011-05-18 Thread Piyush Sinha
, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727

Re: [algogeeks] Array problem

2011-05-18 Thread Piyush Sinha
... [?] On Wed, May 18, 2011 at 4:52 PM, Piyush Sinha ecstasy.piy...@gmail.comwrote: I think it can be done in O(n) but the auxilliary space required will be more... in the solution which i have got its in the order of 2n On Wed, May 18, 2011 at 4:44 PM, Kunal Patil kp101...@gmail.com wrote: @Amit: Ohh

[algogeeks] GOOGLE Q

2011-05-17 Thread Piyush Sinha
Given an English word in the form of a string, how can you quickly find all valid anagrams for that string (all valid rearrangements of the letters that form valid English words)? -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id

Re: [algogeeks] Array problem

2011-05-16 Thread Piyush Sinha
group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- PIYUSH SINHA 9936757773 -- You received

Re: [algogeeks] [brain teaser ] W Riddle 16 may

2011-05-16 Thread Piyush Sinha
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. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- PIYUSH SINHA 9936757773 -- You received

Re: [algogeeks] Re: Extract Top K elements from a List of N elements based on frequency

2011-05-16 Thread Piyush Sinha
://groups.google.com/group/algogeeks?hl=en. -- PIYUSH SINHA 9936757773 -- 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

Re: [algogeeks] [brain teaser ] W Riddle 16 may

2011-05-16 Thread Piyush Sinha
. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- 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

Re: [algogeeks] Array problem

2011-05-16 Thread Piyush Sinha
: Kunal, Your solution runs in O(n) time but it is a wrong solution. It will run fine if the array is sorted. Anuj Agarwal Engineering is the art of making what you want from things you can get. On Mon, May 16, 2011 at 7:17 PM, Kunal Patil kp101...@gmail.com wrote: @Piyush Sinha: I doubt

Re: [algogeeks] Array problem

2011-05-16 Thread Piyush Sinha
=en. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

[algogeeks] nearest neighbour

2011-05-16 Thread Piyush Sinha
each person's three friends. -- *Piyush Sinha* *IIIT, Allahabad* *+91-8792136657* *+91-7483122727* *https://www.facebook.com/profile.php?id=10655377926 * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] Re: nearest neighbour

2011-05-16 Thread Piyush Sinha
, D:7, E:8} Then B, C, and D are friends of A, but A is not a friend of any of them. Dave On May 16, 4:31 pm, Piyush Sinha ecstasy.piy...@gmail.com wrote: Say you have an array containing information regarding n people. Each person is described using a string (their name) and a number

Re: [algogeeks] Array problem

2011-05-15 Thread Piyush Sinha
...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- PIYUSH SINHA 9936757773 -- 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

Re: [algogeeks] [brain teaser ] WHO IS SHORTEST 12 may

2011-05-12 Thread Piyush Sinha
/algogeeks?hl=en. -- PIYUSH SINHA 9936757773 -- 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

<    1   2