Very Simple And Easy Solution | JAVA
\n\n# Code\n\nclass Solution {\n    public int[] circularGameLosers(int n, int k) {\n        if(n==1){\n            return new int[]{};\n        }\n        bool
\n\n# Code\n```\nclass Solution {\n    public int[] circularGameLosers(int n, int k) {\n        if(n==1){\n            return new int[]{};\n        }\n        boolean[] check=new boolean[n];\n        int c=1;\n        check[0]=true;\n        int go=1;\n        while(true){\n            go=(go+k*c)%n;\n            if(go==0){\n                if(check[n-1]){\n                    break;\n                }\n                check[n-1]=true;\n            }\n            else{\n                if(check[go-1]){\n                    break;\n                }\n                check[go-1]=true;\n            }\n            c++;\n            \n        }\n        List<Integer> ls = new ArrayList<>();\n        for(int i=0;i<n;i++){\n            if(!check[i]){\n                ls.add(i+1);\n            }\n        }\n        int[] ans=new int[ls.size()];\n        for(int i=0;i<ls.size();i++){\n            ans[i]=ls.get(i);\n        }\n        return ans;\n    }\n}\n```
['Java']