Another simulation.
\n\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 Se
\n\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 Set(Array.from({length: n}, (_, idx) => idx + 1));\n    let i = 1;\n    let f = 1;\n    while(players.has(i)){\n        players.delete(i);\n        i = (i + (k * f)) % n || n;\n        f++;\n    }\n    return [...players];\n};\n```
['JavaScript']