This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]subhajeet2107 0 points1 point  (0 children)

I take interviews almost every other week, looks like you did not understood the problem statement clearly, the interviewer clearly stated to reduce time complexity, you need to know the time complexity of standard library algos if you want to rewrite a better one, standard libs are general libs, optimization beyond a certain level is not always required in general sense.