On Fri, Jan 7, 2022 at 3:56 PM Stefan Baumann <ste...@bstr.at> wrote:
> Solved part 1 similarly. For part 2 I calculated all ocean trench
> coordinates t and all possible initial velocities i - so that the target is
> reached and not overshot - as well as the list of steps s - up to the
> maximum reached with the highest shot from part 1.
> Then just test if the parabola coordinates - calculated with verb pc -
> intersect with t. J session follows:

That sounds like a good (straightforward) approach.

Better than my attempt to optimize the number of tests.

Thanks,

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

Reply via email to