On 10/18/07, mukesh tiwari <[EMAIL PROTECTED]> wrote:
>
>
> 21      22      23      24      25      26
> 20      7       8       9       10
> 19      6       1       2       11
> 18      5       4       3       12
> 17      16      15      14      13
>
> let the coordinate of 1 is (0,0) ie origin  then coordinate of 11
> will
> be (2,0) and so on .
> now my problem is if i give coordiante (2,-1) then my program should
> return 12 .


well,  why are considering 1's co-ord as (0,0) ?
I didn't have a look at the original problem , but this looks like a moving
window function (w) . and your window length happens to be 5 (b) .

-V

-- 
Blog @ http://blizzardzblogs.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to