Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

priority queue solution #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions priority-queue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules
app.bundle.js
app.bundle.js.map
24 changes: 24 additions & 0 deletions priority-queue/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Priority queue task

:warning: DO NOT SUBMIT PRS TO THIS REPO :warning:

### Prerequisites
* Install [nodejs](https://nodejs.org/en/) (>= v6.2.0)
* open bash in this folder
* `npm install`

### Run tests
```sh
npm test
```

### Run in browser
```sh
npm start
```

open http://localhost:8080

---

© [R1ZZU](https://github.com/R1ZZU)
15 changes: 15 additions & 0 deletions priority-queue/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<script src="./app.bundle.js"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions priority-queue/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const MaxHeap = require('./src/max-heap');

const h = new MaxHeap();
window.h = h;
Loading