其他分享
首页 > 其他分享> > Intelij Idea 配置leetcode

Intelij Idea 配置leetcode

作者:互联网

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}
}

标签:velocityTool,camelCaseName,titleSlug,question,Idea,leetcode,Intelij,Leetcode
来源: https://blog.csdn.net/m0_61627563/article/details/120442049