Add time & space complexity analysis with solution

  • 1

    Hi administrator,

    I'm a year long leetcode user. This is a fantastic site for programming practice. But I hope that the feature that I wrote in the title could be considered.

    Since there are always some fancy solutions posted by those fabulous brains, reading solutions is sort of a thing that I must do for each question. But sometimes the code is pretty much hard to analysis its time and space complexity, which makes me feel very puzzled and upset. So I hope that for each posted solution, there could be an edit box to show those complexities and the analysis with them. It should be able to be edited by not only the writer but also every member of the community who wants to add more specific comments or to make some corrections. This is less time consuming for the following readers and will somehow benefit the interviewees.

    Thanks in advance.


Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.