🔥Java || Easy to Understand
Code\n\nclass Solution {\n    public int[] circularGameLosers(int n, int k) {\n        boolean[] visited = new boolean[n];\n        visited[0] = true;\n        
# Code\n```\nclass Solution {\n    public int[] circularGameLosers(int n, int k) {\n        boolean[] visited = new boolean[n];\n        visited[0] = true;\n        \n        int i = 0;\n        int x = 1;      \n        while(!visited[(i + (x*k)) % n]) {\n            visited[(i + (x*k)) % n] = true;\n            i = (i + (x*k)) % n;\n            x++;\n        }\n        \n        int count = 0; \n        for(boolean b : visited) {\n            if(!b) {\n                count++;\n            }\n        }\n        \n        int[]ans = new int[count];\n        int index = 0;\n        for(int j = 0; j < visited.length; j++) {\n            if(!visited[j]) {\n                ans[index++] = j+1;\n            }\n        }\n        return ans;\n    }\n}\n```
['Java']