so the code is not very readable, it might well had been:
Start.X = str1[0] - 'A'; Start.Y = str1[1] - '0';
...
it was to convert from ASCII code to number indexes.

8-)



On Mon, Dec 17, 2012 at 5:01 PM, karthikeyan balamurugan
<sbk...@gmail.com>wrote:

> Start.X = str1[0]-97; Start.Y = str1[1]-49;
> End.X   = str2[0]-97; End.Y   = str2[1]-49;
> Distances.clear();
> Guys I did't understand what this statement works in Knight move problem?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To post to this group, send email to google-code@googlegroups.com.
> To unsubscribe from this group, send email to
> google-code+unsubscr...@googlegroups.com.
> 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 google-code@googlegroups.com.
To unsubscribe from this group, send email to 
google-code+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to