[algogeeks] Aps

2011-09-07 Thread Mani Bharathi


While traveling at uniform speed. U read a two digit no. after one hr 
the number is reversed order. After another hour the number read is same 
two digit number. What is the average speed?

-- 
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/-/IgIgl9HkbYUJ.
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] Objective Question

2011-09-07 Thread Mani Bharathi


when is index of a table used?

a)when table is less range of values
b)when table is used frequently
c) when the table is small
d)when we use join statement with select and where clause.

-- 
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/-/vtHvd8sE1AUJ.
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] Aps

2011-09-07 Thread Mani Bharathi
*There were few elephants and an equal number of mahouts.Half of the mahouts 
were sitting on the elephants and half were walking.Totally there was 84 
legs,hw many elephants were 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/-/Xzn6kmDRCGYJ.
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] Aps

2011-09-07 Thread Mani Bharathi
how?

mahouts sitting on the elephants shouldn't be considered

-- 
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/-/9hWKNBJXPYEJ.
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] Aps

2011-09-07 Thread Mani Bharathi
which one is right?

-- 
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/-/ZQGyC-Ku3bEJ.
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] answer these interesting questions

2011-09-07 Thread Mani Bharathi
“Kya-Kya” is an island inhabitants of which always answer any question with 
two
answers , one of which is true and the other is false .

1.You are walking on a road and came to a park . You ask the inhabitants Ram 
, Laxman and Lila , “which road will
take me to the village ?”Ram says “I never speak to strangers . I am new to 
these parts .”Laxman says,”I am married
to Lila . Take the left road .”Lila says “I am married to Ram . He is not 
new in these place .”Which of the following is
true ?(a)Left road takes you to the village(b)Right road takes you to the 
village(c)Lila is married to Laxman.(d)none.

2.You find that your boat is stolen . You question three inhabitants of the 
island and reply as follows . John saya “I
didn’t do it . Mathew did not do it .”Mathew says “I did not do it . Krishna 
did not do it .”Krishna says “I did not do
it . I do not know who did it .” Who stole your boat ? 
(a)John(b)Mathew(c)Krishna(d)All three (e)none.

3.You want to speak to the chief of the village . You question three 
inhabitants Amar , Bobby and Charles . Only
Bobby is wearing a red shirt . Amar says “I am not Bobby’s son .The chief 
wears a red shirt.”Bobby says “I am
Amar’s father . Charles is the chief.”Charles says “The chief is one among 
us . I am the chief .”Who is the chief?
(a)Amar(b)Bobby(c)Charles(d)None.

4.There is only one pilot in the island.You interview three men:Koik,lony 
and Mirna.You also notice that Koik is
wearing a cap.Mirna says “Lony’s father is the pilot.Lony is not the 
priest’s son.”Koik says “I am the pilot.On this
island only priests can wear cap.”Lony says “I am the priest’s son.Koik is 
not the priest .”Which of the following is
true?(a)Lony is not Koik’s son(b)Koik is the pilot(c)Mirna is the 
pilot(d)Lony is the priest.

-- 
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/-/QsepdSoM9esJ.
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] enum vs macro

2011-09-04 Thread Mani Bharathi
What are the differences between enum and macro?

-- 
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/-/uiVWTTjOgE8J.
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] Find max and min ratio of sin^6x + cos^6x?

2011-09-04 Thread Mani Bharathi
Find max and min ratio of sin^6x + cos^6x?

-- 
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/-/KBxMhiJCBR0J.
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] quants

2011-09-04 Thread Mani Bharathi
 if a seller sell 20 apples in a rupees and make 50% gain. Then how many 
apple he can purchase in a rupee.

-- 
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/-/KAhFROvKpesJ.
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] quants

2011-09-04 Thread Mani Bharathi
if x is the CP then

x+0.5x=1

= x=.66

CP=66paise

i.e he bought 20 apples for 66paise

so for 1 rupee he wud hav bought 30 apples.

Regards
R.P.Manibharathi
Dept of CSE
CEG,Anna University
Chennai.



On Sun, Sep 4, 2011 at 10:13 PM, Mani Bharathi manibharat...@gmail.comwrote:

  if a seller sell 20 apples in a rupees and make 50% gain. Then how many
 apple he can purchase in a rupee.

 --
 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/-/KAhFROvKpesJ.
 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] Find no. of solns.

2011-09-04 Thread Mani Bharathi
x^2 -xy+y^2  =  x+y+2

-- 
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/-/OUjeA5LkYgUJ.
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] area, perimeter and base*height relation of isosceles triangle ABC where angle A and C are equal and perimeter is P, area is A.

2011-09-04 Thread Mani Bharathi
area, perimeter and base*height relation of isosceles triangle ABC where 
angle A and C are equal and perimeter is P, area is A.

-- 
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/-/GgSTGGS9-YMJ.
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] Data Structure Question

2011-09-01 Thread Mani Bharathi
@kb2029: how? why?

