mpfeifer1 / Kattis

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
172 stars 81 forks source link

No understanding the Uonorderd map part #2

Open ritzdps92 opened 4 years ago

ritzdps92 commented 4 years ago

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]++; }