JS solution enumeration
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 
# 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:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/**\n * @param {string} s\n * @return {string[]}\n */\nvar ambiguousCoordinates = function (s) {\n    let result = [];\n    let enumerate = function (start, end) {\n        let res = [];\n        let sub = s.substring(start, end);\n        if ((parseFloat(sub) + "").length == sub.length) {\n            res.push(sub);\n        }\n        let k = 1;\n        let e = sub.length;\n        while (k < e) {\n            let dec = sub.slice(0, k) + "." + sub.slice(k);\n            if ((parseFloat(dec) + "").length == dec.length) {\n                res.push(dec);\n            }\n            k++;\n        }\n        return res;\n    }\n\n    for (let i = 2; i < s.length - 1; i++) {\n        let res1 = enumerate(1, i);\n        let res2 = enumerate(i, s.length - 1);\n        if (res1.length && res2.length) {\n            res1.forEach(left => res2.forEach(right => result.push("(" + left + ", " + right + ")")));\n        }\n    }\n    return result;\n};\n```
['JavaScript']