[algogeeks] Need Valuable suggestions

2012-06-11 Thread SANDEEP CHUGH
Heys guys which is better option for growth?? Juniper networks or Tally Solutions Pvt Ltd ? Please do tell ur opinion..Both paying almost same -- 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] Need Valuable suggestions

2012-06-11 Thread SANDEEP CHUGH
to small company and excel, but if you are too less experienced, then it is wise to go for brand, it is good for future jumps/opportunities. Congrats thanks Rajesh On Mon, Jun 11, 2012 at 11:39 AM, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: Heys guys which is better option for growth

Re: [algogeeks] Need Valuable suggestions

2012-06-11 Thread SANDEEP CHUGH
Guys please tell ur suggestions.. I really need that !! Thnks in advance !! On Mon, Jun 11, 2012 at 11:58 AM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @Manjay Tally came to Our campus for recruitment... On Mon, Jun 11, 2012 at 11:55 AM, Manjay kumar manjay.bit...@gmail.comwrote: can

Re: [algogeeks] Need Valuable suggestions

2012-06-11 Thread SANDEEP CHUGH
or development. This decision is going to affect you career path more than joining Juniper or Tally. Regards, Amit. On Jun 11, 2012 2:11 PM, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: Guys please tell ur suggestions.. I really need that !! Thnks in advance !! On Mon, Jun 11, 2012 at 11:58 AM

Re: [algogeeks] LINKED LIST QUESTION

2012-06-04 Thread SANDEEP CHUGH
can be done using skip lists On Mon, Jun 4, 2012 at 3:03 PM, Jeevitesh jeeviteshshekha...@gmail.comwrote: This is possible only if Linked List is sorted then we can apply Merge Sort for Linked List which would be in place. Otherwise the time complexity would be O(n logn). On Mon, Jun 4,

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

2011-09-09 Thread SANDEEP CHUGH
@PRAVEEN : with scanf , we can read two or more than two variables at a time like scanf( %s %sstring1, string2) but with gets we can read only one variable gets (string1) we cannot use gets (string1, string2) On Thu, Sep 8, 2011 at 11:05 PM, praveen raj praveen0...@gmail.com wrote:

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

2011-09-08 Thread SANDEEP CHUGH
another problem with gets is that although we can read multiword string but we cannot read multiple strings like with scanf,, On Thu, Sep 8, 2011 at 10:50 PM, praveen raj praveen0...@gmail.com wrote: char str[MAXLINE]; fp=fopen(ABC.txt,r); syntax: fgets(str,MAXLINE,fp); With regards,

Re: [algogeeks]

2011-09-06 Thread SANDEEP CHUGH
i think main gives the address not main() ?? On Tue, Sep 6, 2011 at 11:21 PM, siddharam suresh siddharam@gmail.comwrote: *main()* is an address/probably the function pointer, Thank you, Sid. On Tue, Sep 6, 2011 at 11:19 PM, Sanjay Rajpal srn...@gmail.com wrote: #include stdio.h

Re: [algogeeks] urgent C o/p

2011-09-05 Thread SANDEEP CHUGH
u r printing a floating point number using %d format specifier. dnt assume that while printing a float using %d , the compiler will chop the digits after decimal places.. its not so.. the result will be undefined.. On Mon, Sep 5, 2011 at 1:36 PM, Aman Kumar amanas...@gmail.com wrote:

Re: [algogeeks] Re: Stack problem

2011-09-05 Thread SANDEEP CHUGH
In my earlier approach , if the element that is stored in min got popped out then we have to search entire stack for min.. so i think my earlier approach will not work.. tell me about that?? and i hav another approach.. also tell me about that also? consider we have to push the elemnts 12

Re: [algogeeks] explain the output..!!

2011-09-05 Thread SANDEEP CHUGH
@sanjay :it will not print arr[i] , it will print pot[i] On Mon, Sep 5, 2011 at 8:13 PM, rajul jain rajuljain...@gmail.com wrote: good question yaar ,from which book you read this. On Mon, Sep 5, 2011 at 7:59 PM, Sanjay Rajpal srn...@gmail.com wrote: Fourth number is not octal. Sanju

Re: [algogeeks] convert a word into a palindrome with minimum addition of letters to it

2011-09-05 Thread SANDEEP CHUGH
...@gmail.com wrote: @hemank: sukran's prog works .. int main() { char str[]=Nitan; int n=strlen(str); for(int i=0;in/2;i++) { str[n-1-i] = str[i]; } printf(%s,str); } ouput :NitiN On Mon, Sep 5, 2011 at 4:39 AM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote

Re: [algogeeks] Re: Stack problem

