Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
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. ...
Gao's user avatar
  • 1,140
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: ...
Lipis's user avatar
  • 182
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 ...
Aseem Bansal's user avatar
  • 2,339
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 ...
Simon Bergot's user avatar