Skip to content

Commit

Permalink
update 833 java
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Nov 18, 2024
1 parent 84e7a26 commit d2771b5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public String findReplaceString_0_1(String s, int[] indices, String[] sources, S
*
* update index with replacement string length
*
* -> NOTE !!! we use "source" length (with replacementIndex)
* (but NOT target length)
*/
i += sources[replacementIndex].length(); // Skip the replaced substring
} else {
Expand Down

0 comments on commit d2771b5

Please sign in to comment.