Skip to main content
Feedback

Suggestion: Add time/space complexity tags to editorials

Sachin AhujaSachin Ahuja
7/22/2025
131

Each editorial solution should clearly show:

  • Time complexity
  • Space complexity
  • Approach name (e.g., "Two Pointer", "Binary Search", "DP")

This would make it easy to compare different approaches to the same problem and quickly see the optimal solution's complexity.

Right now you have to read through the editorial to figure these out.


editorialcomplexityfeature-request

Comments (3)

Sign in to join the discussion.
Sora Sato
Sora Sato8/24/2025

I think it would be great if users could also contribute to these tags. Maybe starting with official ones, but allowing for edits could crowdsource improvements.

Vera Chen
Vera Chen8/13/2025

Adding complexity tags sounds useful, but what about edge cases? Sometimes the complexity isn't so straightforward, especially with recursive approaches.

Ivan Jones
Ivan Jones8/12/2025

Totally agree! It's such a hassle to sift through the whole editorial just to find the complexity. Maybe adding a summary section at the top would help?