this post was submitted on 19 Oct 2023
1099 points (99.2% liked)

196

16591 readers
2500 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 1 year ago (1 children)

its O(n^2), but better than O(n) for small values of n