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 284f324 commit 380ebddCopy full SHA for 380ebdd
encode-and-decode-strings/samthekorean.py
@@ -4,7 +4,7 @@ class Solution:
4
@return: encodes a list of strings to a single string.
5
"""
6
7
- # TC : O(n*m) where n is the length of strings in strs. m is the average length of the strings
+ # TC : O(n) where n is the combined length of the string in the list of strings.
8
# SC : O(S), where S is the sum of the lengths of all strings in strs
9
def encode(self, strs):
10
res = ""
0 commit comments