this post was submitted on 19 Oct 2023
1108 points (100.0% liked)

196

16484 readers
1802 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
[–] darcy@sh.itjust.works 42 points 1 year ago (1 children)

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