Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.08 KB

readme.md

File metadata and controls

29 lines (18 loc) · 1.08 KB

leetcode-ts

Collection of leetcode prob solutions using TypeScript.

Navigation

Check the /src, you could see the different pattern/topic, then click it, some includes the note, read it before you try to solve the prob.

How to use it?

Type "T", in this repo page, and then type the problem title like "best-time-to-buy-and-sell-stock".

And you'll see that file best-time-to-buy-and-sell-stock.ts is under the src/kadanes-algorithm it's the related topic of this prob, then enter and see the solution, some solution I've added the thinking process as comment.

How to Run it?

$ npm i # install dependency, typescript, ts-node
$ npx ts-node src/rotate-array.ts

Don't forget to add the test case if you really want to run it!

Most use-case of this repo might be just a reference.