Problem 2704. Find Sign(Zero Crossing) Changes in Array
Solution Stats
Problem Comments
-
3 Comments
Dyuman Joshi
on 20 May 2021
Test suite updated with additional test cases
ChrisR
on 4 Nov 2021
I might be misunderstanding this problem, but I think the fourth and fifth tests have errors. The answer for the fourth should have a zero in the first position, not the second. The answer for the fifth test has no zeros at all.
Dyuman Joshi
on 4 Nov 2021
@Chris, the question asks to make the points zero where the neighbourhood elements are opposite in sign.
Solution Comments
-
1 Comment
John Hutchins
on 15 Feb 2020
More test cases are needed for this.
Problem Recent Solvers42
Suggested Problems
-
Is my wife right? Now with even more wrong husband
1288 Solvers
-
Find the sum of the elements in the "second" diagonal
1063 Solvers
-
Add a row of zeros on top of a matrix
216 Solvers
-
9028 Solvers
-
2827 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!