Input is crossing time list. (for example x= [1 2 5 8])
Output is the minimum time. (for original problem y_correct= 15)
Assumption 1: for this problem only four people will cross the bridge
Assumption 2: crossing times are integer
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers12
Suggested Problems
-
Return the largest number that is adjacent to a zero
5516 Solvers
-
All your base are belong to us
575 Solvers
-
Back to basics 8 - Matrix Diagonals
966 Solvers
-
Test if two numbers have the same digits
264 Solvers
-
Create a random logical vector of N elements of which M are true.
103 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!