Skip to content

Commit 8efcb4f

Browse files
committed
Fix: Encode and Decode
- Big-O analysis
1 parent 6b3f60e commit 8efcb4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encode-and-decode-strings/flynn.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Let's say sum of lengths of given strings N, and the length of the longest string M
2+
* For the number of given strings N, and the length of the longest string M,
33
*
44
* Encode
55
* - Time complexity: O(N)
66
* - Space complexity: O(1)
77
*
88
* Decode
9-
* - Time complexity: O(N)
9+
* - Time complexity: O(NM)
1010
* - Space complexity: O(M)
1111
*/
1212

0 commit comments

Comments
 (0)