for using hashing vector is better than map while accessing the hashing data in a nested loop?

Revision en2, by udoy07, 2023-07-19 11:15:28

In this problem i found this issue for map time complexity is higher than vector,

problem link:https://codeforces.net/contest/1352/problem/E

sol link with vctor :https://codeforces.net/contest/1352/submission/214450956

sol link with map :https://codeforces.net/contest/1352/submission/214450292

your valuable opinion will surely help others who's are like me. and if does not make any sense than please comment section is available, i will delete it.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English udoy07 2023-07-19 11:16:11 81
en2 English udoy07 2023-07-19 11:15:28 91
en1 English udoy07 2023-07-19 11:14:09 465 Initial revision (published)