Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa13238

Browse files
fswatch docs
1 parent 01ea8ce commit fa13238

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

‎book/chapters/bubble-sort.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ Bubble sort has a <<Quadratic>> running time, as you might infer from the nested
2828
- <<Stable>>: [big]#✅# Yes
2929
- <<In-place>>: [big]#✅# Yes
3030
- <<Online>>: [big]#✅# Yes
31-
- <<Adaptive>>: [big]#✅# Yes
31+
- <<Adaptive>>: [big]#✅# Yes, _O(n)_ when already sorted
3232
- Time Complexity: [big]#⛔️# <<Quadratic>> _O(n^2^)_
3333
- Space Complexity: [big]#✅# <<Constant>> _O(1)_

‎notes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@
88
- [ ] Algorithms visualizations like https://bost.ocks.org/mike/algorithms/
99
- [ ] sorting algorithms needs a comparator. So, it can sort objects as well. Replace `Array.sort` for `mergesort` in `src/algorithms/knapsack-fractional.js`
1010

11+
# Watcher
12+
13+
Install fswatch http://emcrisostomo.github.io/fswatch/usage.html
14+
```sh
15+
# Watch for changes
16+
brew install fswatch
17+
```
18+
19+
Watch for changes in *.js and *.adoc
20+
```sh
21+
fswatch /Users/admejiar/Code/algorithmsJS/src/**/*.js /Users/admejiar/Code/algorithmsJS/**/*.adoc | xargs -n1 -I{} make pdf
22+
```
23+
1124
# Troubleshooting
1225
Some notes while working on this project
1326

@@ -50,3 +63,4 @@ alert('foo');
5063
console.log('bar');
5164
/* eslint-enable no-alert */
5265
```
66+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /