11

hash function of dictionary has different complexity for int and string

 2 years ago
source link: http://codeforces.com/blog/entry/103923
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

hash function of dictionary has different complexity for int and string

(huge difference refer to the following submission)

160762368 — accepted (str)

160761953 — tle (int)

both solution are same the only difference is the key in first is string and in 2nd the key is int which is causing tle .....


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK