Skip to content

Commit e9ee13f

Browse files
authored
Update number-of-ways-to-form-a-target-string-given-a-dictionary.cpp
1 parent 3385303 commit e9ee13f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/number-of-ways-to-form-a-target-string-given-a-dictionary.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Time: O(l * (w + n))
1+
// Time: O(l * (w + n)), l is the length of a word, w is the number of words, n is the length of target
22
// Space: O(n)
33

44
// optimized from Solution2
@@ -22,7 +22,7 @@ class Solution {
2222
}
2323
};
2424

25-
// Time: O(l * (w + n))
25+
// Time: O(l * (w + n)), l is the length of a word, w is the number of words, n is the length of target
2626
// Space: O(n)
2727
class Solution2 {
2828
public:

0 commit comments

Comments
 (0)