Skip to content

Commit 0f722a6

Browse files
authored
Update shortest-way-to-form-string.cpp
1 parent f189a7d commit 0f722a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

C++/shortest-way-to-form-string.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Solution {
1212
find_char_next_pos[source[i] - 'a'] = i + 1;
1313
lookup[i] = find_char_next_pos;
1414
}
15+
1516
int result = 1, start = 0;
1617
for (const auto& c : target) {
1718
start = lookup[start][c - 'a'];

0 commit comments

Comments
 (0)