Back to course home
0% completed
Vote For New Content
Why there isn't written which solution is best?
lejafilip
Sep 6, 2024
It is very important in FAANG interview, e.g. to Google. As I see it should be second one yes? Because we have TC: O(m*n) and SC: O(M or N) so it is linear in SC.
Rest have square in SC
0
0
Comments
Comments
On this page
Problem Statement
Try it yourself