Re: [algogeeks] Enter in the loop challenge

2012-09-06 Thread Shashank Jain
GUPTA shobhitgupta1...@gmail.comwrote: also the keywords like int , long etc cannot be included in macro On Wed, Sep 5, 2012 at 7:01 PM, Shashank Jain shashank29j...@gmail.comwrote: thanks that was a really nice explanation shashank On Wed, Sep 5, 2012 at 6:48 PM, Bala cmb...@gmail.com

[algogeeks] Enter in the loop challenge

2012-09-05 Thread Shashank Jain
Here is a question...and i am badly stuck at it how would you get into the loop int main() { while ( 0) { printf(hello); } return 0; } You cannot change the while loop and its condition and you have to print hello -- You received this message because you are

Re: [algogeeks] Enter in the loop challenge

2012-09-05 Thread Shashank Jain
it works thanks for your reply On Wed, Sep 5, 2012 at 6:19 PM, Bala cmb...@gmail.com wrote: #define while(x) while(1) Cheers, -Bala On Wed, Sep 5, 2012 at 7:45 AM, Shashank Jain shashank29j...@gmail.com wrote: Here is a question...and i am badly stuck at it how would you get

Re: [algogeeks] Enter in the loop challenge

2012-09-05 Thread Shashank Jain
are compiling C++. Cheers, -Bala “Judge nothing, be happy. Forgive everything, be happier. Love everything, be happiest.” ~Sri Chinmoy On Wed, Sep 5, 2012 at 8:12 AM, Shashank Jain shashank29j...@gmail.com wrote: can you plz explain how it happens ...as valid macro names must

[algogeeks] RBS intern

2012-04-03 Thread Shashank Jain
Hi, RBS is coming for internship. How do I prepare fr it, in terms of the topics asked, In terms of the no. of rounds, whether there is a GD or not? FYI - they hv already taken e-litmus test fr the interns as well (I hv a good score). Shashank Jain IIIrd year Computer Engineering Delhi College

[algogeeks] Complexity

2011-12-14 Thread Shashank Jain
I need to study both space and time complexities. What is the best source? -- 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: whats d problem wid using gets?

2011-09-06 Thread Shashank Jain
@don - how is fgets invoked coz u said we can limit the characters? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Sep 4, 2011 at 3:56 PM, bharatkumar bagana bagana.bharatku...@gmail.com wrote: gets is deprecated ... that's why gcc gives warning

[algogeeks] whats d problem wid using gets?

2011-09-03 Thread Shashank Jain
Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering -- 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]

2011-08-11 Thread Shashank Jain
no ppl miss out on hr rounds too! its d compiler which determines variable size! Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Thu, Aug 11, 2011 at 4:35 PM, sukran dhawan sukrandha...@gmail.comwrote: how to determine whether the machine is a 32 bit or 64 bit

[algogeeks] aptitude

2011-08-10 Thread Shashank Jain
what is the best book for aptitude questions? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering -- 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

Re: [algogeeks] aptitude

2011-08-10 Thread Shashank Jain
what's the book name plz? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Wed, Aug 10, 2011 at 6:41 PM, Pratz mary pratima.m...@gmail.com wrote: rs aggarwal On 10 August 2011 18:32, Shashank Jain shashan...@gmail.com wrote: what is the best book

Re: [algogeeks] shift left nd right

2011-08-08 Thread Shashank Jain
thx dipankar, its a gud 1! Bt tell me wat does '' and '' operators do? eg: 202 = 1 can u explain nd wat is this operator called? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Mon, Aug 8, 2011 at 12:54 AM, Dipankar Patro dip10c...@gmail.com wrote: This link I

Re: [algogeeks] shift left nd right

2011-08-08 Thread Shashank Jain
int b; b=22; printf(%f, b); output: 0.00 plz tell y is dat so? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Mon, Aug 8, 2011 at 10:24 PM, Gaurav Menghani gaurav.mengh...@gmail.comwrote: http://lmgtfy.com/?q=Bitwise+left+and+right+shift+operators

Re: [algogeeks] shift left nd right

2011-08-08 Thread Shashank Jain
oh yeah, thx karthik. Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Mon, Aug 8, 2011 at 10:29 PM, Shashank Jain shashan...@gmail.com wrote: int b; b=22; printf(%f, b); output: 0.00 plz tell y is dat so? Shashank Jain IIIrd year Computer

Re: [algogeeks] Re: GS on campus

2011-08-07 Thread Shashank Jain
what kind of puzzles? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Aug 7, 2011 at 12:34 PM, saurabh singh saurab...@gmail.com wrote: I said also,.that is during the interviews puzzles were asked I am telling the experiences of my friends.I

[algogeeks] Bitwise operators

2011-08-07 Thread Shashank Jain
bitwise complement operator (~), complements d digits of d input bt when i use it : int a,b; b=~a; output: its giving o/p such that b= -a-1; why is dat so? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering -- You received this message because you are subscribed

Re: [algogeeks] Re: Bitwise operators

2011-08-07 Thread Shashank Jain
y r we taking 8 bit numbers, i mean dat way we cant go beyond -127 to 127? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Aug 7, 2011 at 5:39 PM, Yasir yasir@gmail.com wrote: let say a=6; binary= 0110 b = ~a = 1001 Now when you print

Re: [algogeeks] Re: Bitwise operators

