Re: [algogeeks] c problem

2011-09-04 Thread priya ramesh
@yogesh: Thanks a lot for the explaination. Good one indeed. Can you plz tell me y the compiler says lvalue required for the statement a++ when a is an lvalue?? -- 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: Network Question

2011-09-03 Thread priya ramesh
If there are two LANS, lan1 and lan2, both lans can make use of same addresses. however lan1 and lan2 must make use of NAT to comminicate with each other. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] c question

2011-09-03 Thread priya ramesh
In any C program, int main(){ char a[100]; foo(a); printf(%d, sizeof(a)); } foo(char *s){ printf(%d, sizeof(a)); } In main sizeof a is 100, in foo it is 4. why?? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

[algogeeks] c problem

2011-09-03 Thread priya ramesh
In main, any array say char a[200], a refers to an r value or an lvalue?? -- 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] printf

2011-09-03 Thread priya ramesh
what does printf return?? -- 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,

Re: [algogeeks] c problem

2011-09-03 Thread priya ramesh
ok but y does the compiler say lvalue required if you perform a++?? -- 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] printf

2011-09-03 Thread priya ramesh
ok thank q :) On Sat, Sep 3, 2011 at 6:51 PM, Nikhil Gupta nikhilgupta2...@gmail.comwrote: The number of characters printed. On Sat, Sep 3, 2011 at 6:45 PM, priya ramesh love.for.programm...@gmail.com wrote: what does printf return?? -- You received this message because you

Re: [algogeeks] c question

2011-09-03 Thread priya ramesh
ok i got this point. Plz answer this, s is a pointer in foo and a is also a constant pointer in main. (a is passed to foo) However, in main a is treated as an rvalue and in s the same pointer is an lvalue. why?? -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] character count in array

2011-09-03 Thread priya ramesh
use hashing -- 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

Re: [algogeeks] c problem

2011-09-03 Thread priya ramesh
if it is an l value, the compiler should say cannot modify const value instead it says l value required This statement proves that a is an r value in main. right?? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

[algogeeks] activation record

2011-09-02 Thread priya ramesh
Allocation and deallocation of activation records is always done using a stack (LIFO) structure. True or false?? -- 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

[algogeeks] doubt in c

2011-08-31 Thread priya ramesh
the following is a function which computes the double tree of a given tree. here is the description of a double tree. doubleTree() For each node in a binary search tree, create a new duplicate node, and insert the duplicate as the left child of the original node. The resulting tree should still

Re: [algogeeks] Re: Static variable

2011-08-31 Thread priya ramesh
very good question! Thanks for posting 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 algogeeks+unsubscr...@googlegroups.com.

[algogeeks] recursion

2011-08-31 Thread priya ramesh
Is there any difference between a non recursive call and a recursive call in C?? I'm asking about parameter passing and differences in the stack allocation for non recursive call and a recursive call?? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

[algogeeks] apti!

2011-08-26 Thread priya ramesh
A certain number of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally? (a) 110 men (b) 130 men (c) 100 men (d) none of these -- You received this message because you are

Re: [algogeeks] apti!

2011-08-26 Thread priya ramesh
i too got the same ans. -- 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,

Re: [algogeeks] apti!

2011-08-26 Thread priya ramesh
the answer is 130 itseems. i too got 20 -- 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

Re: [algogeeks] apti!

2011-08-26 Thread priya ramesh
oh thanks :) It's given as 10 only. Printing mistake i guess. -- 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] INMOBI

2011-08-23 Thread priya ramesh
guys plz post inmobi's recruitment experience! -- 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] apti!

2011-08-23 Thread priya ramesh
Out of two thirds of the total number of basket -ball matches, a team has won 17 matches and lost 3 of them. What is the maximum number of matches that the team can lose and still win three -fourths of the total number of matches, if it is true that no match can end in a tie? [1] 4 [2] 6 [3] 5

Re: [algogeeks] Re: apti!

2011-08-23 Thread priya ramesh
@dave: thanks! I solved similarly Was a little confused when i got fraction. Can you plz suggest a good book to improve quant?? -- 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

Re: [algogeeks] Apti

2011-08-23 Thread priya ramesh
is the ans 16?? -- 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

Re: [algogeeks] probability ques

2011-08-23 Thread priya ramesh
try substituting values for a. for a=1, 2 it's 50 for a=3, 4, 5, 6, 7... it's less than 50 when a approaches 48, 49... it's 50 the max value of a that satisfies the condition is 47. p= total numbers between 3 and 47 (inclusive of 3 and 47) / total numbers between 1

[algogeeks] amazon

2011-08-22 Thread priya ramesh
The compiler will distinguish between char n[] and char * in which part of the prog?? 1. In actual parameters of function arguments 2. In formal parameters of function arguments 3. in both generally after 1st online technical round what is the cut off for amazon?? -- You received this message

Re: [algogeeks] amazon

