[algogeeks] Re: probability question

2011-08-31 Thread Abhishek Mallick
0.8

On Aug 31, 6:37 pm, 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?

-- 
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] Re: memory allocation

2011-08-31 Thread Abhishek Mallick
heap memory is allocated using new/malloc. memory from stack is
allocated for local variables/objects for a function.
Correct me if I am wrong.

On Aug 31, 6:37 pm, ravi maggon maggonr...@gmail.com wrote:
 What memory is allocated to a function, to a variable, to a object created
 at run time using new or malloc and to a function containing a object with
 run time memory allocation.

 --

 Regards
 Ravi Maggon
 Final Year, B.E. CSE
 Thapar University

-- 
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] Interview Question

2011-04-07 Thread Abhishek Mallick
@ your name last name : please read the question carefully.
*
*
*
*
On Fri, Apr 8, 2011 at 12:11 AM, your name last name ac08...@gmail.comwrote:

 Moving the data is unnecessary if in case the whole pointer shifting is
 meant for the entire node and not for individual elements of the node.
 temp -next = ( temp - next ) - next

 the above statement is more than enough to remove the midlle node from the
 list...



  --
 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.