Skip to content

Conversation

ikeyan
Copy link

@ikeyan ikeyan commented Sep 12, 2020

format()関数のeditsを適用する計算量が、およそO(ソース文字列.length × edits.length)になっていたので、O(ソース文字列.length + edits.length * log(edits.length)) になるように変更しました。

@EduApps-CDG
Copy link

EduApps-CDG commented Oct 18, 2022

Translation:
Title:

Improved time complexity of format()

Message:

The computational complexity of applying the format() function's edits was
O(source string.length × edits.length),
changed to O(source string.length + edits.length * log(edits.length) )

Copy link

@EduApps-CDG EduApps-CDG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As i'm also having troubles with format() command.

But I still need to check what's causing a memory leak inside that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants