leetcode-daily-question

0.0.4 • Public • Published

English | 简体中文


A simple program to get leetcode daily questions, currently only support to get question under the leetcode.cn

  • simple, easy to use
  • no runtime dependencies

Use Cases

Get the daily question

import {getTodayQuestion} from 'leetcode-daily-question';
getTodayQuestion()
.then(response => console.log(response))
.catch(err => console.error(err));

Get the title according to the title

import {getQuestionByTitleId} from 'leetcode-daily-question';
const titleId = 'two-sum';
getQuestionByTitleId()
.then(response => console.log(response))
.catch(err => console.error(err));

/leetcode-daily-question/

    Package Sidebar

    Install

    npm i leetcode-daily-question

    Weekly Downloads

    0

    Version

    0.0.4

    License

    Apache 2.0

    Unpacked Size

    18.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • ruleeeer