This repo contains solutions to all of the Kattis problems I have completed. If you have any questions regarding a solution, feel more than free to email me at mikepf97@gmail.com
Hi, Thanks for putting up the solution. I am trying to solve this using javascript but my code fails for 7 test cases out of 27. Kattis does not give the test cases for which it is failing. can you please explain the below part:
unordered_map<int,int> seen;
for(int i = 0; i < n; i++) {
int temp;
cin >> temp;
seen[temp]++;
}
Hi, Thanks for putting up the solution. I am trying to solve this using javascript but my code fails for 7 test cases out of 27. Kattis does not give the test cases for which it is failing. can you please explain the below part:
unordered_map<int,int> seen; for(int i = 0; i < n; i++) { int temp; cin >> temp; seen[temp]++; }