C# easy & concise DFS
Thanks to local functions added on C#7\n\npublic class Solution {\n    public bool IsBalanced(TreeNode root) {\n        bool bal = true;\n        int Dfs(TreeNo
Thanks to local functions added on C#7\n```\npublic class Solution {\n    public bool IsBalanced(TreeNode root) {\n        bool bal = true;\n        int Dfs(TreeNode node) {\n            if (node == null)\n                return 0;\n            int l = Dfs(node.left), r = Dfs(node.right);\n            if (Math.Abs(l - r) > 1)\n                bal = false;\n            return Math.Max(l, r) + 1;\n        }\n        Dfs(root);\n        return bal;\n    }\n}\n```
[]