20. Matchsticks Game
My Approach
Time and Auxiliary Space Complexity
Code (C++)
class Solution {
public:
int matchGame(long long n) {
if(n % 5)
return n % 5;
return -1;
}
};Contribution and Support
Last updated