2011-08-22 Thread priya ramesh
even i thought it's both. Plz correct me if i'm wrong folks! -- 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] c++

2011-08-21 Thread priya ramesh
it is not an error. check this code: I compiled it #includeiostream using namespace std; class X { public: X() { } }; main(){ } X fun() { return X(); } -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] amazon q

2011-08-21 Thread priya ramesh
A data structure is required for storing a set of integers such that each of the following operations can be done in (log n) time, where n is the number of elements in the set. Deletion of the smallest element Insertion of an element if it is not already present in the set Which of the following

Re: [algogeeks] amazon q

2011-08-21 Thread priya ramesh
so which is the right option?? -- 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

Re: [algogeeks] Longest palindrome

2011-08-21 Thread priya ramesh
how abt goimg with brute force?? check starting from first character if first 2 chars frm a palin, then chck if first 3 form a palin... continue until the end of string. Now starting from 2nd char, do the same. keep a var max to store the max value. -- You received this message because you

Re: [algogeeks] netapp!

2011-08-20 Thread priya ramesh
@tasvinder: thank you so much for the info :) :) Thanks a lot! @arjoo: It hasn't been decided yet -- 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: probability! tough one to crack!

2011-08-20 Thread priya ramesh
a wonderful explaination divye!! thank you so much :) :) -- 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] sol

2011-08-20 Thread priya ramesh
the answer is 1 sum=1 -- 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,

Re: [algogeeks] Adding Two numbers using bitwise operators only

2011-08-20 Thread priya ramesh
+1 sagar! -- 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

Re: [algogeeks] sol

2011-08-20 Thread priya ramesh
if a and b are not equal a^b will evaluate to a non zero value. If they are equal, a^b will be 0 and ab will be a non zero value. In either case, the value is 0 @Aditya: +1. It'll become 0 only if a=b=0 or if the MSB is 1 and rest all bits are 0 (a=b in both cases) -- You received this

Re: [algogeeks] Syllogism

2011-08-20 Thread priya ramesh
yes. -- 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

Re: [algogeeks] c++ q

2011-08-19 Thread priya ramesh
why will the objects have same addresses if the size is 0?? -- 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] test your c++ skills

2011-08-19 Thread priya ramesh
@sarvesh plz upload that book -- 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

[algogeeks] netapp!

2011-08-19 Thread priya ramesh
on what subjects are questions asked in netapp?? (Both written and tech interview) Plz help -- 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

Re: [algogeeks] Re: Amazon question

2011-08-19 Thread priya ramesh
@sanjay: Why doesn't your algo work if the nos are not in the range 1-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

Re: [algogeeks] test your c++ skills

2011-08-19 Thread priya ramesh
thanks a lot :) :) -- 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

Re: [algogeeks] Question from Google interview

2011-08-19 Thread priya ramesh
Hash in the dictionary for the first letter in the string. Check if any word in the dictionary beginning with this letter is a substring of the given string. If yes and if the substring forms the initial part of the string, tokenize it. Continue the process with the next word. -- You received

Re: [algogeeks] Re: Amazon question

2011-08-19 Thread priya ramesh
acc to your logic, it should be 1^2^3^4^5^5^6 which is 1^2^3^4^6 (5^5 is zero) now when you XOR this with the given array, the result will again be 0. -- 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: Amazon question

2011-08-19 Thread priya ramesh
Oh yes yes i got it now!! I missed that point! -- 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] Answer these ques !!

2011-08-19 Thread priya ramesh
1. c 2. d 3. no idea 4. b 5.b -- 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

Re: [algogeeks] Answer these ques !!

2011-08-19 Thread priya ramesh
5th is option 1 sorry! -- 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,

Re: [algogeeks] Re: Adobe Interview Puzzles Urgent !!

2011-08-19 Thread priya ramesh
(root(2)-1)*r??? -- 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

[algogeeks] probability! tough one to crack!

2011-08-19 Thread priya ramesh
A 1 inch diameter coin is thrown on a table covered with a grid of lines two inches apart. What is the probability the coin lands in a square without touching any of the lines of the grid? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To

Re: [algogeeks] Re: netapp!

2011-08-19 Thread priya ramesh
@saurabh: thanks a lot! isn't DBMS important?? -- 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: probability! tough one to crack!

2011-08-19 Thread priya ramesh
why this sentence?? 3/4 of the time the coin will touch a grid line?? -- 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: Answer this !!

2011-08-18 Thread priya ramesh
it can remove methods defined in base class as well?? By overriding a virtual base class func?? -- 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,

[algogeeks] c++ q

2011-08-18 Thread priya ramesh
why isn't the size of empty class not equal to zero?? -- 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] GS apti ques!

2011-08-17 Thread priya ramesh
A B and C have chance of failure of 20%, 30% and 40%. To activate the machine at least two should be active. What is the probability that machine will be active? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] GS apti ques!

