Time and Space Complexity Analysis for Problems
Anonymous User
349

Hi Leetcode and its community.

Firstly, I am really thankful and glad to be part of such an awesome community where not only me but also my peers want me to succeed! Thats why we see some awesome community/moderator contributed articles in the Discuss/Solutions tab. I wanted to share my experience regarding understanding the Time and Space Complexity Analysis for problems. In some problems, no doubt the solutions are awesome but in some cases, they miss the Time and Space Complexity Analysis Discussion. In such cases, I try to derive them and check in the comments to see if there is anyone who talks about it and does my analysis matches the same as them. But, in some cases, I am not sure if the analysis is right or wrong in case there is a mismatch.

I believe this analysis plays an important role in interviews. Hence, I wondered if we could have a feature where Leetcode can provide the Time and Space Complexity Analysis for top-voted solutions if its missing in the post and there is no Article. I do understand that solutions in discuss are community contributed so not sure if this would possible given the large number of problems. I just felt to share this with the community in case if it feels worthy of implementing.

Happy LeetCoding :)

Comments (0)