Skip to content

Commit f3747fd

Browse files
authored
Update split-a-string-into-the-max-number-of-unique-substrings.cpp
1 parent 253e909 commit f3747fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/split-a-string-into-the-max-number-of-unique-substrings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Solution {
1919
if ((mask & base) || base == 0) {
2020
if (!lookup.emplace(curr).second) {
2121
unique = false;
22-
mask = base ? (mask | (base - 1)) + 1 : mask + 1; // pruning
22+
mask = base ? (mask | (base - 1)) + 1 : mask + 1; // pruning, try next mask without base
2323
break;
2424
}
2525
curr.clear();

0 commit comments

Comments
 (0)