Skip to content

Commit 1b6e150

Browse files
authored
Revert "Ad hoc versions of MinHeap, MaxHeap, and DisjointSet (trekhleb#1117)"
This reverts commit 2c67b48.
1 parent e40a67b commit 1b6e150

File tree

8 files changed

+0
-552
lines changed

8 files changed

+0
-552
lines changed

src/data-structures/disjoint-set/DisjointSetAdhoc.js

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/data-structures/disjoint-set/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ _MakeSet_ creates 8 singletons.
1919

2020
After some operations of _Union_, some sets are grouped together.
2121

22-
## Implementation
23-
24-
- [DisjointSet.js](./DisjointSet.js)
25-
- [DisjointSetAdhoc.js](./DisjointSetAdhoc.js) - The minimalistic (ad hoc) version of a DisjointSet (or a UnionFind) data structure that doesn't have external dependencies and that is easy to copy-paste and use during the coding interview if allowed by the interviewer (since many data structures in JS are missing).
26-
2722
## References
2823

2924
- [Wikipedia](https://en.wikipedia.org/wiki/Disjoint-set_data_structure)

src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/data-structures/heap/MaxHeapAdhoc.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

src/data-structures/heap/MinHeapAdhoc.js

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/data-structures/heap/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ Where:
5858

5959
> In this repository, the [MaxHeap.js](./MaxHeap.js) and [MinHeap.js](./MinHeap.js) are examples of the **Binary** heap.
6060
61-
## Implementation
62-
63-
- [MaxHeap.js](./MaxHeap.js) and [MinHeap.js](./MinHeap.js)
64-
- [MaxHeapAdhoc.js](./MaxHeapAdhoc.js) and [MinHeapAdhoc.js](./MinHeapAdhoc.js) - The minimalistic (ad hoc) version of a MinHeap/MaxHeap data structure that doesn't have external dependencies and that is easy to copy-paste and use during the coding interview if allowed by the interviewer (since many data structures in JS are missing).
65-
6661
## References
6762

6863
- [Wikipedia](https://en.wikipedia.org/wiki/Heap_(data_structure))

0 commit comments

Comments
 (0)