top | item 46690859 (no title) dgrunwald | 1 month ago That loop isn't N²: if there are long sequences of dashes, every iteration will cut the lengths of those sequences in half. So the loop has at most lg(N) iterations, for a O(N*lg(N)) total runtime. discuss order hn newest No comments yet.
No comments yet.