4 ms·
This requires two passes over the data via scanr/scanl though. I wonder how this can be unified to one only.
by quchen 13y ago
This requires two passes over the data via scanr/scanl though. I wonder how this can be unified to one only.
- danidiaz 13y agoHere's my attempt at a one-pass solution: http://productivedetour.blogspot.com.es/2013/11/my-version-of-twitter-waterflow-problem.html http://productivedetour.blogspot.com.es/2013/11/my-version-o...