Re: [algogeeks] reason

2011-08-15 Thread programming love
The internal representation of array is this:

suppose that the address starts from decimal number 10 and integer occupies
2 bytes

10- 0002 ( num 2 in hex)
12- 0003 ( num 3 in hex)
14- 0004 ( num 4 in hex)

Now p points to address 10 and is type char. (Even after type casts) p+1
will increment address by 1 byte (since it's char). p will now point to 11
(int *) will say that when de-referenced 2 bytes should be extracted. So the
2 bytes extracted are 11, 12. Numbers in these bytes are 02 and 00

10- 00*02* ( num 2 in hex)
12- *00*03 ( num 3 in hex)
14- 0004 ( num 4 in hex)

now (char *) says extract 1 byte for me. The extracted byte is 00. Hence 0
is printed

*Correct me if i am wrong.*

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



[algogeeks] program puzzle

2011-08-15 Thread programming love
write a program to reverse the words in a give string.
also state the time complexity of the algo.

if the string is i am a programmer
the output should be programmer a am i

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



[algogeeks] c++

2011-08-14 Thread programming love
Can someone please mail good c++ materials. If you guys have test your c++
skills by kanetkar  plz upload.

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



[algogeeks] what is the difference between a class and structure in c++? pl help

2011-08-14 Thread programming love


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



[algogeeks] c++ ques

2011-08-14 Thread programming love
How do you prevent a c++ class from being inherited??

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



Re: [algogeeks] Probability question.. help

2011-08-10 Thread programming love
is it 101/200??

On Wed, Aug 10, 2011 at 3:41 AM, Prakash D cegprak...@gmail.com wrote:

 is there anything like there should be atleast one man and one women should
 dance together?


 On Wed, Aug 10, 2011 at 2:26 AM, Shuaib Khan aries.shu...@gmail.comwrote:



 On Wed, Aug 10, 2011 at 1:45 AM, Brijesh Upadhyay 
 brijeshupadhyay...@gmail.com wrote:

 No thers is not.. someone has asked me this., dont know anything else
 about the question  :|


 Seems like you got half of the question there.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/algogeeks/-/mqMvDgb6TqUJ.

 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.




 --
 Shuaib
 http://www.bytehood.com
 http://twitter.com/ShuaibKhan

 --
 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.
 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 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.


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



Re: [algogeeks] pls help

2011-08-10 Thread programming love
@sagar and @brijesh: awesome explanation!!! too good! 1 doubt!

the question says it has only 28 leaves. According to uour explanations, it
has 81 leaves. how is it possible??

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



Re: [algogeeks] pls help

2011-08-10 Thread programming love
@sagar: Thanks again :) But my doubt is it'll have more than 28 leaf nodes
when the ques clearly sayd it shud have 28 leaf nodes.
@vamshi: I kind of agree with what you say.

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



[algogeeks] probability!-need help

2011-08-09 Thread programming love
Please send a link where i can find hard permutations and combinations and
probability questions. Please help. If you guys have good e books or
materials for apti questions, please mail me. Thanks in advance.

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



[algogeeks] solve this!

2011-08-09 Thread programming love
 *In a crew of 12 members rowing team, 6 members are placed on either side
of the boat. 3 men row on the right and 2 men row on the left. Find the
number of ways of arranging the crew members on each side.*
*
*
*Give the answer in terms of P and C. Example, 12C5 * 12P5+2P1*2C2
*

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



Re: [algogeeks] solve this!

2011-08-09 Thread programming love
left- 12C6*6C2
right- 12C6*6C3

Why is 6C2*6C3 combined in a single expression??

On Tue, Aug 9, 2011 at 4:27 PM, programming love 
love.for.programm...@gmail.com wrote:

 Here you are only selecting the crew members. How will you arrange them?



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



Re: [algogeeks] solve this!

2011-08-09 Thread programming love
got it!
@sagar there shudn be 2's anywhere in the expression.
The different combinations formed on the left hand side by choosing 6 out of
12 will ensure different combinations of other 6 people on the right. So
2*12C6 is not required.
Example:
P1,P3,P5,P7,P9, P11
on left will leave
P2, P4, P6, P8, P10 and P12 on right.
If 2*12C6 is done, this combination is counted again.

Please correct me if i'm wrong.

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



[algogeeks] c question!

2011-08-09 Thread programming love
 *typedef struct {**
*
*char * a;**
*
*nodeptr next;**
*
*}*nodeptr;**
*
*
*
*what does nodeptr stand for??*

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



Re: [algogeeks] c question!

2011-08-09 Thread programming love
#includestdio.htypedef struct {char * a;
}*nodeptr;
main(){nodeptr *h;h-a=programming;printf(hi %s\n, h-a);}


this gives an error. Please explain the concept behind this.

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



Re: [algogeeks] Amazon question.

