Simple..This two arrays are used to give directions.For i=0 you are telling
it to move one position up.(x is incremented by 0 and y by 1) simlarly at
i=1 to south , i=2 east and i=3 west
On Saturday, August 4, 2012, Tejeshwar Singh wrote:
> Can you please put the code where you saw this?? I want to know more about
> this technique, Thanks.
>
> On Friday, June 29, 2012 12:50:38 AM UTC+5:30, Registered user wrote:
>>
>>
>>
>> final int[] mx = {0, 0, 1, -1};
>> final int[] my = {1, -1, 0, 0};
>>
>> i found the above line of code, in many solution that was related to
>> matrix (NxM). but i could not understand how it is being used. can any one
>> explain a bit. or give any link reference where i can find some short of
>> explanation related to this.
>> half thanks in advance and the other half after answering....
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To post to this group, send email to
> [email protected]<javascript:_e({}, 'cvml',
> '[email protected]');>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:_e({}, 'cvml',
> 'google-code%[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-code/-/qk3Pl2oSZFcJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.