|
|
|
|
|
by anonymoushn
385 days ago
|
|
No, the segmentation algorithm you have implemented has runtime O(N*L^2). In particular, if you want to do a hash table lookup using a string key, that takes time proportional to the length of the string, not constant time. |
|