2011-08-07 Thread Shashank Jain
so tell me fr any bit representation, 1st bit is for sign only na? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Aug 7, 2011 at 6:03 PM, Yasir yasir@gmail.com wrote: 8 bit was taken just for example. It can be 16/32 bit but that won't make any

Re: [algogeeks] Re: Bitwise operators

2011-08-07 Thread Shashank Jain
nd moreover after 2's complement its 0111 which is 7 nd not -7. so how? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Aug 7, 2011 at 6:25 PM, Shashank Jain shashan...@gmail.com wrote: so tell me fr any bit representation, 1st bit is for sign only na

Re: [algogeeks] Re: Bitwise operators

2011-08-07 Thread Shashank Jain
ok, i get it now. so like for n bit representation, we can use only (n-1) bits for values nd 1 is fr sign. is everything in c stored in binary? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sun, Aug 7, 2011 at 8:19 PM, Yasir yasir@gmail.com wrote

[algogeeks] shift left nd right

2011-08-07 Thread Shashank Jain
plz sum1 explain me shift left nd shift right operators? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks

Re: [algogeeks] GS on campus

2011-08-06 Thread Shashank Jain
10th aug Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 6:37 PM, arvind kumar arvindk...@gmail.com wrote: @sameer:When is GS visitin ur coll?? On Sat, Aug 6, 2011 at 4:17 PM, sameer gupta sgsa...@gmail.com wrote: Delhi College Of Engg

Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable shows 4 bytes only. So how is dat possible acc. to what u said earlier? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Thu, Aug 4, 2011 at 7:33 PM, Ashish kumar Jain akjlucky4

Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
sorry i read it wrong. u are right! Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 6:51 PM, Shashank Jain shashan...@gmail.com wrote: dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable shows 4 bytes only. So how is dat

Re: [algogeeks] pointer size

2011-08-06 Thread Shashank Jain
*sizeof* is compiler and processor dependent for reasons of both architectural limitations and efficiency. Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 6:52 PM, Shashank Jain shashan...@gmail.com wrote: sorry i read it wrong. u are right

Re: [algogeeks] Re: output???

2011-08-05 Thread Shashank Jain
sagar - i dint get u, d code thing! Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 2:31 AM, sagar pareek sagarpar...@gmail.com wrote: yup exactly On Sat, Aug 6, 2011 at 1:51 AM, Piyush Kapoor pkjee2...@gmail.com wrote: I think

Re: [algogeeks] difference between the two

2011-08-05 Thread Shashank Jain
i dont understand the diff btw dem, could u plz elaborate? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 12:32 AM, Kamakshii Aggarwal kamakshi...@gmail.comwrote: in case of 64 bit, size of second structure will also be 16 not 8 On Fri

Re: [algogeeks] pointer size

2011-08-04 Thread Shashank Jain
man this is too big of a page to go thru... so tell as both (OS nd pro) are 64 bit why is ptr size 4 bytes? nd also does it depend on all 3 : OS, processor, compiler ? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Thu, Aug 4, 2011 at 11:57 AM, Dipankar Patro

Re: [algogeeks] Re: Amazon Aptitude questions

2011-08-04 Thread Shashank Jain
whats the priority of ^ symbol? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Thu, Aug 4, 2011 at 1:52 PM, Arun Vishwanathan aaron.nar...@gmail.comwrote: there are 12 black and 12 white socks p(bb)+p(ww) is what we want... p(bb)=12/24*11/23 p(ww)=12/24

Re: [algogeeks] Call by reference

2011-08-03 Thread Shashank Jain
@sandeep, i dint get what do you mean by simulate here, as in an example wud be gud. Shashank Jain Delhi College of Engineering On Wed, Aug 3, 2011 at 11:34 PM, Sandeep Jain sandeep6...@gmail.com wrote: I'd say C language is a truly call-by-value language. C++ supports call-by-reference

[algogeeks] pointer size

2011-08-03 Thread Shashank Jain
the size of a pointer is showing 4 bytes in my 64-bit OS, which should have been 8 bytes. Correct me where i am wrong? Shashank Jain 3rd year, Computer Engg. Delhi College of Engineering -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] pointer size

2011-08-03 Thread Shashank Jain
tush, u hv ny idea dev c uses which compiler? Shashank Jain 3rd year, Computer Engg. Delhi College of Engineering On Thu, Aug 4, 2011 at 10:38 AM, Tushar Bindal tushicom...@gmail.comwrote: never assume that he compiler is same as the OS you run. it may be that you are running a 32-bit

Re: [algogeeks] pointer size

2011-08-03 Thread Shashank Jain
see dipankar, i hv 64 bit OS nd processor bt i dont know abt the compiler. nd yeah size of int is 4 bytes. so tell me where im interpreting wrong? Shashank Jain 3rd year, Computer Engg. Delhi College of Engineering On Thu, Aug 4, 2011 at 11:16 AM, Dipankar Patro dip10c...@gmail.com wrote

Re: [algogeeks] Help on Recursion Bit Operators related problems

2011-08-03 Thread Shashank Jain
even this is a gud 1. http://www.cprogramming.com/tutorial/bitwise_operators.html Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Thu, Aug 4, 2011 at 1:35 AM, Samba Ganapavarapu sambasiv...@gmail.comwrote: thanks raj, is this the bitwise operator tutorial

[algogeeks]

2010-10-10 Thread shashank jain
we can use sortedset .Filling the array enteries in sortedset . as sorted set doesnt allow duplicate entries duplicate can be find out do its works??? -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to