• + 0 comments

    very cool exercise. At first i used map stl(C++), but because its logN it was too slow, using unordered_map solved the problem of timeout