Page 1 of 1

972 - Horizon Line

Posted: Wed Aug 01, 2007 3:41 am
by baodog
Hi,

I simply compute h at points specified for f and g, and
take the minimum (see simple code below). Is there anything wrong with this approach? Any test inputs/outputs are really appreciated.
Thanks.

Code: Select all

Fixed Issue
Had issue near boundary ... fixed.

Re: 972 - Horizon Line

Posted: Fri Feb 06, 2009 9:38 pm
by greve
The inputs you have provided are a bit misleading because they are not valid according to the problem statement.

Re: 972 - Horizon Line

Posted: Tue Dec 03, 2013 2:46 am
by brianfry713
You need to stop your code when you've read the last N from the input.