Re: [algogeeks] probability

2012-09-07 Thread rahul aravind
0.50 On Fri, Sep 7, 2012 at 6:05 PM, noname narayan.shiv...@gmail.com wrote: [image: -]14Answers http://www.careercup.com/question?id=14553727 What is the probability of being the answer correct for this question, when the answer is chosen randomly: a. 0.25 b. 0.60 c. 0.25 d. 0.50

Re: [algogeeks] what will be output for this program ?

2012-07-27 Thread rahul aravind
64 32 16 32 16 32 64 32 On Fri, Jul 27, 2012 at 6:48 PM, Hraday Sharma hradaysha...@gmail.comwrote: #includestdio.h int main(){ printf(%d %d\n, 321, 320); printf(%d %d\n, 32-1, 32-0); printf(%d %d\n, 321, 320); printf(%d %d\n, 32-1, 32-0); return 0; -- You

Re: [algogeeks] Re: microsoft interview

2011-09-01 Thread rahul aravind
@dave:ur algo s nice:) On Thu, Sep 1, 2011 at 9:49 AM, Dave dave_and_da...@juno.com wrote: @Piyush: What does it do on 0 0 0 0 0 0 1 0 0 The output should be 1 0 0 1 0 0 1 1 1 Dave On Aug 31, 8:24 pm, Piyush Grover piyush4u.iit...@gmail.com wrote: What's wrong with this??

[algogeeks]

2011-08-30 Thread rahul aravind
can anyone explain the output of this program #includeiostream #includestdio.h #includeconio.h using namespace std; class date { int day,month,year; public: date(char *str); date(int m,int d,int y); date::date(); void show(); }; date::date(char *str) {

Re: [algogeeks] Re: Puzzle

2011-08-21 Thread rahul aravind
consider the last two cases N married L not married L not married M married so now tak M and N compare it with first case M married N not married therfore,only m married On Sun, Aug 21, 2011 at 1:06 PM, Tushar Bindal tushicom...@gmail.comwrote: @arun if L is not married, then M must be

Re: [algogeeks] Google Question:Given a BST and a number, Find the closest node to that number in the BST.

2011-08-21 Thread rahul aravind
@Abhishek:nice algo dude.. On Sat, Aug 20, 2011 at 12:56 PM, Abhishek Yadav algowithabhis...@gmail.com wrote: Hey i tried it now and got to another solution O(log n) solution: 1. try searching for the number , if found,return the node, otherwise, you will ultimately reach a leaf node say

Re: [algogeeks]

2011-08-14 Thread rahul aravind
scanf takes input anything as well..but the output will be just a space On Sun, Aug 14, 2011 at 1:08 PM, Rajeshwar Patra rajeshwarpa...@gmail.comwrote: how does scanf takes the input ??? -- *Rajeshwar Patra,* *MCA final year,* *Nit Durgapur* -- You received this message because

Re: [algogeeks] C Output

2011-08-14 Thread rahul aravind
I think the address of string 5 located will be added with 1 and 2... On Sun, Aug 14, 2011 at 11:44 AM, Brijesh Upadhyay brijeshupadhyay...@gmail.com wrote: int main () { printf(%d,1+2+5); getch(); return 0; } what should it return and how..?? -- You received this message