Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Just wait for this guy to solve everything in < 9ms.
For day 17, check out my solutions. It's mostly for high dimensions, but I think that for dimensions 3 and 4 it's also much faster than yours.
Oh yeah, it's little less than 1s with PyPy (I talked about how I tried optimizing it in my walkthrough), which is still pretty slow if you ask me. However the slowest day for me was day 24 :( couldn't do much about it, takes 2s even with PyPy (suggestions for improvement welcome).
Here is my code for day 11 which runs in 8ms: Link