---
title: "Discussion on \"Leetcode - 1768. Merge Strings Alternately\" | Hashnode"
description: "Discussion on \"Leetcode - 1768. Merge Strings Alternately\". Question / Problem: Leetcode\nSolution\nclass Solution {\n    public String mergeAlternately(String word1, String word2) {\n        int m = word1.length(), n = word2.length(), i = 0;\n        StringBuilder result = new StringBuilder();\n\n        while(i < ..."
url: "https://hashnode.com/posts/leetcode-1768-merge-strings-alternately/643e32efa150c80bf52e1043"
---

[Feed](https://hashnode.com/feed) /

Discussion

[Dhayal Ram](https://hashnode.com/@dhayalram)

Learn, Teach and Grow

Apr 18, 2023

# [Leetcode - 1768. Merge Strings Alternately](https://dhayalram.hashnode.dev/leetcode-1768-merge-strings-alternately?utm_source=hashnode&utm_medium=feed)

Question / Problem: Leetcode Solution class Solution { public String mergeAlternately(String word1, String word2) { int m = word1.length(), n = word2.length(), i = 0; StringBuilder result = new StringBuilder(); while(i < ...

dhayalram.hashnode.dev 1 min read

[#leetcode](https://hashnode.com/tag/leetcode) [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
