➡️ One line solution. TC: O(n)
 # Intuition  \n\n\n\n\n\n# Complexity\n- Time complexity: O(n)\n\n\n- Space complexity: O(n)\n\n\n# Code\njavascript []\n/**\n * @param {string} num\n * @retur
<!-- # Intuition -->\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n<!-- # Approach -->\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity: $$O(n)$$\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: $$O(n)$$\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```javascript []\n/**\n * @param {string} num\n * @return {boolean}\n */\nvar isBalanced = num => !num.split(\'\').reduce((sum, n, i) => i % 2 ? sum + +n : sum - +n, 0);\n```
['JavaScript']