Is there a reference, that I can use, for predicting high/low tide from the water line height? I don't want to construct a solution based on the test suite data.
We can use derivatives for predicting the high tide (diff) when we can assume that a function is increasing or decreasing (even with some noise).
I would love to see some better solutions than my cheat!
what about tide=A(1)<10 !
Lots of ways to get the right answer for this test suite...but I think this is one of the silliest.
Return the 3n+1 sequence for n
6205 Solvers
Return a list sorted by number of occurrences
1514 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
864 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1032 Solvers
Return the first and last characters of a character array
3652 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!