life is too short for a diary

You are given a **0-indexed** binary array `nums` of length `n`. `nums` can be divided at index `i` (where `0 <= i <= n`) into two arrays (possibly empty) nums_{left} and nums_{right}..

Continue reading → leetcode hashmap array java python