miniblog.
← Back to all posts
Mar 5, 2013 at 15:10
['Fizz'*(not i%3) + 'Buzz'*(not i%5) or i for i in range(1, 100)]
Wilfred Hughes
Related Posts
Mar 14, 2023 at 15:43
Apparently FizzBuzz is a spelling used by programmers, and it's "Fizz Buzz" in other contexts:
https://en.wikipedia.org/wiki/Fizz_buzz
Perhaps programmers favour camel case more often?
Fizz buzz - Wikipedia
en.wikipedia.org/wiki/Fizz_buzz
Wilfred Hughes
Shared words: Fizz, Buzz Score: 99
Sep 15, 2018 at 00:16
The complexity of USB C, with a diverse range of features supported (or not) by different cables that can't be visually distinguished:
https://www.extremetech.com/computing/257684-usb-c-chasing-unachievable-goal
Wilfred Hughes
Shared words: not, range Score: 15.9
Dec 1, 2017 at 20:08
Whilst Java's ArrayList overallocates by 50%:
https://stackoverflow.com/a/14129344/509706
I'm surprised to learn that Python only overallocates lists by ~12.5%:
https://github.com/python/cpython/blob/3.6/Objects/listobject.c#L49
I was not expecting such a range of values!
java - ArrayList: how does the size increase? - Stack Overflow
cpython/Objects/listobject.c at 3.6 · python/cpython
The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Wilfred Hughes
Shared words: not, range Score: 15.9