-- 
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/-/UKMOdCLe0sUJ.
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] Hash Table Objective Question

2011-08-11 Thread Mani Bharathi


*A hash table can store a maximum of 10 records, currently there are records 
in location 1, 3,4,7,8,9,10. The probability of a new record going into 
location 2, with hash functions resolving collisions by linear probing is*

a.0.1 b. 0.6 c. 0.2 d. 0.5

What is the answer? How?

-- 
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/-/lm6wAjg3PPYJ.
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] Hash Table Objective Question

2011-08-11 Thread Mani Bharathi
how?

-- 
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/-/cDA2OA_0FnAJ.
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] Data Structure Objective Question

2011-08-11 Thread Mani Bharathi
Which data structure is useful in transferring a given graph by breadth 
first  search.


a. heapb. linkedlist   c. array   d. stack   e. queue

-- 
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/-/alG2ZKpLT64J.
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] Data Structure Objective Question

2011-08-11 Thread Mani Bharathi
gethu da paul. :) :)

-- 
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/-/P1yZHcB4JoYJ.
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] Hash Table Objective Question

2011-08-11 Thread Mani Bharathi
how do u say that they will lead to 2?

-- 
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/-/d9eo_cbjCvwJ.
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] reverse

2011-08-11 Thread Mani Bharathi
this is bit wise complement na?

-- 
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/-/MuwFaGq41X0J.
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] Tree Objective Quiz

2011-08-11 Thread Mani Bharathi
A complete n- array tree in which each node has n children or no children, 
let i be the number of internal nodes and L be the number of leaves in a 
complete n- array tree. If L=41 and i=10 what is the value of n.

a. 3b. 6   c. 4 

-- 
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/-/tNmv3dgdongJ.
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] Pointer Question

2011-08-11 Thread Mani Bharathi
int(* fun()) [row][ Col];
What should be the statement the for the above declarations 
a.fun() points to a two dimensional array
b.pointer *fun() points to a two dimensional array
c.pointer *fun() points to 1-dimensional array

-- 
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/-/3xkodl3aLvcJ.
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] Tree Objective Quiz

2011-08-11 Thread Mani Bharathi
wrong. 5

-- 
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/-/XVpBpl5qdfEJ.
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] Quantz

2011-08-11 Thread Mani Bharathi
A retailer has n stones by which he can mesure or(weigh)all the quantities 
from (1kg to 121kg in integer only) keeping these stones on either side of 
the balance what is the minimum value of n.
 A.3 B.4   C. 5 D. 11

-- 
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/-/NQe0FChNS-kJ.
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] Quantz

2011-08-11 Thread Mani Bharathi
how?

-- 
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/-/Ggs_r_MkqqYJ.
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] O/P

2011-08-11 Thread Mani Bharathi
What will be the output of the following program
#include
int main()
{
int m=10,p;
p=incre(incre (incre (++) incre) incre)
Printf(%d, *P);
return 0;
}
incre (int m)
{
m+=2;
return(m-2);
}

how?

-- 
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/-/58_0-nbLUacJ.
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-11 Thread Mani Bharathi
Two person each make a single throw with a pair of dice. The probability 
that the sum of numbers if the dice of their throws are unequal is 
A. 575/648  B. 273/432  c. 264/816.

-- 
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/-/7kJ9mvxKd_oJ.
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] Math Quiz

2011-08-11 Thread Mani Bharathi
ABCD is a parallelogram and E is the middle point of side AD EC meets BD at 
O. If the area if the parallelogram is 24 units then the area of  EOD is ?

-- 
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/-/QboGbGAgQmoJ.
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] BST Question

2011-07-30 Thread Mani Bharathi
connect all sibling nodes of a binary search tree

-- 
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/-/GWAhIi6vaxAJ.
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] Data Structure Question

2011-07-30 Thread Mani Bharathi
Find the ‘n’th node as it appears in the in order traversal of the given 
tree if each node contains the number of nodes in its subtree as value of 
node.

-- 
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/-/U04Gqo9tsf0J.
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] BEST-WORST case time

2011-07-27 Thread Mani Bharathi
What is the BEST-WORST case time to add and remove elements from a queue 
that has been implemented with the help of 2 stacks.

-- 
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/-/xRSbK_Pag3MJ.
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] Address of var

2011-07-25 Thread Mani Bharathi
int i=5;
printf(%u,i);
What it will print:

   1. 5
   2. Base address of the memory
   3. Physical address
   4. Logical address

-- 
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/-/78m9TSEzaNAJ.
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] Address of var

2011-07-25 Thread Mani Bharathi
then wat is logical address?

-- 
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/-/whsCRPywFFcJ.
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 DIRECT-I !!!!!!

2011-07-25 Thread Mani Bharathi
ya :) :)

-- 
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/-/7LnJnObFILcJ.
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] Address of var

2011-07-25 Thread Mani Bharathi
so ans is logical address right?

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