Simple game theory question
Difference between en1 and en2, changed 1 character(s)
I was doing this [question](https://www.hackerrank.com/contests/hackerrank-hackfest-2020/challenges/strictly-increasing-sequence) asked in recent HackFest in Hackerrank .↵
I know its too simple but anyhow i m not able to score all 20 points.↵

<spoiler summary="my code">↵

~~~~~↵
string whoIsTheWinner(vector<int> v) {     ↵

set<int> s;for(unsigned int i=0;i<v.size();i++)s.insert(v[i]);↵

if(int(v.size()-s.size())%2==0 or s.size()%2==0) return "First";     ↵

return "Second"; }↵
~~~~~↵


</spoiler>↵

Please help ..i m not able to find the solution.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Sahilamin219 2020-10-18 07:43:24 14
en2 English Sahilamin219 2020-10-18 07:31:06 1
en1 English Sahilamin219 2020-10-18 07:30:27 588 Initial revision (published)