Dhayal RamforIdea -> Code -> Productdhayalram.hashnode.netยทApr 19, 2023Leetcode - 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)); ...leetcodeAdd a thoughtful commentNo comments yetBe the first to start the conversation.