how to find subarray? #3386
-
Given the array
to find all subarrays that start and end with 0 and must contain non-zero numbers in between. Return the start and end indices of these subarrays. |
Beta Was this translation helpful? Give feedback.
Answered by
bunglegrind
Jun 18, 2023
Replies: 1 comment
-
quick and dirty
I suppose a better solution is achievable by employing transducers |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
WingDust
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
quick and dirty
REPL
I suppose a better solution is achievable by employing transducers