Hello everyone, I was solving problem C of a div 3 contest 1702C - Train and Queries and I just used 2 hash maps to stores the first and last occurence of each station, but on test case 45 its saying TLE.
Then i read the editorial and tried to using just one hashmap but still it says TLE.
Please Help.