2011-08-09 Thread programming love
*Executing code with printf's for each iteration for better understanding.*


#includestdio.h
main(){

int n, i, j, k, t1=0, t2=0, t3, a[30];
printf(Enter the number of elements\n);
scanf(%d, n);
for(i=0; in; i++){
scanf(%d, a[i]);
}

for(i=0; in; i++)
a[i]=a[i]*a[i];

k=n-1;
i=0;
j=k;

for(;k=0;k--){

printf(iteration %d\n, t2);
for(j=k,i=0;(ij)  (a[i]+a[j]!=a[k]) ;){

if(a[i]+a[j]  a[k]){
printf(i++\t%d\t%d\t%d\n, a[i], a[j], a[k]);
i++;
}
else{
printf(j--\t%d\t%d\t%d\n, a[i], a[j], a[k]);
j--;
}

}
t2++;
if(a[i]+a[j]==a[k]){
t1=1;
break;
}

}

if(t1)
printf(%d, %d, %d\n, i, j, k);
else
printf(No ans\n);

}

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



Re: [algogeeks] c question!

2011-08-09 Thread programming love
#includestdio.htypedef struct {char * a;
}*nodeptr;
main(){nodeptr h;h-a=programming;printf(hi %s\n, h-a);}

@sidharth: thanks a lot for correcting me :)
@aditya : no. there was some mistake;

in the code i pasted above it's giving segmentation fault. Is it cause i'm
initializing h without using malloc??
Please throw light on this problem
And in the following code
char *s;
scanf(%s, s);
why isn't it possible to store a string in s??

Please explain both concepts.

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



Re: [algogeeks] solve this!

2011-08-09 Thread programming love
@prakash: Even i thought in the same way. But permutations are not being
considered in

12C6* 6c3 * 6C2

The ques asks for arrangements. Should we multiply by 6! * 6! (1 6! for each
side)??

is the answer
12C6* 6c3 * 6C2 * 6! * 6!??

On Tue, Aug 9, 2011 at 9:22 PM, Prakash D cegprak...@gmail.com wrote:

 the solution will be 12C6* 6c3 * 6C2

 because if you choose 6 people for the left side, then there is no option
 for the right side(i.e. we can select only the remaining 6 people for right
 side)

 also this 12C6 will provide all possible combinations for choosing 6
 members for left or right and there is no need to add these both since this
 12C6 include all those possibilities. Correct me if i am wrong


 On Tue, Aug 9, 2011 at 5:21 PM, sagar pareek sagarpar...@gmail.comwrote:

 yeah
 sorry  one 2 will be used for either side then auto left and right will be
 fixed.
 thanks for correction


 On Tue, Aug 9, 2011 at 4:39 PM, programming love 
 love.for.programm...@gmail.com wrote:

 got it!
 @sagar there shudn be 2's anywhere in the expression.
 The different combinations formed on the left hand side by choosing 6 out
 of 12 will ensure different combinations of other 6 people on the right. So
 2*12C6 is not required.
 Example:
 P1,P3,P5,P7,P9, P11
 on left will leave
 P2, P4, P6, P8, P10 and P12 on right.
 If 2*12C6 is done, this combination is counted again.

 Please correct me if i'm wrong.
  --
 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.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 SAGAR PAREEK
 COMPUTER SCIENCE AND ENGINEERING
 NIT ALLAHABAD

 --
 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.
 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 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.


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



Re: [algogeeks] Re: Probability Puzzle

2011-08-09 Thread programming love
@Dave: Thanks for the explanation :)

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



Re: [algogeeks] C question

2011-08-09 Thread programming love
Correct me if i'm wrong. I think it's cos at a time it'll fetch the amount
of bytes = to it's register's size.
If a 32-bit machine is being used, answer will contain 4 bytes
 ff81

16-bit machine -  ff81

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



Re: [algogeeks] Amazon Question

2011-08-08 Thread programming love
1. O(n)
2.b
4.c

On Mon, Aug 8, 2011 at 7:24 PM, ankit sambyal ankitsamb...@gmail.comwrote:

 Plz give the answers ...

 1. In a binary max heap containing n numbers, the smallest element can be
 found in time ??


 2. The number of total nodes in a complete balanced binary tree with n
 levels is,
   a)3^n + 1
   b)2^(n+1) - 1
   c) 2^n + 1
   d) none of above

 3. In a country where everyone wants a boy, each family continues having
 babies till they have a boy. After some time, what is the proportion of boys
 to girls in the country? (Assuming probability of having a boy or a girl is
 the same)
   a) 1:2
   b) 2:1
   c)1:1
   d)1:4


 4. A parallel program consists of 8 tasks – T1 through T8. Each task
 requires one time step to be executed on a single processor. Let X - Y
 denote the fact that task X must be executed before task Y is executed.
 Suppose only the tasks X, Y are to be executed. On any multiprocessor
 machine it would require at least 2 time steps since in the first step X
 could be executed, and Y could be executed in the next time step (since it
 requires X to complete first). Now, suppose the following dependencies exist
 between the tasks T1 – T8:

 T1 - T2

 T2 - T3

 T3 - T6

 T2 - T4

 T4 - T7

 T2 - T5

 T5 - T8

 What is the minimum number of time steps required to execute these 8 tasks
 on a 2 processor machine and a 4 processor machine?


 a)4  2

 b)5  2

 c)5  4

 d)6  2

  --
 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.
 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 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.



