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
-
1 Comment
i solved it but its size is 62
-
1 Comment
Nice Problem
-
1 Comment
This user (mohamed elbesealy) appears to have gamed the system, with fraudulent "likes" of this unremarkable solution submitted by 'sock-puppet' accounts. —DIV
-
2 Comments
This gives expected results, but still not accepted. wht is the issue. pls comment
Your function is named abc--the test suite wants it to be named your_fcn_name.
-
2 Comments
What's the wrong with this solution? It works perfectly on the Matlab R2015b.
sumabs is a function from Neural Network Toolbox which is not supported in Cody.
-
1 Comment
what is the wrong in my solution?
-
2 Comments
What is the problem with this solution? It works on matlab
The test suite expects the function's name to be 'your_fcn_name', instead of distanceWalked. (Which would have been a much more sensible name.)
-
2 Comments
-
1 Comment
This is not a solution.
-
1 Comment
sumabs()
Problem Recent Solvers2391
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1381 Solvers
-
Find the largest value in the 3D matrix
1374 Solvers
-
Getting the indices from a matrix
576 Solvers
-
6962 Solvers
-
Find the Oldest Person in a Room
12913 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!