8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcbf01 commit 42a6b11Copy full SHA for 42a6b11
src/main/java/com/fishercoder/solutions/_1768.java
@@ -4,7 +4,8 @@ public class _1768 {
4
public static class Solution1 {
5
public String mergeAlternately(String word1, String word2) {
6
StringBuilder sb = new StringBuilder();
7
- int i = 0, j = 0;
+ int i = 0;
8
+ int j = 0;
9
for (; i < word1.length() && j < word2.length(); ) {
10
sb.append(word1.charAt(i++));
11
sb.append(word2.charAt(j++));
0 commit comments