You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a copy of list in unfold function. It leads to O(len(remains)) time complexity for this operation. And due to being inside while remainder > 0 this gains O(n^2) time complexity for the whole implementation (e.g. for "aaaaab").
The text was updated successfully, but these errors were encountered:
There is a copy of list in unfold function. It leads to
O(len(remains))
time complexity for this operation. And due to being insidewhile remainder > 0
this gains O(n^2) time complexity for the whole implementation (e.g. for"aaaaab"
).The text was updated successfully, but these errors were encountered: