[algogeeks] Re: Question asked in MS interview

2009-08-14 Thread Yogesh Aggarwal
Yogesh Aggarwal B.Tech(IT), University School of Information Technology GGS Indraprastha University Delhi mailto: yogesh.aggarwa...@gmail.com #9990956582 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks

[algogeeks] Re: Check divisibility by 3

2009-08-14 Thread Yogesh Aggarwal
to worn out than rust. -- Best Wishes Regards Thank You Yogesh Aggarwal B.Tech(IT), University School of Information Technology GGS Indraprastha University Delhi mailto: yogesh.aggarwa...@gmail.com #9990956582 --~--~-~--~~~---~--~~ You received this message

[algogeeks] Re: Check divisibility by 3

2009-08-14 Thread Yogesh Aggarwal
the remainder obtained for q+r.. On Fri, Aug 14, 2009 at 7:11 PM, Yogesh Aggarwal yogesh.aggarwa...@gmail.com wrote: @arun : we are not supposed to use / operator. but in ur algo u r using / or % has to be used to check wether the diff is divisible by 3. We can do like dis... - add all d

[algogeeks] Re: Check divisibility by 3

2009-08-14 Thread Yogesh Aggarwal
= 15 (sum 10) sum2 = 6 since sum 10, we stop here and since final sum = 6 so the given no. is divisible by 3 On Fri, Aug 14, 2009 at 7:25 PM, Yogesh Aggarwal yogesh.aggarwa...@gmail.com wrote: (CORRECTED ALGO.) We can do like dis... - add all d digits of the no. - if the result is MORE

[algogeeks] Re: Check divisibility by 3

2009-08-14 Thread Yogesh Aggarwal
u can use the itoa function for that... On Fri, Aug 14, 2009 at 7:31 PM, sharad kumar aryansmit3...@gmail.comwrote: brother how do u get the digits of number ???u use % and / rite?? On Fri, Aug 14, 2009 at 7:28 PM, Yogesh Aggarwal yogesh.aggarwa...@gmail.com wrote: (CORRECTED ALGO.) We

[algogeeks] Re: programming contest

2008-11-16 Thread Yogesh Aggarwal
Yogesh Aggarwal B.Tech(IT), University School of Information Technology GGS Indraprastha University Delhi mailto: [EMAIL PROTECTED] #9990956582 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Algorithm Geeks group