Skip to content

Latest commit

 

History

History
31 lines (30 loc) · 1.35 KB

README.md

File metadata and controls

31 lines (30 loc) · 1.35 KB

leetcode-question

leetcode-editor custom code demo

Progress

Progress Easy Medium Hard

leetcode-editor config

CodeFileName:

$!velocityTool.camelCaseName(${question.titleSlug})

CodeTemplate:

  ${question.content}
  
  package com.shuzijun.leetcode.editor.en;
  public class $!velocityTool.camelCaseName(${question.titleSlug}){
      public static void main(String[] args) {
           Solution solution = new $!velocityTool.camelCaseName(${question.titleSlug})().new Solution();
      }
      ${question.code}
  }

TemplateConstant:

  ${question.title}	question title	ex:Two Sum
  ${question.titleSlug}	question title slug 	ex:two-sum
  ${question.frontendQuestionId}	question serial number
  ${question.content}	question content
  ${question.code}	question code
  $!velocityTool.camelCaseName(str)	transform str camel case