2011-09-05 Thread SANDEEP CHUGH
only if it is equal to popped stack1 element. On Mon, Sep 5, 2011 at 8:21 PM, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: In my earlier approach , if the element that is stored in min got popped out then we have to search entire stack for min.. so i think my earlier approach

Re: [algogeeks] Re: Stack problem

2011-09-05 Thread SANDEEP CHUGH
, 2011 at 9:15 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @dave : ya ryt.. @shravan ; my solution works for the case that dave has told.. so at every step we hav to push min.. On Mon, Sep 5, 2011 at 9:11 PM, Dave dave_and_da...@juno.com wrote: @Shravan: You at least have to push equal mins

Re: [algogeeks] Stack problem

2011-09-04 Thread SANDEEP CHUGH
we can take another variable min.. first time push operation is done , store the element into min.. next time push is performed , compare the number u r pushing with the already stored no in min variable.. and store minimum of two no's in min variable.. and thn perform the push operation.. so

Re: [algogeeks] Re: enum vs macro

2011-09-04 Thread SANDEEP CHUGH
enum -- no need of defining values.. numeric values automatically assigned -- can have local effect macro -- we have to explicitly define the values -- always global effect On Sun, Sep 4, 2011 at 10:37 PM, deepikaanand swinyanand...@gmail.comwrote: macro is a pre processor directive while

Re: [algogeeks] stack interview question

2011-08-31 Thread SANDEEP CHUGH
I DNT GET IT.. EXPLAIN PROPERLY ANYONE On Wed, Aug 31, 2011 at 12:57 PM, Yuchen Liao lycdra...@gmail.com wrote: The sequence like 3 1 2 is invalid. So, ans is *b*,* f* and *g* On Wed, Aug 31, 2011 at 1:35 AM, Siddhartha Banerjee thefourrup...@gmail.com wrote: couldn't get it... what

Re: [algogeeks] C output

2011-08-31 Thread SANDEEP CHUGH
its 4 3 i think On Wed, Aug 31, 2011 at 9:25 PM, aditi garg aditi.garg.6...@gmail.comwrote: 8 3 On Wed, Aug 31, 2011 at 9:22 PM, rohit raman.u...@gmail.com wrote: output?? int main() { char *d = abc\0def\0; printf(%d %d,sizeof(d),strlen(d)); getch(); } -- You received

Re: [algogeeks] C output

2011-08-31 Thread SANDEEP CHUGH
i said 4 3 according to 32 bit machine.. if its 16 bit thn it wud be 2 3 On Wed, Aug 31, 2011 at 9:30 PM, sachin goyal monugoya...@gmail.com wrote: 2 3 because d is pointer avriable On Wed, Aug 31, 2011 at 9:25 PM, aditi garg aditi.garg.6...@gmail.comwrote: 8 3 On Wed, Aug 31, 2011 at

Re: [algogeeks] fork()

2011-08-31 Thread SANDEEP CHUGH
i thinks it is 16 not 20 please check that On Wed, Aug 31, 2011 at 9:18 PM, annarao kataru kataruanna...@gmail.comwrote: @swathi :: why it is 20 times ?? ur answer is correct but plz explain the process?? -- You received this message because you are subscribed to the Google

Re: [algogeeks] C output

2011-08-31 Thread SANDEEP CHUGH
wrote: 8 3 is correct..winshuttle mein aaya tha ;) On Wed, Aug 31, 2011 at 9:30 PM, aditi garg aditi.garg.6...@gmail.comwrote: No sizeof ignores \0 On Wed, Aug 31, 2011 at 9:27 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: its 4 3 i think On Wed, Aug 31, 2011 at 9:25 PM, aditi

Re: [algogeeks] C output

2011-08-31 Thread SANDEEP CHUGH
...@gmail.com wrote: 8 3 is correct..winshuttle mein aaya tha ;) On Wed, Aug 31, 2011 at 9:30 PM, aditi garg aditi.garg.6...@gmail.comwrote: No sizeof ignores \0 On Wed, Aug 31, 2011 at 9:27 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: its 4 3 i think On Wed, Aug 31, 2011 at 9:25 PM

Re: [algogeeks] Re: fork()

2011-08-31 Thread SANDEEP CHUGH
it will be 16 .. On Wed, Aug 31, 2011 at 9:54 PM, abhishek abhishek.ma...@gmail.com wrote: i think it will be 16 (not sure ) can anyone explain how it will be 20, On Aug 31, 9:02 pm, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: i thinks it is 16 not 20 please check that On Wed

Re: [algogeeks] Help ! - Explain Sscanf

