File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,9 @@ class Solution {
271
271
### Time & Space Complexity
272
272
273
273
* Time complexity: $O(n + m)$
274
- * Space complexity: $O(1)$
274
+ * Space complexity: $O(1)$ since we have at most 26 different characters.
275
275
276
- > Where $n$ is the length of string $s$ and $m$ is the length of string $t$.
276
+ > Where $n$ is the length of string $s$ and $m$ is the length of string $t$.
277
277
278
278
---
279
279
@@ -439,6 +439,6 @@ class Solution {
439
439
### Time & Space Complexity
440
440
441
441
* Time complexity: $O(n + m)$
442
- * Space complexity: $O(1)$
442
+ * Space complexity: $O(1)$ since we have at most 26 different characters.
443
443
444
- > Where $n$ is the length of string $s$ and $m$ is the length of string $t$.
444
+ > Where $n$ is the length of string $s$ and $m$ is the length of string $t$.
You can’t perform that action at this time.
0 commit comments