[algogeeks] Probability

2011-08-08 Thread programming love
Hello guys! Please suggest good books to learn probability, Permutations 
combinations.
 Any tips and tricks or methods regarding the ways in which the problems can
be solved will help.
Plz reply and help me with this.

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



Re: [algogeeks] Link list problem..

2011-08-08 Thread programming love
it's not possible in a singly linked list

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



Re: [algogeeks] Re: amazon test question!!!

2011-08-08 Thread programming love
delete function will set parent-left_leaf=null and parent-right_leaf=null
as a part of it's function. So after deletion of leaf nodes, the call
returns to the parent nodes which are the current leaf nodes. Hence the
option must be *deletion of the tree from bottom to top*.

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



Re: [algogeeks] Re: Probability Puzzle

2011-08-08 Thread programming love
@Dave: I guess 17/18 is correct. Since we have to *calculate the probability
of getting a head in the 6th flip given that first 5 flips are a head*. Can
you please explain how you got the values of consequent flips when you said
this?

*In fact, the probability is 3/5 for the first flip. After a head is
flipped, the probability of a head is 2/3. After two heads have been
flipped, it is 3/4. After 3 heads, it is 5/6. After 4 heads, the
 probability is 9/10, and after 5 heads, the probability is 17/18.*

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



Re: [algogeeks] MS test

2011-08-07 Thread programming love
Why can't it be option b for 3rd one??

On Sun, Aug 7, 2011 at 11:30 AM, sukran dhawan sukrandha...@gmail.comwrote:

 a

 On Sun, Aug 7, 2011 at 11:07 AM, programming love 
 love.for.programm...@gmail.com wrote:

 What is the answer for 3rd one?? 4th is 5.

 --
 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.
 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 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.


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



Re: [algogeeks] Paypal interview Questions

2011-08-07 Thread programming love
So is q 1 a C++ question??

On Sun, Aug 7, 2011 at 11:27 AM, hary rathor harry.rat...@gmail.com wrote:

 no c doesn't

  --
 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.
 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 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.



Re: [algogeeks] MS test

2011-08-07 Thread programming love
Why is it so and y can't 0.1 be represented accurately in binary?? And what
about the last option??

On Sun, Aug 7, 2011 at 11:43 AM, ankit sambyal ankitsamb...@gmail.comwrote:

 @programming love : 6.5 can be represented accurately in binary

 --
 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.
 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 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.



Re: [algogeeks] MS test

2011-08-07 Thread programming love
And the last option?? Will that terminate too??

On Sun, Aug 7, 2011 at 11:48 AM, ankit sambyal ankitsamb...@gmail.comwrote:

 @programming love : 0.1 can't be represented accurately in binary. If u try
 to convert it into binary, it will not terminate. Try it !!  But 6.5 can be
 converted.

 --
 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.
 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 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.



Re: [algogeeks] Re: Microsoft :)

2011-08-07 Thread programming love
@harshal: What was your score in the written round??





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



Re: [algogeeks] Re: finding triplets

2011-08-07 Thread programming love
http://stackoverflow.com/questions/2032153/how-to-find-pythagorean-triplets-in-an-array-faster-than-on2

It provides a perfect 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 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



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

2011-08-07 Thread programming love
Traverse the tree inorder. Store the values in an array. Find the element in
the middle of the array.

On Sun, Aug 7, 2011 at 8:57 AM, subramania jeeva
subramaniaje...@gmail.comwrote:

  5
  /\
 6 7
/
   8

 Here the centre is both 5 and 6 . we need to find both of them..:)









 Cheers
   ~ Jeeva ~




  --
 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.
 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 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.



[algogeeks] MS test

2011-08-06 Thread programming love
People, the test was for 30 minutes! Someone please mail the answers and
help us learn the concepts properly.

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



[algogeeks] MS test

2011-08-06 Thread programming love
What is the answer for 3rd one?? 4th is 5.

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



[algogeeks] must read! a short cut method for apti!

2011-08-06 Thread programming love
*a nice post to find the number of zeroes in product of first n natural
numbers!*
http://forums.sureshkumar.net/brain-teasers-puzzles/22998-number-zeros.html

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



Re: [algogeeks] Paypal interview Questions

2011-08-06 Thread programming love
Does C support default arguments in function prototype??

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