Re: [algogeeks] Data Structures
@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- Piyush Agarwal Final Year Undergraduate Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
[algogeeks] plz xplain the o/p
#includestdio.hvoid swap(char *, char *); int main() { char *pstr[2] = {Hello, piyush}; swap(pstr[0], pstr[1]); printf(%s\n%s, pstr[0], pstr[1]); return 0; }void swap(char *t1, char *t2) { char *t; t=t1; t1=t2; t2=t; } -- Piyush Agarwal Final Year Undergraduate Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: probability question
Take it simple silly ... for each 10 min interval, if man comes in first 2 min, he'll catch the 1st train, if he comes in next 8 min, he'll catch the 2nd train. hence for harbor line - (2/10) 0.2 and for main line 0.8. On Wed, Aug 31, 2011 at 10:37 PM, ravi rravi...@gmail.com wrote: A man goes to the station every day to catch the first train that comes ?? = man catches the first train that comes after him On Wed, Aug 31, 2011 at 10:30 PM, Dave dave_and_da...@juno.com wrote: @Ankul: According to the problem statement, the first train is the one that arrives at 5:00 a.m. Dave On Aug 31, 11:26 pm, Ankuj Gupta ankuj2...@gmail.com wrote: I could not get it. What does first train mean here? On Sep 1, 1:08 am, Don dondod...@gmail.com wrote: Assuming that the man arrives at a random time during the 24-hour day, there are 228 minutes in the day when the next train will be the harbour line (2 minutes of every 10 for 19 hours). For the other 1212 minutes the main line will be the next train. Therefore, the probability of catching the main line train is 0.841666... Don On Aug 31, 8:37 am, swetha rahul swetharahu...@gmail.com wrote: In a railway station, there are two trains going. One in the harbour line and one in the main line, each having a frequency of 10 minutes. The main line service starts at 5 o'clock and the harbour line starts at 5.02A.M. A man goes to the station every day to catch the first train that comes.What is the probability of the man catching the first train?- Hide quoted text - - Show quoted text - -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- -- Ravi Ramadasu | Computer Science and Engineering, IIT Bombay | rravi...@gmail.com | +919757074652 -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- Piyush Agarwal Final Year Undergraduate Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Re: memory allocation question
no. of rows is 3 size of (*p) is 12 then how can 48 be the no. of bytes ?? On Sat, Sep 3, 2011 at 8:32 AM, Deepak Garg deepakgarg...@gmail.com wrote: +1 On Sat, Sep 3, 2011 at 8:57 PM, Ankuj Gupta ankuj2...@gmail.com wrote: p is a pointer to an array of 4 integers. So when you do (int(*) [col])malloc(row*sizeof(*p)) total of 48 bytes is allocated as sizeof(*p) is 12 bytes. On Sep 3, 4:14 pm, rohit rajuljain...@gmail.com wrote: how many bytes are allocated by following code? #includealloc.h #define col 4 #define row 3 int main() { int(*p)[col]; p=(int(*)[col])malloc(row*sizeof(*p)); return 0; } please explain answer? -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- U.D.I.T Sent by Nokia OVI (c) -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- Piyush Agarwal Final Year Undergraduate Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Deloite
Anshul is just Faking you there was no sectional cut-off. and yeah cut-off was around 35/40. level of questions was like a mini cat paper... On Thu, Aug 25, 2011 at 12:42 PM, Anshul Khandelwal anshul.dans1...@gmail.com wrote: 30 ques. of simple aptitude. 10 question of verbal(including 5 ques. of a passage) sectional cut off is der. On Thu, Aug 25, 2011 at 12:37 PM, manoj manojbag...@gmail.com wrote: Hi guys those Who have taken the deloite test paper, pls share the type of questions asked in the test. -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- ANSHUL KHANDELWAL B.TECH. 4th yr. Computer Engineering Malaviya National Institute Of Technology, Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- Piyush Agarwal Final Year Undergraduate Student Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.
Re: [algogeeks] Deloite
in verbal there was a passage..and 5 questions were related to that. after that 5 questions were of antonym synonym and word meaning On Thu, Aug 25, 2011 at 12:47 PM, Manoj Bagari manojbag...@gmail.comwrote: thax ansul for helping! :) can u just describe more about the verbal section i mean the type n level of the questions asked , On Thu, Aug 25, 2011 at 12:42 PM, Anshul Khandelwal anshul.dans1...@gmail.com wrote: 30 ques. of simple aptitude. 10 question of verbal(including 5 ques. of a passage) sectional cut off is der. On Thu, Aug 25, 2011 at 12:37 PM, manoj manojbag...@gmail.com wrote: Hi guys those Who have taken the deloite test paper, pls share the type of questions asked in the test. -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- ANSHUL KHANDELWAL B.TECH. 4th yr. Computer Engineering Malaviya National Institute Of Technology, Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- 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 group at http://groups.google.com/group/algogeeks?hl=en. -- Piyush Agarwal Final Year Undergraduate Student Department of Computer Engineering Malaviya National Institute of Technology Jaipur -- 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 group at http://groups.google.com/group/algogeeks?hl=en.