Exactly what the topic says. I am getting TLE with my solution. I have looked over my solution and the tester’s solution and they do exactly the same thing (I didn’t copy). But for some reason mine is running slower even though it is in c++11. I even use std::unordered_map vs the std::map of the tester’s solution, so I am just stumped as to what could possibly be taking it so long.
If someone could take a look and tell me what I am doing wrong, that would be nice, thanks.