Re: [algogeeks]

2011-09-23 Thread vishwa
int a=256; imagine integer is 4 bytes. so in memory it will look like this --last byte.. 0001--- p ---starting byte of a but the char pointer is pointing to 1 byte of integer, u incremented it point to 2nd byte and assigned the new value 2(it was 1 before) so it

Re: [algogeeks] Re: THANX ALGOGEEKS !!!!!!

2011-09-23 Thread Sairam Ravu
Congrats and thanks for inputs in the blog. -- With love and regards, Sairam Ravu I M.Tech(CS) Sri Sathya Sai Institute of Higher Learning To live life, you must think it, measure it, experiment with it, dance it, paint it, draw it, and calculate it -- You received this message because you

[algogeeks] dbms

2011-09-23 Thread Akash Mukherjee
hican ne1 suggest good books for dbms...not theory types but more of a question bank like maybe a cracking the coding interview is for coding/algo... thanx :) -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send

Re: [algogeeks] Flip kart

2011-09-23 Thread sagar pareek
thanx a ton one more query... was mcq is in online test? On Fri, Sep 23, 2011 at 1:54 AM, aditya kumar aditya.kumar130...@gmail.comwrote: those three question they ASKD me in interview nt in coding round n they are very particular abt coding On Fri, Sep 23, 2011 at 1:53 AM, aditya kumar

Re: [algogeeks] Flip kart

2011-09-23 Thread sagar pareek
and would u like to please tell me the online coding questions... On Fri, Sep 23, 2011 at 1:10 PM, sagar pareek sagarpar...@gmail.com wrote: thanx a ton one more query... was mcq is in online test? On Fri, Sep 23, 2011 at 1:54 AM, aditya kumar aditya.kumar130...@gmail.com wrote:

[algogeeks] Queries regarding Summer(2012) internship

2011-09-23 Thread Mohit kumar lal
Hello everyone,. I am 3rd yr student from IIIT Allahabad,i want to know what companies I can apply for summer(2012) internship and what is the process for applying in these companies.My CGPI is around 8.Please reply as soon as possible. -- Mohit kumar lal rit2009014 IIIT ALLAHABAD

[algogeeks] D.E Shaw

2011-09-23 Thread sameer gupta
any one pleae help which type of question are asked for interns in D.E shaw some recent question will surely be of great help -- 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

[algogeeks] Re: can any body explain the output and the general method

2011-09-23 Thread him
thank you dave. any idea how to handle such questions in placement papers? On Sep 22, 8:06 am, Dave dave_and_da...@juno.com wrote: @Himanshuarora: This code violates the sequence point rule (google it), which essentially says that a variable can change values at most one time between sequence

[algogeeks] Adobe final interview question

2011-09-23 Thread algo geek
You have a library provided by the vendor. All you have is header files and library files. Library contains the class Shape and there is whole hierarchy tree (i mean classes which derive from this base class). Now you want to add some function getArea (not originally present in the class or any of

[algogeeks] Re: Adobe final interview question : small change

2011-09-23 Thread algo geek
You have a library provided by the vendor. All you have is header files and library files. Library contains the class Shape and there is whole hierarchy tree (i mean classes which derive from this base class). Now you want to add some function getArea (not originally present in the class or any of

Re: [algogeeks] Flip kart

2011-09-23 Thread aditya kumar
yes mcq's wer in online test . 1st coding question was to print all ascending lexical order of () http://chinmaylokesh.wordpress.com/2011/02/23/catalan-number-combinatorial-problem-print-all-valid-properly-opened-and-closed-n-pairs-of-parentheses/ here is the soln 2nd was very easy array problem

Re: [algogeeks] Re: can any body explain the output and the general method

2011-09-23 Thread vijay singh
Think it as following... (++i + ++i) + ++i; i.e. (7 + 7) + 8; 1) calculate ++i i.e i=6 2) calculate ++i i.e i=7 3) calculate (i + i) i.e (7+7) = 14 because i is now 7 4) calculate ++i i.e i=8 5) calculate 14 + i i.e 22 -- You received this message because you are subscribed to the Google

Re: [algogeeks] D.E Shaw

2011-09-23 Thread vijay singh
Prepare for CAT apti... -- 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 algogeeks+unsubscr...@googlegroups.com. For more options,

Re: [algogeeks] Re: Adobe final interview question : small change

2011-09-23 Thread Prem Krishna Chettri
This is Simple query related to Factory Design Pattern... Have a look at the Auto Registration of Factory Design pattern.. :) Prem On Fri, Sep 23, 2011 at 3:02 PM, algo geek geeka...@gmail.com wrote: You have a library provided by the vendor. All you have is header files and library files.

Re: [algogeeks] Re: THANX ALGOGEEKS !!!!!!

2011-09-23 Thread vijay singh
Congrats bro... -- 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 algogeeks+unsubscr...@googlegroups.com. For more options, visit

Re: [algogeeks] Re: can any body explain the output and the general method

2011-09-23 Thread vishwa
its 21 . On Fri, Sep 23, 2011 at 4:10 PM, vijay singh vijaysinghb...@gmail.comwrote: Think it as following... (++i + ++i) + ++i; i.e. (7 + 7) + 8; 1) calculate ++i i.e i=6 2) calculate ++i i.e i=7 3) calculate (i + i) i.e (7+7) = 14 because i is now 7 4) calculate ++i i.e i=8 5)

Re: [algogeeks] Qualcomm

2011-09-23 Thread vijay singh
Yes, it already visited.. -- 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 algogeeks+unsubscr...@googlegroups.com. For more options,

[algogeeks] Re: D.E Shaw

2011-09-23 Thread sameer gupta
its a telephonic interview ..please guide how to prepare... and please post question if anyone had interview recently -- 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

[algogeeks] Amazon online test

2011-09-23 Thread raju
hi all, can anyone pls share the questions amazon has been asking in online written tests. thanks raju -- 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

Re: [algogeeks] Re: can any body explain the output and the general method

2011-09-23 Thread Kunal Yadav
+1 dave Its giving 97 in my compiler. On Fri, Sep 23, 2011 at 4:22 PM, vishwa vishwavam...@gmail.com wrote: its 21 . On Fri, Sep 23, 2011 at 4:10 PM, vijay singh vijaysinghb...@gmail.comwrote: Think it as following... (++i + ++i) + ++i; i.e. (7 + 7) + 8; 1) calculate ++i i.e i=6 2)

Re: [algogeeks] Re: THANX ALGOGEEKS !!!!!!

2011-09-23 Thread siddharth srivastava
Hi Congrats What did you answer for elevator problem ? On 22 September 2011 18:42, saurabh sah.saurab...@gmail.com wrote: thanx to all I have shared my interview experience at http://msidcinterview.blogspot.com/ -- You received this message because you are subscribed to the Google

Re: [algogeeks] Amazon online test

2011-09-23 Thread siddharth srivastava
Hi On 23 September 2011 17:29, raju nikutel...@gmail.com wrote: hi all, can anyone pls share the questions amazon has been asking in online written tests. Search the archives This has been answered many times in the recent days. Best of Luck thanks raju -- You received this message

Re: [algogeeks] Re: error in c++ program

2011-09-23 Thread Debabrata Das
prefix class as class time a,b,c,d; worked for me. On Fri, Sep 23, 2011 at 12:09 AM, Rajesh Kumar testalgori...@gmail.com wrote: thanx Rahul On Thu, Sep 22, 2011 at 11:54 PM, abhinav gupta abhinav@gmail.com wrote: @rahul +1 On Thu, Sep 22, 2011 at 11:20 PM, rahul vatsa

Re: [algogeeks]

2011-09-23 Thread Anil Arya
see the concept of LITTLE ENDIAN and BIG ENDIAN On Fri, Sep 23, 2011 at 12:23 PM, vishwa vishwavam...@gmail.com wrote: int a=256; imagine integer is 4 bytes. so in memory it will look like this --last byte.. 0001--- p ---starting byte of a but the char

Re: [algogeeks] Re: MICROSOFT IDC

