Skip to content

Commit

Permalink
slice: improve docs on space/time complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Feb 18, 2024
1 parent a0b22fa commit 59ea0e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slice/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ func (e Edit) String() string {
// EditScript computes a minimal-length sequence of Edit operations that will
// transform lhs into rhs. The result is empty if lhs == rhs.
//
// This implementation takes O(mn) time and O(min(m, n)) space to compute a
// longest common subsequence, plus overhead of O(m+n) to construct the edit
// sequence from the LCS.
// This implementation takes O(mn) time and O(min(m, n)) space to compute a
// longest common subsequence, plus overhead of O(m+n) time and space to
// construct the edit sequence from the LCS.
//
// An edit sequence is processed in order starting at offset 0 of lhs. Items
// are sent to the output according to the following rules.
Expand Down

0 comments on commit 59ea0e2

Please sign in to comment.