Problem 115. Distance walked 1D
Solution Stats
Problem Comments
-
11 Comments
Amitava, can you give a clearer idea of what your function inputs and outputs should look like?
If you leave one test the solution is simply 9. As is this submission is very poor.
Needs generalization and a larger test suite.
This is a pretty good idea for a problem but it's *very* poorly stated.
I cleaned up the problem statement and added a few more tests.
good idea...
Very good problem. I had to solve the same one to determine whether a signal was oscillating or stable.
Interesting problem
nice problem
nice...
Great problem!
Solution Comments
Show commentsProblem Recent Solvers2423
Suggested Problems
-
Find the sum of all the numbers of the input vector
44307 Solvers
-
Number of 1s in the Binary Representation of a Number
426 Solvers
-
Return elements unique to either input
746 Solvers
-
6845 Solvers
-
268 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!