4 ms·
Interesting, but I guess I'd have to learn APL or J to compare. Without understanding what those symbols mean, it seems much less like "math" than the numpy ver
by mgraczyk 4y ago
Interesting, but I guess I'd have to learn APL or J to compare. Without understanding what those symbols mean, it seems much less like "math" than the numpy version.
1 + np.min(np.argwhere(running_sum[1:] == 0), axis=0)