All Questions
4 questions
3
votes
1
answer
147
views
General unit tested solution to Project Euler Problem 8: Largest product in a series
Project Euler Problem 8
The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832.
...
8
votes
6
answers
996
views
Is it possible to optimize the following boolean checks?
The following code works and it prints out only True as it is supposed to, for all the different cases:
...
8
votes
1
answer
1k
views
Timing analysis of many test cases in Python
I am learning about timing analysis in Python. I used time module before it was pointed out that timeit module would be better ...
5
votes
1
answer
221
views
Faster tests with dependency analysis
I have a performance issue causing test->code->test cycle to be really slow. The slowness is hard to avoid, since I am doing some heavy image processing, and I am trying to accelerate things a bit by ...