Skip to content

Instantly share code, notes, and snippets.

Florian Klien flowolf

Block or report user

Report or block flowolf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:de4374e697a2cb94f15b
### Keybase proof
I hereby claim:
* I am flowolf on github.
* I am flowolf (https://keybase.io/flowolf) on keybase.
* I have a public key whose fingerprint is 82CB C28E 4125 ABF9 DB0C 0E07 0167 D15E 878D 8361
To claim this, I am signing this object:
@flowolf
flowolf / gist:7247585
Last active Dec 27, 2015
simple python solution to puddle problem found here: http://qandwhat.apps.runkite.com/i-failed-a-twitter-interview/
View gist:7247585
# Python solution to the puddle problem
# from: http://qandwhat.apps.runkite.com/i-failed-a-twitter-interview/
#
# single pass, streaming capable. O(n), memory as much as wall size.
#
def calc_vol(a):
vol = 0
count = [0]
maxi = 0
last = 0
You can’t perform that action at this time.