Intelij Idea 配置leetcode
一、下载Leetcode Plugin插件
二、登陆Leetcode
三、配置Leetcode代码模版
文件名
$!velocityTool.camelCaseName(${question.titleSlug})
类内容配置
${question.content}
package leetcode.editor.cn;
public class $!velocityTool.camelCaseName(${question.titleSlug}){
public static void main(String[] args) {
Solution solution = new $!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
}
${question.code}
}