2011-08-17 Thread priya ramesh
@romil: how did you solve 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

Re: [algogeeks] GS apti ques!

2011-08-17 Thread priya ramesh
i got 74.8% (machine works) -- 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

Re: [algogeeks] GS apti ques!

2011-08-17 Thread priya ramesh
A mistake from my side as well! Got 78.8% :) -- 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] GS apti ques!

2011-08-17 Thread priya ramesh
@rohith thanks! -- 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

[algogeeks] De shaw ques!

2011-08-17 Thread priya ramesh
if a number is divided by 935 remainder is 69. if same no. is divided by 38, what will be the remainder? -- 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

Re: [algogeeks] De shaw ques!

2011-08-17 Thread priya ramesh
i got the same answer. the ans is supposed to be 29 -- 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] probability tough one!

2011-08-17 Thread priya ramesh
what is the probability of having b'days of 2 persons on the same day in a gathering of 50 persons? -- 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

Re: [algogeeks] probability tough one!

2011-08-17 Thread priya ramesh
nothing is specified. I guess it's 365 -- 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

Re: [algogeeks] De shaw ques!

2011-08-17 Thread priya ramesh
i solved it the same way you solved it. Took the same exmpl too :) -- 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: probability tough one!

2011-08-17 Thread priya ramesh
I don't have coreman. If you have an e book can you plz upload 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] apti! solve this!

2011-08-17 Thread priya ramesh
the answer is given as 13... even i got root(146) -- 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] an amazing amazon question!

2011-08-17 Thread priya ramesh
A car is traveling at a uniform speed.The driver sees a milestone showing a 2-digit number. After traveling for an hour the driver sees another milestone with the same digits in reverse order.After another hour the driver sees another milestone containing the same two digits. What is the average

[algogeeks] brain teaser

2011-08-17 Thread priya ramesh
noon + moon + soon = june find the values of the alphabets to satisfy this equation -- 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

Re: [algogeeks] Re: an amazing amazon question!

2011-08-17 Thread priya ramesh
@sagar, aditya: +100 superb explaination!! -- 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] brain teaser

2011-08-17 Thread priya ramesh
@bhavani : i too got a similar answer :) I guess it has several answers! -- 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] brain teaser

2011-08-17 Thread priya ramesh
yup it's correct now :) :) -- 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

Re: [algogeeks] brain teaser

2011-08-17 Thread priya ramesh
2442 +1442 +5442 -- 9326 2442 5442 1442 9326 - other answers :) -- 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

Re: [algogeeks] brain teaser

2011-08-17 Thread priya ramesh
me too :P On Thu, Aug 18, 2011 at 12:19 AM, Bhavani Pradeep dbprad...@gmail.comwrote: oh yeah... just stopped thinking after finding one solution :P -- 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] c++ templates

2011-08-16 Thread priya ramesh
@sandeep : thank you :) -- 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,

[algogeeks] c++

2011-08-16 Thread priya ramesh
Plz send good c++ interview questions/resources. -- 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] c++ multi dimensional arrays

2011-08-16 Thread priya ramesh
Why should the column size be mandatorily passed to a function which expects a multi dimensional array int arr (int marray[][5], int rows); int arr (int marray[][], int rows, int cols); 1st is valid whereas second is invalid. why?? -- You received this message because you are subscribed to the

Re: [algogeeks] matrix question ???!!!!!!!!!!??????????

2011-08-16 Thread priya ramesh
are these algos optimal??? *Algo 1*: no_min_max =-1 min_row= max_row= -1 for(i=0; in; i++) { for(j=0; jn; j++){ find min, max } if(minprev_min max prev_max){ no_min_max=i; break; }

Re: [algogeeks] operating system mcq

2011-08-15 Thread priya ramesh
Do anyone of you have c++ MCQ book?? Perhaps test your c++ skills by kanetkar?? I'm not able to find good resources on net. Plz help by snding e books or docs -- 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: citrix rd????

2011-08-15 Thread priya ramesh
@sagar: Can you please upload important c++ docs?? I have no idea what to emphasize on in c++ and my placements starting in sometime. Plz help -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] amazon question

2011-08-15 Thread priya ramesh
You are given a dictionary of all valid words. You have the following 3 operations permitted on a word: delete a character, insert a character, replace a character. Now given two words - word1 and word2 - find the minimum number of steps required to convert word1 to word2. (one operation counts as

Re: [algogeeks] Re: operating system mcq

2011-08-15 Thread priya ramesh
@mitra: can you plz mail the e book if you have?? -- 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] program puzzle

2011-08-15 Thread priya ramesh
@gopi: Each word is being accessed thrice. 1. reverse string 2. set pointers to beginning n end of string 3. reverse the word. If this is the came is the complexity O(n)?? It's a very good algo nevertheless :) On Mon, Aug 15, 2011 at 9:16 PM, *$* gopi.komand...@gmail.com wrote: method 1: