Skip to content
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

提议修改代码范围开始与结束标记 #117

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/CustomCode_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

## 注意
在生成的自定义代码中包含两行关键信息:
- `leetcode submit region begin(Prohibit modification and deletion)`:提交到leetcode进行验证的代码开始标记
- `leetcode submit region end(Prohibit modification and deletion)`:提交到leetcode进行验证的代码结束标记
- `-----BEGIN LEETCODE SUBMIT REGION (Do Not Modify or Delete)-----`:提交到leetcode进行验证的代码开始标记
- `-----END LEETCODE SUBMIT REGION (Do Not Modify or Delete)-----`:提交到leetcode进行验证的代码结束标记
这两行标记标示了提交到leetcode服务器进行验证的代码范围,在此范围内只允许有出现与题目解答相关的内容,出现其他内容可能导致leetcode验证不通过。
除了此范围内,其他区域是可以任意填写的,内容不会提交到leetcode,可以增加一些可以本地调试的内容,例如:import java.util.Arrays;
所以,这两行内容是不能被删除和修改的,否则将识别不到提交的内容。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public class Constant {
/**
* 提交代码标识 submit
*/
public static final String SUBMIT_REGION_BEGIN = "leetcode submit region begin(Prohibit modification and deletion)";
public static final String SUBMIT_REGION_END = "leetcode submit region end(Prohibit modification and deletion)";
public static final String SUBMIT_REGION_BEGIN = "-----BEGIN LEETCODE SUBMIT REGION (Do Not Modify or Delete)-----";
public static final String SUBMIT_REGION_END = "-----END LEETCODE SUBMIT REGION (Do Not Modify or Delete)-----";

/**
* 配置文件版本记录
Expand Down