2011-08-30 Thread SANDEEP CHUGH
but sanjay in the ques it is *c*cd shudn't there be a % before that ?? On Tue, Aug 30, 2011 at 11:22 PM, Sanjay Rajpal srn...@gmail.com wrote: Run the following program : main() { int a,b; scanf(%d %*d,a,b); printf(\na= %d, b=%d,a,b); } now see the values of a and b, and post the

Re: [algogeeks] Winshuttle Pattern and Question *Urgent*

2011-08-27 Thread SANDEEP CHUGH
@birju : Samsung nhi leni kya?? On Sat, Aug 27, 2011 at 12:45 PM, Brijesh brijeshupadhyay...@gmail.comwrote: Can anyone please post the pattern and questions asked by winshuttle , as it is coming to my college tomorrow..?? -- You received this message because you are subscribed to the

Re: [algogeeks] is it possible to access data from memory location 0?

2011-08-26 Thread SANDEEP CHUGH
no it results in segmentation fault On Fri, Aug 26, 2011 at 3:48 PM, siddharam suresh siddharam@gmail.comwrote: Thank you, Siddharam -- 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: MS Question

2011-08-25 Thread SANDEEP CHUGH
wat abt doing wid hashing? On Thu, Aug 25, 2011 at 3:55 PM, vikas vikas.rastogi2...@gmail.com wrote: yep, trie needs to be built On Aug 24, 10:49 pm, Ankur Garg ankurga...@gmail.com wrote: It means when u call that func u get the next word in the document Regards Ankur

Re: [algogeeks] Re: MS Question

2011-08-25 Thread SANDEEP CHUGH
for every word in the document , apply hash funtion.. store the string n its frequency too.. if we get the same word , then increment the frequency. after storing. whenver we want to search the word , searching in O(1) time , jst applying hash function again on the word to be searched ..

Re: [algogeeks] Re: MS Question

2011-08-25 Thread SANDEEP CHUGH
no .. question says that there is a function that gives the next word in the document.. this means after hashing one word , we hav to go to another word ... for this going to next word in the document , we hav already provided wid a function.. nothing to do wid the occurence On Thu, Aug 25,

Re: [algogeeks] Re: MS Question

2011-08-25 Thread SANDEEP CHUGH
ohh sry my mistake .. got it On Thu, Aug 25, 2011 at 7:36 PM, Shrey Choudhary choudharyshre...@gmail.com wrote: design a code which efficiently search the word and find occurrence of it in given document -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] Re: MS Question

2011-08-25 Thread SANDEEP CHUGH
the position or something like that. isn't so ?? On Thu, Aug 25, 2011 at 7:38 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: ohh sry my mistake .. got it On Thu, Aug 25, 2011 at 7:36 PM, Shrey Choudhary choudharyshre...@gmail.com wrote: design a code which efficiently search the word

Re: [algogeeks] Intersection of characters

2011-08-25 Thread SANDEEP CHUGH
same .. it can be done wid hashing too.. On Thu, Aug 25, 2011 at 7:42 PM, Shrey Choudhary choudharyshre...@gmail.com wrote: There are two files .. print the common characters in two files -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group.

Re: [algogeeks] C question

2011-08-20 Thread SANDEEP CHUGH
@sukran explain plz On Sat, Aug 20, 2011 at 4:16 PM, sukran dhawan sukrandha...@gmail.comwrote: one more condition is required if(num != 0 !( num (num-1)) On Sat, Aug 20, 2011 at 4:04 PM, Sanjay Rajpal srn...@gmail.com wrote: if(!(x x-1)) printf(No. is power of 2); Sanju :) On

Re: [algogeeks] C question

2011-08-20 Thread SANDEEP CHUGH
20, 2011 at 4:18 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @sukran explain plz On Sat, Aug 20, 2011 at 4:16 PM, sukran dhawan sukrandha...@gmail.comwrote: one more condition is required if(num != 0 !( num (num-1)) On Sat, Aug 20, 2011 at 4:04 PM, Sanjay Rajpal srn...@gmail.com

Re: [algogeeks] Re: Algorithms For Interviews

2011-08-17 Thread SANDEEP CHUGH
mail to me too On Thu, Aug 18, 2011 at 12:04 AM, rajesh yerneni rajesh.a...@gmail.comwrote: I could not download the file, please mail it to me tooo... -- 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] c++ templates

2011-08-16 Thread SANDEEP CHUGH
yeah it will be created... so code size will be the same.. only benefit of templates is clearer understanding and u dnt hav to write code , as compiler does it for you On Tue, Aug 16, 2011 at 11:51 PM, priya ramesh love.for.programm...@gmail.com wrote: Please Explain the working of templates

