Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ecmadao/algorithms

Algorithms notes & LeetCode/Codewars solutions by Node.js, Swift and Haskell
https://github.com/ecmadao/algorithms

algorithm algorithms algorithms-coursera nodejs tree

Last synced: 2 months ago
JSON representation

Algorithms notes & LeetCode/Codewars solutions by Node.js, Swift and Haskell

Awesome Lists containing this project

README

        

**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Algorithms](#algorithms)
- [预储备](#%E9%A2%84%E5%82%A8%E5%A4%87)
- [Topic](#topic)
- [LeetCode](#leetcode)
- [Run demo](#run-demo)

## Algorithms

> 在设计算法时,面对的第一个任务是精准地定义问题。

Algorithms notes & code & leetcode solution by Node.js, Swift, Haskell and C#.

### 预储备

[基本数据结构](./data-structure.md):

- 堆/栈
- 链表
- 映射
- 散列
- 二叉树
- 图

### Topic

- [并查集](./union-find)
- [基本排序](./elementary-sorts)
- [归并排序](./mergesort)
- [快速排序](./quicksort)
- [优先队列](./priority-queues)
- [二叉搜索树](./binary-search-trees)
- 平衡二叉搜索树
- [AVL 二叉搜索树](./balanced-search-trees)
- [2-3 二叉搜索树](./2-3-search-trees)
- [红黑二叉搜索树](./red-black-bsts)
- [区间二叉搜索树](./interval-search-trees)
- [k-d 树](./k-d-trees)
- [排列组合](./permutation-and-combination)
- [图](./graph)
- [数字转换](./number)
- [跳跃链表](./skiplist)

### [LeetCode](./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 `.hs` files

Ruby:

- Version >= 2.4.1