Skip to content

每道题有很多种解法,能不能保留自己之前通过的解答,而不是覆盖文件。 #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
QJieWang opened this issue Aug 24, 2020 · 7 comments

Comments

@QJieWang
Copy link

Before you submit an question we recommend you to check out the DOCUMENT first.

You can also find more information in:

💬 Questions and Help

Please outline the questions.

@cfcfzzzz
Copy link

cfcfzzzz commented Sep 7, 2020

在原文件上注释掉原来的代码即可

@KennyNg-19
Copy link

新点开问题,新solution,保存为副本即可?

@QJieWang
Copy link
Author

新点开问题,新solution,保存为副本即可?

谢谢了

@QJieWang
Copy link
Author

在原文件上注释掉原来的代码即可

确实是一个方法,但是如果官方能给出更好的模式就好了,谢谢了。

@swithun-liu
Copy link

Maybe you can try to change the file name by such as adding something like *_solution_1.cpp, *_solution_2.cpp, when you open that question again with vscode-leetcode, there will be a new file created.

@nonmean
Copy link

nonmean commented Jan 15, 2023

你可以试试看每个解法创建创建一个新方法 leetcode主函数里面调用你实际想提交的那个方法就好

@pheotry
Copy link

pheotry commented Jan 12, 2024

直接复制粘贴一下文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants