[algogeeks] Please take 3 minutes to help change the world

2013-02-12 Thread Manikanta Babu
Hi, I've just learned about the water crisis and would be grateful if you could spend a few minutes to help solve it: https://waterforward.charitywater.org/GSkEnwJl Thanks, Manikanta -- the charity: water team WaterForward, 387 Tehama Street, San Francisco, CA 94103, USA. Click here to

Re: [algogeeks] Microsoft Interview Question

2012-06-14 Thread Manikanta Babu
Check this out, it works in O(n); int i = 0; int j = n-1; while((in j= 0)(ij)) { if(a[i]0 a[j]0) { swap(a[i],a[j]); i++; j--; } else {

Re: [algogeeks] Cpp problem

2012-05-27 Thread Manikanta Babu
Its a const member function, you cant return reference to the object. Const member function never allows you to modify the data until unless its a mutable. So here we are passing the reference to object which is modifiable, it conflicts with the const member function property. So the compiler

Re: [algogeeks] Re: Cpp problem

2012-05-27 Thread Manikanta Babu
by placing the const keyword at the end of the function signature. In case you want to make the this pointer volatile, u can do so by placing the keyword volatile at the end of the function signature. On May 28, 12:05 am, Manikanta Babu manikantabab...@gmail.com wrote: Its a const member function

Re: [algogeeks]

2012-02-13 Thread Manikanta Babu
Azhar, Thanks for the answer. Its a great explanation. Cheers, Mani On Mon, Feb 13, 2012 at 7:50 PM, Azhar Hussain azhar...@gmail.com wrote: C, standard says which operand belongs to which operator. It does not says which one gets evaluated first. Why it is returning 8 is because of

Re: [algogeeks] Re: THANX ALGOGEEKS !!!!!!

2011-09-22 Thread Manikanta Babu
Congrats buddy. Can you please post the interview questions here. It helps. Thanks, Mani On Thu, Sep 22, 2011 at 6:22 PM, abhishek abhishek.ma...@gmail.com wrote: congrats dude hope u will be well connected with this group and help others to achieve their goals On Sep 22, 8:29 am,

Re: [algogeeks] Algo Book

2011-09-06 Thread Manikanta Babu
The Algorithm Design Manual is the best book you can refer. But its not for beginners. Cheers, Mani On Tue, Sep 6, 2011 at 4:09 PM, siddharam suresh siddharam@gmail.comwrote: @neha: there is site calledhttp://library.nu register there, u'll get majority of the books. Thank you, Sid.

Re: [algogeeks] Re: amazon

2011-07-19 Thread Manikanta Babu
Take two pointers ptr1 and ptr2, ptr1 should move 4 nodes at a time ptr2 should move 3 nodes at a time, thats it when the ptr1 reaches the end the ptr2 will be pointing to 3/4th, same way for m/n th node. But this works best for even number of nodes in list. For odd numbers we need to compromise

Re: [algogeeks] meaning

2011-06-21 Thread Manikanta Babu
0x20 means its a hexa decimal number and the decimal value is 32. Calculation is : 16 power of 0 + 2 * 16 power of 1 = 32 Thanks, Mani http://www.sanidapa.com On Tue, Jun 21, 2011 at 12:43 PM, Srinivasan Sivaramachandran 21.sr...@gmail.com wrote: Hexadecimal representation, 20h equals 32d

Re: [algogeeks] ONLY FOR MEN

2011-04-08 Thread Manikanta Babu
Hello Sunitha, Can you please stop posting these kind of things into this google group. Please go to some other appropriate group. Thanks, Mani On Fri, Apr 8, 2011 at 3:56 PM, SUNITHA BUSETTY sunitha.buse...@gmail.comwrote: hot lipkiss

Re: [algogeeks] Re: Print Hello

2011-03-18 Thread Manikanta Babu
@Saurabh, Sorry buddy, I was trying with g++ compiler, i just tried with gcc and its throwing an error 'error: initializer element is not constant'. I apologise for the mistake. Thanks, Mani On Fri, Mar 18, 2011 at 11:38 AM, saurabh singh saurab...@gmail.com wrote: @Manikanta Babu. Dont say

Re: [algogeeks] Re: Print Hello

2011-03-17 Thread Manikanta Babu
@Dondod is right. It works perfectly. Because printf returns the number of characters printed so n will be initialized with the number of characters. You can try out this simple program. I checked its working perfectly. Thanks, Mani On Fri, Mar 18, 2011 at 9:59 AM, .bashrc saurab...@gmail.com