2011-09-23 Thread sagar pareek
congrates dude On Thu, Sep 22, 2011 at 7:26 PM, Sanjay Rajpal srn...@gmail.com wrote: Saurabh : Thank u very much :) Sanju :) On Thu, Sep 22, 2011 at 6:15 AM, saurabh sah.saurab...@gmail.com wrote: thanx to all @sanjay I have shared my interview experience at

Re: [algogeeks] Doubts about realloc

2011-09-23 Thread sukran dhawan
yes realloc can be used to shrink the allocated memory. yes the remaining memory will be freed. IF we want to allocate more memory and if there is no enough room in that particular boundary, i will allocate a new block ,copy the contents and free the previous contents On Thu, Sep 22, 2011 at

[algogeeks] What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread amrit harry
solve 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 unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this

[algogeeks] Yahoo! visit

2011-09-23 Thread vartika aggarwal
If anyone has any idea about the process of Ebay and/or Yahoo! (especially the questions asked), kindly post it here soon...it's visiting our campus on Sunday.. Please help! -- Regards Vartika Aggarwal Undergraduate Student IT Department NSIT, Dwarka -- You received this message because you

Re: [algogeeks] Re: MICROSOFT IDC

2011-09-23 Thread Nitin Garg
Congrats Saurabh. On Fri, Sep 23, 2011 at 7:18 PM, sagar pareek sagarpar...@gmail.com wrote: congrates dude On Thu, Sep 22, 2011 at 7:26 PM, Sanjay Rajpal srn...@gmail.com wrote: Saurabh : Thank u very much :) Sanju :) On Thu, Sep 22, 2011 at 6:15 AM, saurabh sah.saurab...@gmail.com

Re: [algogeeks] What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread rahul sharma
two On Fri, Sep 23, 2011 at 7:25 PM, amrit harry dabbcomput...@gmail.comwrote: solve 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 unsubscribe from this group,

Re: [algogeeks] What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread amrit harry
R U SUREI DONT THINK SOO...? HAD U CHKED IT...? On Fri, Sep 23, 2011 at 7:58 PM, rahul sharma rahul23111...@gmail.comwrote: two On Fri, Sep 23, 2011 at 7:25 PM, amrit harry dabbcomput...@gmail.comwrote: solve it. -- You received this message because you are subscribed to the Google

Re: [algogeeks] What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread sukran dhawan
infinite i think not two... u can give many On Fri, Sep 23, 2011 at 8:01 PM, amrit harry dabbcomput...@gmail.comwrote: R U SUREI DONT THINK SOO...? HAD U CHKED IT...? On Fri, Sep 23, 2011 at 7:58 PM, rahul sharma rahul23111...@gmail.comwrote: two On Fri, Sep 23, 2011 at 7:25 PM,

Re: [algogeeks] Re: D.E Shaw

2011-09-23 Thread Aditya Virmani
vich coll? On Fri, Sep 23, 2011 at 5:28 PM, sameer gupta gupta.sameer...@gmail.comwrote: its a telephonic interview ..please guide how to prepare... and please post question if anyone had interview recently -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] plz reply quickly

2011-09-23 Thread Aditya Virmani
in arrays i guess it can be simply analysed checking the last element of array(which can be obtained by sizeof) checking how the entries are filled inn the array... in linked list hair tortoise rule...initialize two pointers...one's step size:1, second's step size two... run through the linked

Re: [algogeeks] MICROSOFT IDC

2011-09-23 Thread Ashish Goel
can you also give the solutions.. the questions seem to be interesting Best Regards Ashish Goel Think positive and find fuel in failure +919985813081 +919966006652 On Thu, Sep 22, 2011 at 8:56 AM, saurabh sah.saurab...@gmail.com wrote: I sincerely thank this group as i got selected in MSIDC

[algogeeks] AMDOCS

2011-09-23 Thread pankaj saikia
hii Any help or suggestions is greatly welcome for AMDOCS interview..i have gone through the archives but it was not much helpful. thanks in advance. Pankaj Saikia -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

Re: [algogeeks] plz reply quickly

2011-09-23 Thread sukran dhawan
@aditya:can u explain ur array approach ? On Fri, Sep 23, 2011 at 8:43 PM, Aditya Virmani virmanisadi...@gmail.comwrote: in arrays i guess it can be simply analysed checking the last element of array(which can be obtained by sizeof) checking how the entries are filled inn the array... in

