Algorithms
Algorithms notes & LeetCode/Codewars solutions by Node.js, Swift and Haskell
Install / Use
/learn @ecmadao/AlgorithmsREADME
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Table of Contents generated with DocToc
<!-- END doctoc generated TOC please keep comment here to allow auto update -->Algorithms
在设计算法时,面对的第一个任务是精准地定义问题。
Algorithms notes & code & leetcode solution by Node.js, Swift, Haskell and C#.
预储备
- 堆/栈
- 链表
- 映射
- 散列
- 二叉树
- 图
Topic
LeetCode
Run demo
JavaScript:
- Version >= 7.0.0
- 如果 Node 版本较低,则可以自行选择使用 Babel 进行转换
- Leetcode 题解代码直接在浏览器中即可运行(ES5/ES6 语法)
- 直接运行各个文件夹下的
js文件即可查看算法运行的结果,例如在项目根目录下node ./priority-queues/binary-heaps.js
Swift:
- Version >= 4.0
Haskell:
- Version >= 8.4.3
- Using GHCi and load
.hsfiles
Ruby:
- Version >= 2.4.1
