100% beats soln || Logic based
IntuitionApproachSet seen : To keep track of players who recived the ball.
Vector loser: To return the players who didnt recived the ball.passball+i*k-1)%n +1 t
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->
Set seen : To keep track of players who recived the ball.
Vector loser: To return the players who didnt recived the ball.

passball+i*k-1)%n +1 to make sure value doesnt go beyond 5 and stays in a circular fashion.
# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->
If u like my sol, upvote me.
# Code
```cpp []
class Solution {
public:
    vector<int> circularGameLosers(int n, int k) {
        unordered_set<int>seen;
        vector<int> losers;
        int passball=1;
        int i=1;

        while(seen.find(passball)==seen.end()){
            seen.insert(passball);
            passball = (passball+i*k-1)%n+1;

            i++;
        }
        for(int j=1;j<=n;++j){
            if(seen.find(j)==seen.end()){
                losers.push_back(j);
            }
        }  
        return losers;
        
        
    }
};
```
![d9a30a34-57a0-40f1-adab-43bec86a259a_1723795301.0363479.png](https://assets.leetcode.com/users/images/0b5fc3a8-b006-4a48-bd4f-0c74622d686c_1735282885.6773975.png)

['C++']