The problem says the input is a positive integer but the first test inputs 0. In my code that caused r = 0/0 error. Please change the wording to "input is non-negative".
Given a window, how many subsets of a vector sum positive
753 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
552 Solvers
492 Solvers
Simple equation: Annual salary
3798 Solvers
1173 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!