© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
j
stuff ;)
just use a lookup hashmap instead of O(n²) create the table while you're iterating trough the array. it will get you down to O(n).
THE GEEQ
Coder. Hacker. Developer. Learner.
Thanks for the answer... I'll try it.