[algogeeks] Reg : Openings in Microsoft

2012-09-25 Thread ranganath govardhanagiri
Hello, There are multiple openings in Microsoft for 3+ years experienced folks in Hyderabad and Bangalore across Dev,Test and PM disciplines. Main technology stack in MS is .NET based. Interested folks send across your resume to me. Required: Good academic background Strong understanding in

Re: [algogeeks] CodeChef Problem

2012-09-25 Thread atul anand
the example given in the link , tried 2-3 other example ..it seems to work for them.Maybe problem is not that simple and may fail for some tricky test case.So please correct me if i am wrong:- input : 2 3 4 1 1 sort(input) : 1 1 2 3 4 k=3 from end keep on adding till k-1 add position 4 become :

[algogeeks] spoj problem EASYMATH

2012-09-25 Thread gaurav yadav
help needed in spoj problem EASYMATH http://spoj.pl/problems/EASYMATH.. i thought about inclusion exclusion principle but unable to get to a solution.. plz help.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To view this discussion on the

[algogeeks] microsoft_c++_qstn

2012-09-25 Thread Ravi Ranjan
#includeiostream.h int rec(int i) { static int d=1; if(i=5) return i; d=d+i; i=i+i; rec(d); } int main() { coutrec(1); return 0; } various compilers give diffrent result... why so??? n how d value is calculated by differnt compilers.. whhat is d correct output n which compiler to trust?? -- You

Re: [algogeeks] microsoft_c++_qstn

2012-09-25 Thread atul anand
voilate sequence point rule...acc to c++ standard no complier to trust On 25 Sep 2012 21:27, Ravi Ranjan ravi.cool2...@gmail.com wrote: #includeiostream.h int rec(int i) { static int d=1; if(i=5) return i; d=d+i; i=i+i; rec(d); } int main() { coutrec(1); return 0; } various

Re: [algogeeks] microsoft_c++_qstn

2012-09-25 Thread Ravi Ranjan
@atul so 8 will be the answer or is it not fixed??? -- 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] microsoft_c++_qstn

2012-09-25 Thread atul anand
*i = i + i; // *this voilate sequence point rule output is compiler dependent. On Tue, Sep 25, 2012 at 9:59 PM, Ravi Ranjan ravi.cool2...@gmail.comwrote: @atul so 8 will be the answer or is it not fixed??? -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] microsoft_c++_qstn

2012-09-25 Thread shady
this is not a sequence point rule... there is only one way of evaluation here. correct me if wrong... On Tue, Sep 25, 2012 at 11:26 PM, atul anand atul.87fri...@gmail.comwrote: *i = i + i; // *this voilate sequence point rule output is compiler dependent. On Tue, Sep 25, 2012 at

Re: [algogeeks] microsoft_c++_qstn

2012-09-25 Thread atul anand
correct...my fault On Wed, Sep 26, 2012 at 12:04 AM, shady sinv...@gmail.com wrote: this is not a sequence point rule... there is only one way of evaluation here. correct me if wrong... On Tue, Sep 25, 2012 at 11:26 PM, atul anand atul.87fri...@gmail.comwrote: *i = i + i; //