Re: [algogeeks] Enter in the loop challenge

2012-09-06 Thread Shashank Jain
2012 at 10:09 PM, SHOBHIT GUPTA wrote: > also the keywords like int , long etc cannot be included in macro > > On Wed, Sep 5, 2012 at 7:01 PM, Shashank Jain wrote: > >> thanks that was a really nice explanation >> >> shashank >> >> >> On Wed, Sep 5,

Re: [algogeeks] Enter in the loop challenge

2012-09-05 Thread Shashank Jain
nnot be macros when > you 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 > wrote: > > can you pl

Re: [algogeeks] Enter in the loop challenge

2012-09-05 Thread Shashank Jain
can you plz explain how it happens ...as valid macro names must not be key words. On Wed, Sep 5, 2012 at 6:24 PM, Shashank Jain wrote: > > it works > thanks for your reply > > > > On Wed, Sep 5, 2012 at 6:19 PM, Bala wrote: > >> #define while(x) while(1) >>

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 wrote: > #define while(x) while(1) > > Cheers, > -Bala > > > > On Wed, Sep 5, 2012 at 7:45 AM, Shashank Jain > wrote: > > Here is a question...and i am badly stuck at it > > > >

[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 su

[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 algogee

Re: [algogeeks] Zynga intern

2011-09-06 Thread Shashank Jain
me 2 Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Wed, Aug 31, 2011 at 4:05 PM, Akash Mukherjee wrote: > +1 > > > On Wed, Aug 31, 2011 at 8:12 AM, arvind kumar wrote: > >> Hi >> Can any1 temme process,questions,exper

Re: [algogeeks] Re: whats d problem wid using gets?

2011-09-05 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

[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, sen

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 wrote: > how to determine whether the machine is a 32 bit or 64 bit using a c > p

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 wrote: > rs aggarwal > > On 10 August 2011 18:32, Shashank Jain wrote: > >> what is the best book for aptitude questio

[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@googlegrou

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 wrote: > int b; > b=2<<2; > printf("%f", b); > > output: 0.00 > > plz tell y is dat so? >

Re: [algogeeks] shift left nd right

2011-08-08 Thread Shashank Jain
int b; b=2<<2; 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 wrote: > http://lmgtfy.com/?q=Bitwise+left+and+right+shift+operator

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: 20>2 = 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 wro

[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

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 wrote: > @Shashank, You didn&#x

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 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
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 wrote: > 8 bit was taken just for example. It can be 16/32 bit but that won't > make any difference o

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 wrote: > let say a=6; binary= 0110 > b = ~a = 1001 > Now when you print value o

[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 to

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 wrote: > I said also,.that is during the interviews puzzles were asked > I am telling the experiences of my friends.I was out in r

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 wrote: > sorry i read it wrong. u are right! > > > S

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 wrote: > dipankar, i hv 64 bit OS nd 32 bit compiler only since the ptr variable > shows 4 bytes only. So how is dat possible a

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 wrote: > Just check

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 wrote: > @sameer:When is GS visitin ur coll?? > > > On Sat, Aug 6, 2011 at 4:17 PM, sameer gupta wrote: > >> Delhi College Of Engg >> &

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 wrote: > in case of 64 bit, > size of second structure will also be 16 not 8 > > > On Fri,

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 wrote: > yup exactly > > On Sat, Aug 6, 2011 at 1:51 AM, Piyush Kapoor wrote: > >> I think it is because the numbe

Re: [algogeeks] help on string manipulation & bit manipulation

2011-08-05 Thread Shashank Jain
could u give some examples shiv fr string manipulation? Shashank Jain IIIrd year Computer Engineering Delhi College of Engineering On Sat, Aug 6, 2011 at 1:57 AM, shiv narayan wrote: > i have seen plenty of questions on string manipulation and bits > operations asked in various com

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 wrote: > 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] pointer size

2011-08-03 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] 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 wrote: > thanks raj, > is this the bitwise operator tutorial that you told

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 wrote: > This has been a

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 wrote: > never assume that he compiler is same as the OS you run. it may be that you > are running a 32-bit compiler >

[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"

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 wrote: > I'd say C language is a truly call-by-value language. C++ supports > call-by-reference. > Howev

[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 al

Re: [algogeeks] Re: linked lists

2010-10-08 Thread shashank jain
there are 2 unsorted array we have to want a third array in sorted form in mininmum time complexicity answer can like be this merge the two array in 3rd array then sort the array or sort the individual array and then merge if feel first one is better can any one can he