diff --git a/1823. Find the Winner of the Circular Game b/1823. Find the Winner of the Circular Game new file mode 100644 index 0000000..23a7eb1 --- /dev/null +++ b/1823. Find the Winner of the Circular Game @@ -0,0 +1,16 @@ +class Solution { +public: + int findTheWinner(int n, int k) { + queue q; + for(int i=1;i<=n;++i){q.push(i);} + while(q.size()>=2){ + for(int i=0;i