[algogeeks] Scheduling Algo

2013-05-02 Thread amarkrdubedy
Design a scheduler to run many functions at different times. It needs to (obviously) be thread-safe. Each task which is scheduled to run will have a time stamp, containing a desired execution time, a function pointer (containing the desired function). Also, find a way to supply the arguments

[algogeeks] Re: Spiral Movement Google Question

2013-04-28 Thread amarkrdubedy
The answer will depend on the size of the matrix.. right? On Saturday, April 27, 2013 8:22:00 PM UTC+5:30, ASK wrote: Hi all, I was asked this question in Amazon interview. There is a matrix suppose(3x4). And I traverse through each position only once in spiral movement like (0,0),(0,1),