Skip to content

Commit 66e7dec

Browse files
authored
Update count-of-substrings-containing-every-vowel-and-k-consonants-i.cpp
1 parent 10a30ba commit 66e7dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/count-of-substrings-containing-every-vowel-and-k-consonants-i.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Time: O(n)
22
// Space: O(1)
33

4-
// two pointers, sliding window
4+
// two pointers, sliding window, freq table
55
class Solution {
66
public:
77
int countOfSubstrings(string word, int k) {
@@ -48,7 +48,7 @@ class Solution {
4848

4949
// Time: O(n)
5050
// Space: O(1)
51-
// two pointers, sliding window
51+
// two pointers, sliding window, freq table
5252
class Solution2 {
5353
public:
5454
int countOfSubstrings(string word, int k) {

0 commit comments

Comments
 (0)