Skip to content

Want to learn Algorithms in Deno and TypeScript? Try this one! Collecting my typescript solution to LeetCode, freeCodeCamp and more! 《Deno 算法之旅》

License

Notifications You must be signed in to change notification settings

hylerrix/deno-algorithm

Repository files navigation

Deno Algorithm Profile Hits

简体中文版

Current Status: Learning & Coding...

Temporary Chinese name: 《我用 Deno 刷算法》

My deno circle: https://github.com/hylerrix?tab=repositories&q=deno

To Learn Algorithm using TypeScript and Run with Deno! LeetCode, freeCodeCamp and more to challenge!

TOC and its progress

  • Platform: LeetCode - 3/1500
  • Platform: FreeCodeCamp - 0%
  • Basic: Data Structure - 1%
  • Basic: Design Pattern - 0%
  • ...and more!

And each TOC contains some files as below:

  • README.md: to introduce this chapter's goal and how to challenge it.
  • /solutions/.ts: The solution in the TypeScript version for this chapter. It will contain strict types as much as possible.
  • /solutions/*.js: The solution in JavaScript version for this chapter. It focuses on the hacking trick which can not pass in the strict type check.
  • .test.ts: test file for .ts source.
  • .test.js: test file for .js source.

Develop

To join this repo, you need to use these techniques:

$ deno test --import-map=import_map.json src/challenges/leetcode
$ deno lint --unstable src/challenges/
const tStart: number = performance.now()
const tEnd: number = performance.now()
console.log('Execution Time: ', tEnd - tStart + 'ms')

Test

-> Github Action

$ deno test --coverage=./cov challenges/leetcode
$ deno coverage --lcov ./cov > cov.lcov
$ genhtml cov.lcov

License

MIT License

About

Want to learn Algorithms in Deno and TypeScript? Try this one! Collecting my typescript solution to LeetCode, freeCodeCamp and more! 《Deno 算法之旅》

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published