keshida
d5bac12f60
fix: modify a function name in array_stack.js(ts) and array_queue.js(ts) ( #739 )
...
* Update array_stack.js
判空函数名称有歧义
* Update array_stack.js
* Update array_queue.js
* Update array_stack.ts
* Update array_queue.ts
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
William Yuan
70784a1ec3
feat(chapter_backtracking): Add js and ts codes for chapter 13.3 ( #667 )
...
* feat(chapter_dynamic_programming): Add js and ts codes for chapter 14.1
* style(chapter_dynamic_programming): format code
* refactor(chapter_dynamic_programming): remove main definition and add type
* feat(chapter_backtracking): Add js and ts codes for chapter 13.3
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.2
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.3
* feat(chapter_divide_and_conquer): Add js and ts codes for chapter 12.4
* style(chapter_divide_and_conquer): fix typo
* refactor: Use === instead of == in js and ts
1 year ago
krahets
c4ea4e39f3
Fomrat the JS and TS codes with prettier.
2 years ago
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 ( #452 )
...
* Replace 结点 with 节点
Update the footnotes in the figures
* Update mindmap
* Reduce the size of the mindmap.png
2 years ago
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque ( #415 )
2 years ago
krahets
ca261a8f46
Update the chapter preface.
2 years ago
zhuoqinyue
8c65345b76
feat: add array_deque for JS and TS ( #397 )
...
* feat: add array_deque for JS and TS
* feat: update the information
* Update array_deque.ts
* Update array_deque.js
* use private property
* Update array_deque.js
---------
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Justin Tse
e4a98bc9c5
Update JavaScript and TypeScript codes for all chapters, rename JavaScript and TypeScript import folder to modules ( #402 )
...
* Update JavaScript and TypeScript codes
* Rename JavaScript and TypeScript import folder to modules
2 years ago
方圆
f0d8d8b1b0
feat: add ArrayDeque ( #348 )
...
* 双向队列: java 代码
* 双向队列: markdown 内容
* Rewrite array_deque.java
Update array_queue.java, linkedlist_deque.java
* Add ArrayDeque figures and rewrite the contents
---------
Co-authored-by: krahets <krahets@163.com>
2 years ago
krahets
05f0054005
Add build script for JS and TS codes.
2 years ago
zhuoqinyue
c4b510038c
Add linkedlist_deque for typescript and javascript ( #326 )
...
* add linkedlist_deque for typescript and javascript
* update typescript and javascript examples for the deque.md
* keep the same name
* update the doc
* Update deque.md
---------
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Justin Tse
6ad8a66a7c
Update the coding style for JavaScript ( #329 )
...
* Fix bug before commit 5eae708
* Update queue.md
* Update the coding style for JavaScript
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Justin Tse
62114ce79a
Fix bug before commit 5eae708
( #325 )
...
* Fix bug before commit 5eae708
* Update queue.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Yudong Jin
7d0d3df886
Update deque.js and deque.ts
2 years ago
zhuoqinyue
1d1d13ec0e
Add deque for JavaScript and typescript ( #267 )
...
* add deque in javascript and typescript
* update the variables name
* update the time complexity
* Directly operating on the Array
* fix the ts file
* update the method complexity
* update the js file
---------
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
2 years ago
Yudong Jin
7d14c9440e
Unify the function naming of
...
queue from `offer()` to `push()`
2 years ago
Yudong Jin
5eae708035
Fix array queue.
2 years ago
Yudong Jin
a1f67c6484
Merge pull request #163 from S-N-O-R-L-A-X/linkedlist_stack
...
Update linkedlist stack in JS and TS
2 years ago
Yudong Jin
17909162fc
fine tune
2 years ago
S-N-O-R-L-A-X
49fe239cfa
fix: remove redundancy
2 years ago
S-N-O-R-L-A-X
c20f7cdaac
fix: fix some comment
2 years ago
S-N-O-R-L-A-X
0394f0c547
feat: add linkedlist_stack in js
2 years ago
Yudong Jin
f39636cb63
Update the structure of the chapter
...
of binary tree.
2 years ago
Yudong Jin
7283bbaf6f
Update the chapter of stack and queue.
2 years ago
Yudong Jin
9bbb0e9466
Merge pull request #139 from S-N-O-R-L-A-X/queue
...
Queue
2 years ago
Yudong Jin
edf100ec01
Fine tune.
2 years ago
Yudong Jin
fa3eff81d1
Update array stack.
2 years ago
S-N-O-R-L-A-X
1f118c2407
feat: add linkedlist_queue in js
2 years ago
S-N-O-R-L-A-X
e2aec30b05
fix: use private variables
2 years ago
S-N-O-R-L-A-X
14561fc95f
feat: add array_queue in js
2 years ago
S-N-O-R-L-A-X
15120d307a
fix: fix names and move content to correct place
2 years ago
S-N-O-R-L-A-X
4839be74cd
feat: add array_stack in js
2 years ago
Yudong Jin
f6ed7bcc95
Update queue.js
2 years ago
Yudong Jin
0c5e2c45c8
Update queue.js
2 years ago
S-N-O-R-L-A-X
a81a053672
fix: fix small problems
2 years ago
S-N-O-R-L-A-X
d8bc3ba3e5
feat: add queue in ts
2 years ago
S-N-O-R-L-A-X
d0d53c5a84
feat: add queue in js
2 years ago
Yudong Jin
3252b829e1
Add installation steps for Go and JavaScript.
2 years ago
S-N-O-R-L-A-X
a841a6fe42
fix: use const to declare variables in js
2 years ago
S-N-O-R-L-A-X
75fa643113
feat: add code in js
2 years ago