+ 1
Can't we modify value of unordered map?
Hi All I am getting time limit error when I try to modify value in unordered map... Please refer line 65 in attached code: Is it not possible or Am I missing something? Thanks for your help in advance 👍 https://code.sololearn.com/crlS14DO8EvC/?ref=app
2 Respostas
- 1
the problem is with the "if" statement condition (line 60).
the correct is → if (itr == um.end())
+ 2
Opps ...copy paste typo nd then just focused on map value update rather than checking condition... Thanks a lot...!!