Easy to read simulation solution
Code\n\n/**\n * @param {number} n\n * @param {number} k\n * @return {number[]}\n */\nvar circularGameLosers = function(n, k) {\n    const players = new Array(n)
# Code\n```\n/**\n * @param {number} n\n * @param {number} k\n * @return {number[]}\n */\nvar circularGameLosers = function(n, k) {\n    const players = new Array(n).fill(0);\n    let index = 0;\n    let turn = 1;\n    \n    while (true) {\n        ++players[index];\n        if (players[index] === 2) break;\n        index += turn++ * k;\n        index %= n;\n    }\n\n    const result = [];\n\n    for (let i = 1; i < n; ++i) {\n        if (players[i] === 0) result.push(i + 1);\n    }\n\n    return result;\n};\n```
['JavaScript']