Re: [algogeeks] c++ templates

2011-08-16 Thread SANDEEP CHUGH
:) On Tue, Aug 16, 2011 at 11:57 PM, priya ramesh love.for.programm...@gmail.com wrote: @sandeep : thank you :) -- 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

Re: [algogeeks] how to find K most significant digit of a number..???

2011-08-13 Thread SANDEEP CHUGH
this routine will extract k msb's and will print them n is the number,, and k is the no of bits u wnt to print.. void k_msb(int n, int k) { int mask; int count=0; int r; for(int i=31;i=0;i--) { if(count==k) break; mask=1i; r=maskn;

Re: [algogeeks] output help

2011-08-09 Thread SANDEEP CHUGH
i dnt get it.. any better explanation.. On Tue, Aug 9, 2011 at 1:13 PM, dinesh bansal bansal...@gmail.com wrote: On a little-endian machine, bit structure will be represented as: 0x00 00 00 45 which is bit.bit4 = 0010 (2 in decimal) bit.bit3 = 0010 (2 in decimal) bit.bit1 = 1 (1 in

Re: [algogeeks] output?

2011-08-09 Thread SANDEEP CHUGH
it doesn't matter On Tue, Aug 9, 2011 at 10:25 PM, siddharth srivastava akssps...@gmail.comwrote: On 9 August 2011 22:20, tech rascal techrascal...@gmail.com wrote: #includestdio.h int main() { char ch; if((ch=printf())) printf(it matters); else printf(it doesn't matter); return 0;

Re: [algogeeks] output?

2011-08-09 Thread SANDEEP CHUGH
@all sorry i give wrong explanation by mistake..:P :P printf() returns no if characters.. in this case returns 0 . which is assigned to ch so in ch 0 is stored and 0 is the ascii value of null character when we using ch in --- if (ch) -- it will reduce to if(0) -- as 0 is the ascii value of

Re: [algogeeks] size -------

2011-08-07 Thread SANDEEP CHUGH
it depends on ur system configuration...for 32 bit machines...respective sizes allocated would be 4,4,8 :giving 16 on 64 bit machines it wud be 8,8,8: giving 24. Correct me if i am wrong. On Sat, Aug 6, 2011 at 9:24 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @ sukran , nitish

Re: [algogeeks] Re: Directi on campus

2011-08-06 Thread SANDEEP CHUGH
can any one tell me the same about D.e Shaw ?? On Sat, Aug 6, 2011 at 5:35 PM, raj kumar megamonste...@gmail.com wrote: Really helpful info thanks guys.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] size -------

2011-08-06 Thread SANDEEP CHUGH
struct demo { char c; double d; int s; }; what wud be the size of struct demo object? -- 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

Re: [algogeeks] Re: Directi on campus

2011-08-06 Thread SANDEEP CHUGH
can any one tell me the same about D.e Shaw ?? On Sat, Aug 6, 2011 at 6:27 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: can any one tell me the same about D.e Shaw ?? On Sat, Aug 6, 2011 at 5:35 PM, raj kumar megamonste...@gmail.com wrote: Really helpful info thanks guys.. -- You

Re: [algogeeks] difference between the two

2011-08-06 Thread SANDEEP CHUGH
@ puneet : tell me the case if u take the address to be starting from 4 not 0.. On Sat, Aug 6, 2011 at 6:55 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @ puneet : ryt !! gud explanation. On Sat, Aug 6, 2011 at 6:53 PM, Puneet Gautam puneet.nsi...@gmail.comwrote: Order is important

Re: [algogeeks] size -------

2011-08-06 Thread SANDEEP CHUGH
yeah answer is 24 .. i knw.. i hav missed something in question that allocation starts at address which is multiple of 4. so i wanna ask.. why there is padding of 7 bytes after first char.. will nt it work after 3 bytes padding On Sat, Aug 6, 2011 at 6:55 PM, UTKARSH SRIVASTAV

Re: [algogeeks] Re: sizeof structure

2011-08-06 Thread SANDEEP CHUGH
yeah i hav asked this.. bt there is one assumption for this ques that address starts at multiple of 4.. On Sat, Aug 6, 2011 at 7:05 PM, vikas singh shyguy1...@gmail.com wrote: struct demo { char c; double d; int s; }; what wud be the size of struct demo

Re: [algogeeks] difference between the two

2011-08-06 Thread SANDEEP CHUGH
take this case struct demo { char c; double d; int s; } what wud be the size?? solution is 24 according to following:-- char (1) + 7 byte padding +double(8)+int(4)+ 4 byte padding suppose address starts at 4.. i just wanna ask .. why there is 7 byte padding..

