Skip to content

Commit b30be1f

Browse files
committed
📝 docs: update READMEs
1 parent 9cd3f2d commit b30be1f

File tree

9 files changed

+41
-3
lines changed

9 files changed

+41
-3
lines changed

Diff for: packages/circular-queue/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ are kept in the queue. Other operations are the same as ordinary queues.
7373
yarn add @algorithm.ts/circular-queue
7474
```
7575

76+
* deno
77+
78+
```typescript
79+
import { createCircularQueue } from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/circular-queue/src/index.ts'
80+
```
81+
82+
7683
## Usage
7784

7885
* Basic:

Diff for: packages/dijkstra/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ The following definition is quoted from Wikipedia (https://en.wikipedia.org/wiki
7474
yarn add @algorithm.ts/dijkstra
7575
```
7676

77+
* deno
78+
79+
```typescript
80+
import dijkstra from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/dijkstra/src/index.ts'
81+
```
82+
7783
## Usage
7884

7985
A solution for leetcode "Number of Ways to Arrive at Destination"

Diff for: packages/dlx/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ If you are interested in this algorithm, you can check [here][dlx].
7272
yarn add @algorithm.ts/dlx
7373
```
7474

75+
* deno
76+
77+
```typescript
78+
import { createDLX } from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/dlx/src/index.ts'
79+
```
80+
7581
## Usage
7682

7783
* Use dlx to solve a 9x9 sudoku problem:

Diff for: packages/knuth-shuffle/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ If you are interested in this algorithm, you can check [here][knuth-shuffle].
7272
yarn add @algorithm.ts/knuth-shuffle
7373
```
7474

75+
* deno
76+
77+
```typescript
78+
import knuthShuffle from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/knuth-shuffle/src/index.ts'
79+
```
80+
7581
## Usage
7682

7783
* Shuffle nums.

Diff for: packages/lower-bound/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ greater or equals than the target element.
6969
yarn add @algorithm.ts/lower-bound
7070
```
7171

72+
* deno
73+
74+
```typescript
75+
import lowerBound from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/lower-bound/src/index.ts'
76+
```
77+
78+
7279
## Usage
7380

7481
* Basic

Diff for: packages/priority-queue/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ complexity of the enqueue and dequeue operations are both $O(\log N)$.
7474

7575
* deno
7676

77-
```bash
77+
```typescript
7878
import { createPriorityQueue } from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/priority-queue/src/index.ts'
7979
```
8080

Diff for: packages/sliding-window/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ A typescript implementation of the **sliding-window** algorithm.
6969

7070
* deno
7171

72-
```bash
72+
```typescript
7373
import { createSlidingWindow } from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/sliding-window/src/index.ts'
7474
```
7575

Diff for: packages/trie/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following definition is quoted from Wikipedia (https://en.wikipedia.org/wiki
7979

8080
* deno
8181

82-
```bash
82+
```typescript
8383
import { createTrie } from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/trie/src/index.ts'
8484
```
8585

Diff for: packages/upper-bound/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ greater than the target element.
6969
yarn add @algorithm.ts/upper-bound
7070
```
7171

72+
* deno
73+
74+
```typescript
75+
import upperBound from 'https://raw.githubusercontent.com/guanghechen/algorithm.ts/main/packages/upper-bound/src/index.ts'
76+
```
77+
7278
## Usage
7379

7480
* Basic

0 commit comments

Comments
 (0)