Coder Social home page Coder Social logo

leetcode's Introduction



  • 打开leetcode项目安装依赖包
npm install
  • 如果需要运行单元测试,请在根目录下运行
npm run test        // 单元测试
npm run test:watch  // 单元测试(监控模式)
  • 查看解法示例,可进入每一个算法示例下的
  • 查看测试报告,可在运行单元测试后,打开测试套件目录(tests/report/jest_html_reporters.html)
  • 查看辅助帮手,打开准备工作目录(setup)



Leet Code NO. Type Code Desc Test Case
$0001 array two-sum 两数之和 two-sum.test.js
$0002 linked-list add-two-numbers 两数相加 add-two-numbers.test.js
$0003 sliding-window length-of-longest-substring 寻找最长无重复子串 length-of-longest-substring.test.js
$0004 array find-median-sorted-array 寻找排序数组的中位数 find-median-sorted-array.test.js
$0011 array max-area 最大盛水量 max-area.test.js
$0015 array three-sum 三数之和 three-sum.test.js
$0016 array three-sum-closest 三数之和 three-sum-closest.test.js
$0017 depth-first-search letter-combinations 电话号码组合 letter-combinations.test.js
$0018 array four-sum 四数之和 four-sum.test.js

leetcode's People


miracle-git avatar


 avatar  avatar





Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.