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

196

16238 readers
1883 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 11 months ago (1 children)

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