7b320e14fe
Sync zh and zh-hant versions ( #1801 )
...
* Sync zh and zh-hant versions.
* Unifying "数据体量" -> "数据规模".
2025-08-28 04:51:02 +08:00
5c085b5592
Update performance_evaluation.md ( #1770 )
...
* Update performance_evaluation.md
**修改内容:**
把本节使用的 “输入数据大小” 统一修改为 “输入数据规模”。
**修改原因:**
今天在分析一个函数的复杂度时回看本节,发现这处表述好像存在歧义。阅读本节内容可知,复杂度分析实际是分析算法的运行时间和空间占用与数据规模的关系。 从字面理解,“输入数据的大小” 更像指输入数据的数值大小,而非数据规模。虽然多数场景下,输入数据的数值大小可以通过迭代/递归反映数据规模,但在个别场景下并非如此,如 5.1.2 节 "基于链表实现的栈" 中的 `to_list() `函数:
```python
def to_list(self) -> list[int]:
"""转化为列表用于打印"""
arr = []
node = self._peek
while node:
arr.append(node.val)
node = node.next
arr.reverse()
return arr
```
该函数无形参,其时间复杂度实际指,函数运行时间随着栈中数据数量的增加而呈现的增长趋势,而非随栈中数据数值大小的增加呈现的增长趋势。 因此,为规避歧义,小白提议将本节的“输入数据大小” 改为 “输入数据规模”。
然而,一百个读者有一百个哈姆雷特,或许其他读者读到这里未感觉歧义,且本章后续章节还有多处使用这一表述,若本节修改可能后面也需与其保持统一。或许也可以在本章2.1节插入一个Tip约定这一表述的实际意义。考虑不周,欢迎 K大及评阅大佬指正!
* Update performance_evaluation.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2025-07-20 19:56:15 +08:00
ac0da11157
Bug fixes and improvements ( #1627 )
...
* Update Copyright 2024 to 2025.
* Fix the flex of .profile-cell for mobile devices.
* Update performance_evaluation.md
* 抛出 -> 给出
* Sync zh and zh-hant version.
* Improve the landing page of the English version.
* Bug fixes
* Fix readme-typing-svg
* Update readme-typing-svg
* Bug fixes
* sync zh and zh-hant versions.
2025-01-21 20:00:58 +08:00
3f4220de81
Bug fixes and improvements ( #1380 )
...
* preorder, inorder, postorder -> pre-order, in-order, post-order
* Bug fixes
* Bug fixes
* Update what_is_dsa.md
* Sync zh and zh-hant versions
* Sync zh and zh-hant versions.
* Update performance_evaluation.md and time_complexity.md
* Add @khoaxuantu to the landing page.
* Sync zh and zh-hant versions
* Add @ khoaxuantu to the landing page of zh-hant and en versions.
2024-05-31 16:39:06 +08:00
2b1a98fb61
Use underline format for the technical terms ( #1213 )
...
* Use underline format for the technical terms
* Bug fixes
2024-04-03 03:52:17 +08:00
f6976978dd
Prepare 1.0.0 release ( #1044 )
...
* Update the book with the thrid revised edition
* Fix a typo
* Update the contributors' information
* Update the mindmap
* Update the version number
2024-01-14 03:16:20 +08:00
e720aa2d24
feat: Revised the book ( #978 )
...
* Sync recent changes to the revised Word.
* Revised the preface chapter
* Revised the introduction chapter
* Revised the computation complexity chapter
* Revised the chapter data structure
* Revised the chapter array and linked list
* Revised the chapter stack and queue
* Revised the chapter hashing
* Revised the chapter tree
* Revised the chapter heap
* Revised the chapter graph
* Revised the chapter searching
* Reivised the sorting chapter
* Revised the divide and conquer chapter
* Revised the chapter backtacking
* Revised the DP chapter
* Revised the greedy chapter
* Revised the appendix chapter
* Revised the preface chapter doubly
* Revised the figures
2023-12-02 06:21:34 +08:00
b39c2a94d3
Move docs/zh back to docs.
...
Move docs/overrides to overrides/.
Other fine tunes.
2023-10-08 04:25:06 +08:00
6f7e768cb7
Move docs/* to docs/zh/*
2023-10-08 01:33:09 +08:00
400b3914f6
Move docs/zh back to docs.
2023-10-08 01:22:57 +08:00
f1ef7e9d10
Move documents to a sub-directory
...
to support multi-language selector.
2023-10-06 00:57:28 +08:00
8347c2da36
Update the chapter of
...
introduction and complexity anylysis.
2023-08-28 04:34:25 +08:00
f524b957d4
Finetune and fix
2023-08-24 17:48:35 +08:00
2626de8d0b
Polish the chapter
...
introduction, computational complexity.
2023-08-20 14:51:39 +08:00
5fb728b3d6
Update H1 titles.
2023-08-20 13:37:49 +08:00
c310edb672
Polish the chapter of array and linkedlist
2023-08-17 05:13:19 +08:00
6ef4dc6444
Fix the content
2023-08-10 11:35:16 +08:00
932d14644d
Polish the content
...
Polish the chapter preface, introduction and complexity anlysis
2023-08-08 23:16:33 +08:00
63a0e73df0
Unify punctuation.
2023-07-26 08:59:36 +08:00
3872f94caa
Polish the chapter of data structure.
2023-04-08 04:07:09 +08:00
de6945f55a
Polish the contents
...
1. Array and linked list.
2. Computational complexity.
3. Fix a mistake in counting_sort.md
2023-04-07 22:31:50 +08:00
f83bf7792c
Update the chapter preface and add the chapter appendix
2023-02-27 03:44:54 +08:00
b25aadae6f
Remove the file headers from the docs.
2023-02-26 02:19:40 +08:00
88b00151b0
Remove the heading numbers
...
in all the source docs.
2023-02-16 03:39:01 +08:00
87f0546f71
病句修改,缺少谓语 ( #350 )
...
* 病句修改,缺少谓语
* Update performance_evaluation.md
* Update performance_evaluation.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-09 00:56:37 +08:00
eb0afc98ec
Number the H1 and H2 headings.
2023-01-31 03:37:50 +08:00
aaa2ff29f9
Fix all the ** (bolded symbols).
2023-01-09 22:39:30 +08:00
694ea4f665
Modify 。** to **。 for better visualization.
2023-01-07 20:34:32 +08:00
0b778f27a1
Update time complexity.
2023-01-07 17:12:25 +08:00
f3ef226874
Remove the spaces between “ ” and 中文 aside.
2022-12-21 01:37:58 +08:00
57fb315b4a
Update AVLTree.
2022-12-18 22:54:42 +08:00
2928c899ac
Correct a terminology mistake,
...
which is revealed by Prof. Deng.
2022-12-07 21:38:58 +08:00
28c134c15f
Correct the usage of 地 and 得.
2022-12-03 01:58:23 +08:00
33d79ea6da
Update docs for deployment on Vercel.
2022-11-22 17:47:26 +08:00