Skip to content

Commit

Permalink
Added comment for Time Complexity with more than one var
Browse files Browse the repository at this point in the history
  • Loading branch information
Srihari2222 committed Oct 3, 2024
1 parent 36b5f5c commit 47ce740
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion articles/anagram-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public class Solution {
* Time complexity: $O(m * n \log n)$
* Space complexity: $O(m * n)$

> Where $m$ is the number of strings and $n$ is the length of the longest string.

---

## 2. Hash Table
Expand Down Expand Up @@ -202,4 +204,6 @@ public class Solution {
### Time & Space Complexity

* Time complexity: $O(m * n)$
* Space complexity: $O(m)$
* Space complexity: $O(m)$

> Where $m$ is the number of strings and $n$ is the length of the longest string.

0 comments on commit 47ce740

Please sign in to comment.