Yes, I suppose so.  Your examples do kill it!

I was misled by getting the "right" answers to both parts - strange.

I had also been thinking along the same lines as Brian - should

have persevered.

Ah well....,

Thanks,

M



On 12/12/2017 16:34, Raul Miller wrote:
Unfortunately, this is solving the wrong problem - need to count
steps, not measure distance.

In other words, these two examples wind up in the same location and
should give the same answers (18 for the steps to reach that location
and for the furthest number of steps to reach that location):

ex1=:10 8 2#;:'se ne s'
ex2=:12 6 #;:'se ne'

FYI,



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to