This is a Java project template used with LeetCode Plugin.
You can write LeetCode in this project when using JetBrains IDEs like IDEA.
Configure below to make Java code error-free and runnable.
${question.frontendQuestionId}_$!velocityTool.camelCaseName(${question.titleSlug})
${question.content}
package com.makersy.leetcode.editor.cn;
class $!velocityTool.camelCaseName(${question.titleSlug}){
public static void main(String[] args) {
//Solution solution = new $!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
}
${question.code}
}
For example, if the package path in Code Template
is:
package com.makersy.leetcode.editor.cn;
You should set TempFilePath
as {path from root}/com/makersy
.
New solution file will be created in packege com.makersy.leetcode.editor.cn
.
leetcode.editor.cn
is generated by the plugin.