i am getting TLE in one of the test cases .please help
code:
i am getting TLE in one of the test cases .please help
code:
hello @rabhi1611
a) use unordered map in place of ordered map
b)
this will make algorithm slow. so remove it.
simply iterate ur map . store element which has highest frequency . if two elements has same frequency then pick that which has smaller data value