We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b3f60e commit 8efcb4fCopy full SHA for 8efcb4f
encode-and-decode-strings/flynn.cpp
@@ -1,12 +1,12 @@
1
/**
2
- * Let's say sum of lengths of given strings N, and the length of the longest string M
+ * For the number of given strings N, and the length of the longest string M,
3
*
4
* Encode
5
* - Time complexity: O(N)
6
* - Space complexity: O(1)
7
8
* Decode
9
- * - Time complexity: O(N)
+ * - Time complexity: O(NM)
10
* - Space complexity: O(M)
11
*/
12
0 commit comments