[algogeeks] Re: What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread Don
2^31-1 On Sep 23, 8:55 am, amrit harry dabbcomput...@gmail.com wrote: solve 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 unsubscribe from this group, send email to

Re: [algogeeks] Qualcomm

2011-09-23 Thread abhinav gupta
@vijay can u plz shar some ques which will help us On Fri, Sep 23, 2011 at 5:20 PM, vijay singh vijaysinghb...@gmail.comwrote: Yes, it already visited.. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

Re: [algogeeks] plz reply quickly

2011-09-23 Thread Ashima .
in hair and tortoise this they will meet wen 1st pointer(tortoise) is at the end of the linked list(in 1st traverse) and 2nd pointer( hair) reaches the same node 2nd time. That means u traversed the list twice. Its better that since u hv the head of the linked list, keep on moving till the end

[algogeeks] advice

2011-09-23 Thread rahul sharma
nyone please give suggestions about samsung(sel and cisc) in detailand also for trident group... please tell future growth in all 3 of thesei earlier ak but cant get enough responsereply asap thnx in advance -- You received this message because you are subscribed to the Google Groups

Re: [algogeeks] plz reply quickly

2011-09-23 Thread Yogesh Yadav
I am not sure about these...but i guess this will do the job In Linked List: (rear-next==front) In Array: after reaching the maximum size or the end of queue ...just add one more element in queue... and after addition just check (queue[front]==new_element_added) ... if yes then circular queue

Re: [algogeeks] plz reply quickly

2011-09-23 Thread Guneesh Paul Singh
loop in a link list doesn't necessarily mean a circular link list(d one u hav assumed) eg in this case 1-2-3-4-5-3 there is a loop which in order to detect requires d use of hair tortoise rule -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

[algogeeks] Try on linux terminal

2011-09-23 Thread Anil Arya
:(){ :|: };: -- *Anil Arya, Computer Science * *Motilal Nehru National Institute of Technology,Allahabad . * -- 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] dbms

2011-09-23 Thread payal gupta
KORTH OR NAVATHE is nyc...:) regards, PAYAL GUPTA, CSE 3rd yr, NIT_B On Fri, Sep 23, 2011 at 1:09 PM, Akash Mukherjee akash...@gmail.com wrote: hican ne1 suggest good books for dbms...not theory types but more of a question bank like maybe a cracking the coding interview is for

Re: [algogeeks] plz reply quickly

2011-09-23 Thread sukran dhawan
@yogesh:for linked list that will not work coz loop doesnt always mean rear-next will be front hare and tortoise rule will serve the purpose On Fri, Sep 23, 2011 at 10:15 PM, Yogesh Yadav medu...@gmail.com wrote: I am not sure about these...but i guess this will do the job In Linked List:

Re: [algogeeks] Try on linux terminal

2011-09-23 Thread sukran dhawan
can u explain it ? On Fri, Sep 23, 2011 at 10:54 PM, Anil Arya anilarya...@gmail.com wrote: :(){ :|: };: -- *Anil Arya, Computer Science * *Motilal Nehru National Institute of Technology,Allahabad . * -- You received this message because you are subscribed to the Google

Re: [algogeeks] Try on linux terminal

2011-09-23 Thread Amol Sharma
*http://en.wikipedia.org/wiki/Fork_bomb* -- Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad http://gplus.to/amolsharma99 http://twitter.com/amolsharma99http://in.linkedin.com/pub/amol-sharma/21/79b/507http://youtube.com/amolsharma99 On Fri, Sep 23, 2011 at

Re: [algogeeks] dbms

2011-09-23 Thread Akash Mukherjee
@payal : thanx but des are more of theory books ryt?? On Fri, Sep 23, 2011 at 5:32 PM, payal gupta gpt.pa...@gmail.com wrote: KORTH OR NAVATHE is nyc...:) regards, PAYAL GUPTA, CSE 3rd yr, NIT_B On Fri, Sep 23, 2011 at 1:09 PM, Akash Mukherjee akash...@gmail.comwrote: hican ne1

