JavaScript solution fasted 100%, memory 73%
\n/**\n * @param {number[]} nums\n * @return {number[]}\n */\nlet findLonely = function(nums) {\n    let map = new Map();\n    for (let i = 0; i < nums.length; 
```\n/**\n * @param {number[]} nums\n * @return {number[]}\n */\nlet findLonely = function(nums) {\n    let map = new Map();\n    for (let i = 0; i < nums.length; i++) {\n        if (!map.has(nums[i])) {\n            map.set(nums[i], 1);\n        } else {\n            map.set(nums[i], map.get(nums[i]) + 1);\n        }\n    }\n    let result = [];\n    for (let item of map) {\n        if (item[1] === 1) {\n            if (!map.has(item[0] - 1) && !map.has(item[0] + 1)) {\n                result.push(item[0]);\n            }\n        }\n    }\n    return result;\n};\n```
['JavaScript']