Problem 729. Flag largest magnitude swings as they occur
Solution Stats
Problem Comments
-
3 Comments
The phrasing might be a bit ambiguous, as magnitude swing could also be thought of as delta(i-1)-delta(i) instead of just delta(i). Nonetheless fun problem!
Nice question.
Nice problem
Solution Comments
-
1 Comment
Flawed solution; fails (for example) when 0
-
1 Comment
Officially not correct because it assumes that the first entry of x is 1, which is true for all testcases
-
1 Comment
Flawed solution; fails when delta(1)<0, or when 0
-
1 Comment
This is genius lololol
-
1 Comment
great solution Gwendolyn
-
1 Comment
Very nice the construct to avoid (for example) meshgrid!!
also the use of 'minus' to avois the use of double(...)-double(...)
Very interesting!
J.R.!
Problem Recent Solvers649
Suggested Problems
-
Program an exclusive OR operation with logical operators
690 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
339 Solvers
-
264 Solvers
-
Convert given decimal number to binary number.
1481 Solvers
-
Calculate Amount of Cake Frosting
17691 Solvers
More from this Author51
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!