Re:It Can Happen to You
by quelsolaar on Thursday March 04, 2021 @02:51AM
(#26339827)
This is not a complexity issue with the function. The function is linear to the input, as it should be. The problem is that the implementation does more work then it needs to (it doesn't need the length of the string). It should be linear to the end of parsing not the end of string. The complexity in this case comes from the loops calling it.
[ Parent
| on HN ]
There are no comments on this comment yet.