Problem 61114. Odd Run Sums

Given a row vector x of integers, find every maximal run of consecutive odd numbers and return a row vector containing the sum of each run in order of appearance.

Solution Stats

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Dec 08, 2025

Solution Comments

Show comments

Problem Recent Solvers1

Suggested Problems

More from this Author4

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!