---
title: "Dhayal Ram (@dhayalram) | Hashnode"
description: "Learn, Teach and Grow. Read the latest articles by Dhayal Ram on Hashnode."
url: "https://hashnode.com/@dhayalram"
---

@dhayalram

# Dhayal Ram

@dhayalram · Joined July 2022

Learn, Teach and Grow

### [1\. Two Sum](https://dhayalram.hashnode.dev/1-two-sum?utm_source=hashnode&utm_medium=feed)

Learn how to solve the Two Sum Problem in Java using a hash table. This article covers the approach, code implementation, and complexity analysis.

May 11, 2023 · 3 min read [dhayalram.hashnode.dev](https://dhayalram.hashnode.dev/1-two-sum?utm_source=hashnode&utm_medium=feed)

### [Leetcode - 1372. Longest ZigZag Path in a Binary Tree](https://dhayalram.hashnode.dev/leetcode-1372-longest-zigzag-path-in-a-binary-tree?utm_source=hashnode&utm_medium=feed)

Question / Problem: Leetcode Solution class Solution { int find(TreeNode root, int isLeft, int count){ if(root == null) return count; if(isLeft == 1) return Math.max(find(root.right,0,count+1), find(root.left,1,0)); ...

Apr 19, 2023 · 1 min read [dhayalram.hashnode.dev](https://dhayalram.hashnode.dev/leetcode-1372-longest-zigzag-path-in-a-binary-tree?utm_source=hashnode&utm_medium=feed)

### [Daily Learning - Day 1](https://dhayalram.hashnode.dev/daily-learning-day-1?utm_source=hashnode&utm_medium=feed)

Badges Earned AWS Educate Getting Started with Storage \[Credly Link\] AWS Educate Getting Started with Compute \[Credly Link\] Leetcode Merge Strings Alternately (Solution) Freecodecamp Relational Database (Beta) - Chapter 2 out of 14 Completed ...

Apr 18, 2023 · 1 min read [dhayalram.hashnode.dev](https://dhayalram.hashnode.dev/daily-learning-day-1?utm_source=hashnode&utm_medium=feed)

### [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 < ...

Apr 18, 2023 · 1 min read [dhayalram.hashnode.dev](https://dhayalram.hashnode.dev/leetcode-1768-merge-strings-alternately?utm_source=hashnode&utm_medium=feed)