Re: [algogeeks] Re: sizeof structure

2011-08-06 Thread SANDEEP CHUGH
i hav executed ur code on dev c++.. i m getting correct out put as 24. when i hav executed ur code on turbo version it shows 11 ,i.e it is doing no padding at all.. On Sat, Aug 6, 2011 at 7:21 PM, vikas singh shyguy1...@gmail.com wrote: @sandeep size = 16 address=3220095484 size = 16

Re: [algogeeks] difference between the two

2011-08-06 Thread SANDEEP CHUGH
; } in turbo c , its giving 11,, that means compiler nt doing padding at all in turbo c.. On Sat, Aug 6, 2011 at 7:50 PM, siddharth srivastava akssps...@gmail.comwrote: Hi Sandeep On 6 August 2011 19:16, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: take this case struct demo { char c

Re: [algogeeks] what will be the output

2011-08-06 Thread SANDEEP CHUGH
@kartik : can u explain hw it is coming? On Sat, Aug 6, 2011 at 8:33 PM, karthik loganathan karthik.algog...@gmail.com wrote: 15 times On Sat, Aug 6, 2011 at 7:20 PM, abhishek abhishek.ma...@gmail.com wrote: int x=150 for(y=x;y0;y=(x(y-1)) printf(Hi, There); How many times hi there

Re: [algogeeks] size -------

2011-08-06 Thread SANDEEP CHUGH
@payel : according to u,,starting address cannot be 4.. ok. but wat if i hav used the following structure before that structure struct demo1 { char a; int b; char c; } On Sat, Aug 6, 2011 at 9:06 PM, Nitish Garg nitishgarg1...@gmail.comwrote: Why does Ideone https://ideone.com/1Uwxx gives

Re: [algogeeks] size -------

2011-08-06 Thread SANDEEP CHUGH
@ sukran , nitish : guys, i dnt knw about the output from these online compliers.. On Sat, Aug 6, 2011 at 9:20 PM, SANDEEP CHUGH sandeep.aa...@gmail.comwrote: @payel : according to u,,starting address cannot be 4.. ok. but wat if i hav used the following structure before that structure

Re: [algogeeks] size -------

2011-08-06 Thread SANDEEP CHUGH
i got 24 when i compiled using dev c++ compiler and i got 11 when compiled using turbo c compiler On Sat, Aug 6, 2011 at 9:26 PM, sukran dhawan sukrandha...@gmail.comwrote: the answer i got was 12 . let me know the answer u got in ur compiler! On Sat, Aug 6, 2011 at 9:20 PM, SANDEEP CHUGH

Re: [algogeeks] difference between the two

2011-08-06 Thread SANDEEP CHUGH
...@gmail.comwrote: On 6 August 2011 21:50, siddharth srivastava akssps...@gmail.com wrote: Hi On 6 August 2011 20:20, SANDEEP CHUGH sandeep.aa...@gmail.com wrote: padding wud be between int char..(for ur last case) now u said if it starts at 4 , still the block will be 8 (size of double

Re: [algogeeks] Structure Q

2011-08-05 Thread SANDEEP CHUGH
ERROR On Fri, Aug 5, 2011 at 5:19 PM, Vijay Khandar vijaykhand...@gmail.comwrote: struct list { int x; struct list *next; }*head; The statement head.x=100 A)assigns 100 to one element of the structure list B)creates a node of type list and assigns a value to x C)creates a head of the

Re: [algogeeks] Question

2011-08-05 Thread SANDEEP CHUGH
ITS (A). BECAUSE WE HAVE TO LINK THE EMULATOR AS COMPILER SEES A REFERENCE TO FLOATING POINT NUMBER IT SETS ITS FLAG TO HAVE THE LINKER LINK INT THE EMULATOR.. ITS IN 16 BIT COMPILER BECAUSE THERE IS NO PROVISION FOR FLOATING POINT OPERATIONS IN 16 BIT MICRO PROCESSOR..SO THEY USE FLOATING POINT

Re: [algogeeks] Question

2011-08-05 Thread SANDEEP CHUGH
INCLUDE THIS FUNCTION linkfloat( ) { float a = , *b ; b = a ; /* cause emulator to be linked */ a = *b ;/* suppress the warning - variable not used */ }; On Fri, Aug 5, 2011 at 6:04 PM, Vijay Khandar vijaykhand...@gmail.comwrote: But program is not giving the o/p. I have taken one printf

[algogeeks]

2011-05-12 Thread SANDEEP CHUGH
http://www.PaisaLive.com/register.asp?3176949-6719896http://www.paisalive.com/register.asp?3176949-6719896 CHECK IT -- 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