vscode-leetcode
vscode-leetcode copied to clipboard
每道题有很多种解法,能不能保留自己之前通过的解答,而不是覆盖文件。
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.
在原文件上注释掉原来的代码即可
新点开问题,新solution,保存为副本即可?
新点开问题,新solution,保存为副本即可?
谢谢了
在原文件上注释掉原来的代码即可
确实是一个方法,但是如果官方能给出更好的模式就好了,谢谢了。
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.
你可以试试看每个解法创建创建一个新方法 leetcode主函数里面调用你实际想提交的那个方法就好
直接复制粘贴一下文件