Skip to content

Commit d8369db

Browse files
authored
Update letter-tile-possibilities.cpp
1 parent 72822aa commit d8369db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C++/letter-tile-possibilities.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ class Solution2 {
5656
for (const auto& c : tiles) {
5757
++count[c];
5858
}
59-
return dfs(&count);
59+
return backtracking(&count);
6060
}
6161

6262
private:
63-
int dfs(unordered_map<char,int> *count) {
63+
int backtracking(unordered_map<char,int> *count) {
6464
int total = 0;
6565
for (auto& c : *count) {
6666
if (c.second) {
6767
--c.second;
68-
total += 1 + dfs(count);
68+
total += 1 + backtracking(count);
6969
++c.second;
7070
}
7171
}

0 commit comments

Comments
 (0)