Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Emsawy's blog

By Emsawy, history, 11 years ago, In English

559B - Equivalent Strings what is causing Time Limit ? - And what is the best solution to avoid TL ? - solution http://mirror.codeforces.com/contest/559/submission/13479349

  • Vote: I like it
  • -3
  • Vote: I do not like it

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Emsawy (previous revision, new revision, compare).

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by Emsawy (previous revision, new revision, compare).

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

ur doing it in o(n2)

well there is a solution like urs that the only difference is u can find if two strings are the same with hash