You are viewing a single comment's thread. Return to all comments →
Horrible solution.
Congratulations, you avoided using set or map by making it perform in quadratic time instead of linear time.
Why exactly did you think it was a good idea to try and avoid using the right tool for the job?
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
Horrible solution.
Congratulations, you avoided using set or map by making it perform in quadratic time instead of linear time.
Why exactly did you think it was a good idea to try and avoid using the right tool for the job?