Skip to content

Commit 7a6051c

Browse files
authored
Update is-anagram.md
1 parent 4096598 commit 7a6051c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/is-anagram.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ class Solution {
271271
### Time & Space Complexity
272272

273273
* Time complexity: $O(n + m)$
274-
* Space complexity: $O(1)$
274+
* Space complexity: $O(1)$ since we have at most 26 different characters.
275275

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$.
277277
278278
---
279279

@@ -439,6 +439,6 @@ class Solution {
439439
### Time & Space Complexity
440440

441441
* Time complexity: $O(n + m)$
442-
* Space complexity: $O(1)$
442+
* Space complexity: $O(1)$ since we have at most 26 different characters.
443443

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$.

0 commit comments

Comments
 (0)