feature request: leetcode to support multi-solution for one question

Not sure if someone already asked for.
for some problems, we would like to figure out a basic, then a optimized, then more.
Or solve it firstly in dfs, then another solution is bfs.

For now every time if I would like to try multiple solutions, I copy body of class Solution to class SolutionN, and write next solution in the same window.

Can we give a new feature to support tab, each tab is a solution for the same quesiton?
Then no copy-paste needed, just a click for next solution.

Thanks,
AH

Comments (0)