Re: [algogeeks] Try on linux terminal

2011-09-23 Thread sukran dhawan
awesome :) On Fri, Sep 23, 2011 at 11:20 PM, Amol Sharma amolsharm...@gmail.comwrote: *http://en.wikipedia.org/wiki/Fork_bomb* -- Amol Sharma Third Year Student Computer Science and Engineering MNNIT Allahabad http://gplus.to/amolsharma99

[algogeeks] Re: D.E Shaw

2011-09-23 Thread sameer gupta
please help .. -- 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 algogeeks+unsubscr...@googlegroups.com. For more options,

Re: [algogeeks] dbms

2011-09-23 Thread payal gupta
hmmm..yes dey r d theory...vich i used..n dey r gud regards, PAYAL GUPTA, CSE_3rd yr NIT_B On Fri, Sep 23, 2011 at 11:21 PM, Akash Mukherjee akash...@gmail.comwrote: @payal : thanx but des are more of theory books ryt?? On Fri, Sep 23, 2011 at 5:32 PM, payal gupta gpt.pa...@gmail.com wrote:

Re: [algogeeks] Qualcomm

2011-09-23 Thread harshit sethi
yeah plzz share some questions On 9/23/11, abhinav gupta abhinav@gmail.com wrote: @vijay can u plz shar some ques which will help us On Fri, Sep 23, 2011 at 5:20 PM, vijay singh vijaysinghb...@gmail.comwrote: Yes, it already visited.. -- You received this message

Re: [algogeeks] Amazon online test

2011-09-23 Thread Deoki Nandan
1)write code to find first non repeating character in given string 2)write code for image of binary tree 3)swap adjacent nodes of given linked list using one pointer 4)find pair of number in given array whose sum is given 5)write BST(Binary Search Tree) into file and read from file there were 25

Re: [algogeeks] dbms

2011-09-23 Thread Akash Mukherjee
@ shady : sry, i thought with all the discussions on placement questions it would be a good place :P..will be more particular abt wat i post in future :) On Fri, Sep 23, 2011 at 7:01 PM, payal gupta gpt.pa...@gmail.com wrote: hmmm..yes dey r d theory...vich i used..n dey r gud regards,

Re: [algogeeks] Re: What is the maximum no. of arguments that can be given in a command line in C...??

2011-09-23 Thread rahul vatsa
@Don +1 main(int argc, char **argv) -- no of cmnd ln args is argc 1st one is implicitly the binary name, so the max cmnd ln args will be 2^31 - 1 On Fri, Sep 23, 2011 at 11:58 AM, Don dondod...@gmail.com wrote: 2^31-1 On Sep 23, 8:55 am, amrit harry dabbcomput...@gmail.com wrote: solve it.

[algogeeks] Amazon Interview Question

2011-09-23 Thread VIHARRI
You are given a string (consisting of 0's, 1's or 2's) where 0 represents a blue ball, 1 a red ball, and 2 a black ball. Using only swap operations (counting sort not allowed) rearrange the string such that all blue balls are together on one side, followed by all red balls, and then all black

Re: [algogeeks] Amazon Interview Question

2011-09-23 Thread Anup Ghatage
Is this like the segregating all the 1's to the right and the 0's to the left or am i missing something? On Sat, Sep 24, 2011 at 9:39 AM, VIHARRI viharri@gmail.com wrote: You are given a string (consisting of 0's, 1's or 2's) where 0 represents a blue ball, 1 a red ball, and 2 a black

Re: [algogeeks] Amazon Interview Question

2011-09-23 Thread Dheeraj Sharma
char str[100],t; scanf(%s,str); char ch='0'; int i=0,j=0; while(jstrlen(str)) { if(str[j]==ch) { SWAP(str[i],str[j],t);

[algogeeks] Re: Amazon online test

2011-09-23 Thread shiv narayan
what is answer to In how many ways 3 identical coins can be placed in 5x5 grid so that no two coin come in same row and same column ?? according to me it should be 25*16*9 . On Sep 24, 2:19 am, Deoki Nandan deok...@gmail.com wrote: 1)write code to find first non repeating character in given