2022-4: In the Long One...
Write code that:
- takes an argument that is a Boolean scalar or vector.
- returns the length of the longest sequence of consecutive 1s.
Examples
Implementation
You can also run the tests via ⌘/shift + enter