DRDhayal Ramindhayalram.hashnode.dev·May 11, 2023 · 3 min read1. Two SumQuestion - Two Sum Problem understanding with Example The problem requires finding the indices of two numbers in an array such that they add up to a given target value. The input array can have positive and negative integers. The output should be the...00
DRDhayal Ramindhayalram.hashnode.dev·Apr 19, 2023 · 1 min readLeetcode - 1372. Longest ZigZag Path in a Binary TreeQuestion / 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)); ...00
DRDhayal Ramindhayalram.hashnode.dev·Apr 18, 2023 · 1 min readDaily Learning - Day 1Badges 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 ...00
DRDhayal Ramindhayalram.hashnode.dev·Apr 18, 2023 · 1 min readLeetcode - 1768. Merge Strings AlternatelyQuestion / 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 < ...00