1751 Commits

Author SHA1 Message Date
7666632d0c Add heap part js code (#339)
* Add heap part js code

* Update heap.md

* Update heap.md

* Format the code style and fix a bug.

* and fix the style in heap.md

* fix the style

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-07 20:48:54 +08:00
8f512c2840 Update code extractor of Java. 2023-02-07 19:05:19 +08:00
95bffcfb36 deploy 2023-02-07 17:17:25 +08:00
1ca5c731f7 build 2023-02-07 17:17:14 +08:00
ecbf2d1560 1. Add build script for Java.
2. Add height limitation for code blocks in extra.css.
3. Fix "节点" to "结点".
2023-02-07 04:43:52 +08:00
b14568151c Add TypeScript code and docs to AVL tree and the coding style for Typescript and JavaScript (#342)
* Add TypeScript code and docs to AVL tree and update JavaScript style

* Update the coding style for Typescript and JavaScript
2023-02-07 01:21:58 +08:00
7f4243ab77 fix Pointer recycle (#346) 2023-02-07 01:17:10 +08:00
ea901af217 1. Add the building util of Python
for the markdown docs.
2. Update the deploy.sh
2023-02-06 23:23:21 +08:00
64f251f933 build 2023-02-06 23:10:10 +08:00
44c1d6eca0 deploy 2023-02-06 22:58:57 +08:00
e7fdbe7ffb 堆: 颗 -> 棵 (#343) 2023-02-06 20:22:23 +08:00
33e15da721 堆: 颗 -> 棵 (#341) 2023-02-06 19:58:21 +08:00
4ee3af176b 二叉搜索树: 排序小节 移动到 删除结点代码 的下面 (#340)
* 插入排序: 修改插入排序思想描述

* Update insertion_sort.md

* 二叉搜索树: 排序小节 移动到 删除结点代码 的下面

* fix: 双点 -> 双向

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-06 19:57:19 +08:00
94cba488ef Fix leetcode_two_sum.py 2023-02-06 04:34:01 +08:00
1b0a3a6e69 Update Python codes. 2023-02-06 04:11:22 +08:00
4655534bd6 Update default branch from 'master' to 'main'. 2023-02-06 03:43:58 +08:00
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>
2023-02-06 01:31:09 +08:00
bc88e52955 Add JavaScript and TypeScript code and docs for Section Space Complexity (#331)
* Fix bug before commit 5eae708

* Update queue.md

* Update the coding style for JavaScript

* Add JavaScript and TypeScript code for Section Space Complexity

* Add JavaScript and TypeScript code to docs for Section Space Complexity

* Update hashing_search.js

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-06 01:24:22 +08:00
063501068b Update the coding style for Zig (#336)
* Update the coding style for Zig

* Update array.rs
2023-02-06 01:14:03 +08:00
cb73007495 array_stack.rs (#337)
Co-authored-by: wsl <wslzzy@qq.com>
2023-02-06 01:12:53 +08:00
8a388d8422 update rust codes for hash_map, binary_search, bubble_sort, stack, queue (#330)
* update rust codes

* update rust codes

* update rust codes

* update and add rust codes for hash_map, binary_search, bubble_sort

* update and add rust codes for hash_map, binary_search, bubble_sort

* add rust codes for chapter stack

* add rust codes for chapter queue

* add rust codes for chapter deque
2023-02-05 16:25:42 +08:00
93ca29ca6d feat(graph): add go codes (#314)
* feat(graph): add go codes

* feat(go/graph): add graph_adjacency_list

* doc(graph): add go codes

* fix(graph): fix go codes

* Update graph_adjacency_matrix_test.go

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-05 16:08:08 +08:00
12034c6af3 feat: add Swift codes for graph_operations article (#327) 2023-02-05 15:41:23 +08:00
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>
2023-02-05 15:40:30 +08:00
6778557056 Fix avl_tree.md 2023-02-05 14:18:57 +08:00
e3f0151a7f add js codes to avl_tree.js (#323)
* add js codes to avl_tree.js

* fixed format wrong

* Update avl_tree.js

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-05 14:15:05 +08:00
f14e3e4c57 Update linear_search and hashing_search. 2023-02-04 23:49:37 +08:00
62114ce79a Fix bug before commit 5eae708 (#325)
* Fix bug before commit 5eae708

* Update queue.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 21:26:14 +08:00
ea6a43b2b9 插入排序: 修改插入排序思想描述 (#322)
* 插入排序: 修改插入排序思想描述

* Update insertion_sort.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 18:38:52 +08:00
6fdf3189a4 Update pull_request_template.md 2023-02-04 16:58:11 +08:00
0b16a9f6a9 Part Heap : Code Translation into C++ (my_heap.cpp) (#321)
* 增加my_heap.cpp并补充对应的文档

* 修改heap.md

* Update my_heap.cpp

* Update heap.md

* Update my_heap.cpp

* Update my_heap.cpp

* Update heap.md

* Update my_heap.cpp

* Update my_heap.cpp

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 16:33:46 +08:00
e1abbcbf23 Update #320 2023-02-04 15:58:39 +08:00
e5ae3e1cab add avl tree and heap part cpp code (#320)
* 将avl_tree翻译成c++代码(文档明天补)

* markdown翻译了

* avl_tree.cpp翻译了

* 堆的cpp翻译

* modify the code format

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 15:53:58 +08:00
7c81f8c84f Update pull_request_template.md 2023-02-04 15:22:40 +08:00
55b65dc806 Update binary_search_tree.go 2023-02-04 15:03:51 +08:00
7d0d3df886 Update deque.js and deque.ts 2023-02-04 14:59:24 +08:00
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>
2023-02-04 14:55:11 +08:00
6ca5fa7d93 Update heap.cpp 2023-02-04 14:41:31 +08:00
8e9eecd610 Part Heap : Code Translation into C++ (heap.cpp) (#285)
* 添加heap章节C++版本关于heap的相关操作

* 完善C++版本的heap相关操作

* 完善C++版本的heap相关操作

* fix printHeap function
2023-02-04 14:35:45 +08:00
a95fe26303 Fix Python code styles.
Update hash_map.
2023-02-03 20:03:30 +08:00
15efaca85d copy zig codes of chapter_array_and_linkedlist and chapter_computatio… (#319)
* copy zig codes of chapter_array_and_linkedlist and chapter_computational_complexity to markdown files

* Update time_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-03 19:15:34 +08:00
b39b84acba Update avl_tree 2023-02-03 18:58:01 +08:00
70dead5cd0 Update worst_best_time_complexity,
leetcode_two_sum
2023-02-03 18:53:15 +08:00
592965595e Fix code indentation. 2023-02-03 01:17:09 +08:00
64517f2f46 Update graph operations. 2023-02-03 01:12:37 +08:00
2da45041b1 Update binary_search_tree 2023-02-02 13:54:31 +08:00
29dbe8cd82 Update TypeScript codes. 2023-02-02 03:08:43 +08:00
7d14c9440e Unify the function naming of
queue from `offer()` to `push()`
2023-02-02 01:43:01 +08:00
a0ee691475 fix: resolve build error for commit 5eae708 (#318) 2023-02-02 00:23:48 +08:00
7ce7386bab Add Zig code blocks. 2023-02-01 22:03:04 +08:00