Skip to content

wuxin0011/java-lc-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

About

This is a small tool that automatically crawls the weekly competition, which can be easily run locally, without processing input and output, and at the same time can customise the daily question and custom classified questions for easy review.

install

<dependency>
    <groupId>io.github.wuxin0011</groupId>
    <artifactId>java-lc-run</artifactId>
    <version>0.0.5-beta</version>
</dependency>

last version

Example

example repo

First launch Please configure the cookies of your leetcode website ! if you

You can download the usage example here🚀 You can also use Maven to configure the configuration

USE

custom config

if you want to custom some config

root_dir=[src,main,java]
# load cookie dir if is "." will load in work dir
request_config=.
# if get username failed , will use default username
username=wuxin0011
# create contest readme file
create_contest_readme=true

place create config.properties file in your project resources dir

contest

custom week contest LCContest.WEEK_CONTEST

public class CustomWeekContest {
    public static void main(String[] args) {
        LCContest.WEEK_CONTEST.createNo(CustomWeekContest.class);
    }
}

custom bi week contest LCContest.BI_WEEK_CONTEST

public class CustomBIWeekContest {

    public static void main(String[] args) {
        LCContest.BI_WEEK_CONTEST.createNo(CustomBIWeekContest.class);
    }
}
public class Next {

    public static void main(String[] args) {
        LCContest.autoCreateNext(Next.class);
    }


}
public class OtherContest {

    public static void main(String[] args) {
        Problem.customContest(OtherContest.class);
    }
}

Every day

public class LCDailyCustom {


    public static void main(String[] args) {
        LCEveryDay.everyDay.custom(LCDailyCustom.class);
    }
}
public class LCDailyCustom {


    public static void main(String[] args) {
        LCEveryDay.everyDay.custom(LCDailyCustom.class);
    }
}

custom problem dir

public class SolutionTest {

    public static void main(String[] args) {

        new LCSolutionTemplate(SolutionTest.class, "Solution").run();
    }
}

Thanks

Thanks JetBrains for the open source license provided

About

A java tool that runs the weekly contest natively

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages