Test suite updated with additional test cases
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.
@Chris, the question asks to make the points zero where the neighbourhood elements are opposite in sign.
More test cases are needed for this.
Remove all the consonants
Back to basics 5 - Clipboard
Find the treasures in MATLAB Central and discover how the community can help you!
Select a Web
Choose a web site to get translated content where available and see local events and
offers. Based on
your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country
sites are not optimized for visits from your location.
Contact your local office