Okay it isn't even out yet, I'm sure it will be great, and the elves are in trouble, etc. I'm just beating you all to the bunch so I can tell you to explain your answers, we care about ALGORITHMIC COMPLEXITY now. What's the fastest and most efficient way to do it.
heymoon wtf is a big o
This is O(n)
x = REALLY_BIG_NUMBER
for i in range(x):
process(i)
This is O(n^2)
x = REALLY_BIG_NUMBER
for i in range(x):
for j in range(x)
process(i,j)
There's more to it but that's the quick version. Also there are things like O(log(n)) (based), O(a^n) (cringe), and O(n!) (advanced cringe).
Okay, post ur code too but explain why its cool or no one will read it. I'll pin my favorite answers, other mods also do this
Jump in the discussion.
No email address required.
Got global leaderboard #43 for both stars today In celebration, I'm not bothering to clean this up before posting it. Apparently this is what global leaderboard code looks like. Yes, I literally copy-paste Part A to Part B and there's an entirely unused
sig_strength
in the latter.Jump in the discussion.
No email address required.
no ai generation?
Jump in the discussion.
No email address required.
More options
Context
what is the purpose of defining a class for your answer i dont understand
Jump in the discussion.
No email address required.
i think (and i've been doing a similar thing) what snekky's doing is using it to parse data is a standard format.
like for example mine has a
get_data()
thing that automatically downloads the input dataJump in the discussion.
No email address required.
More options
Context
More options
Context
Jump in the discussion.
No email address required.
More options
Context
More options
Context