Commit Graph

2058 Commits

Author SHA1 Message Date
Yudong Jin
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
Sammy
5dc9dd879c
translation: Update chapter_computational_complexity/performance_evaluation.md (#1557)
* Update chapter_computational_complexity/performance_evaluation.md

* fixed translation based on the suggestions
2025-01-21 19:33:23 +08:00
KawaiiAsh
4db90555a7
Update binary_tree.md (#1618)
* Update binary_tree.md

* Update binary_tree.md

Thank you for the fix!

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-01-21 19:29:09 +08:00
RafaelCaso
aa8a7f59d3
translation: update searching_algorithm_revisited.md (#1559)
* Update searching_algorithm_revisited.md

* Update searching_algorithm_revisited.md

fix typo in original commit
2025-01-21 19:19:58 +08:00
Peter Chen; Kohan Chen
18027ee26c
add notation of m and n in analysis of complexity (#1621)
* fix: notation of m and n in analysis of complexity

As title, complexity variable is not defined previously.

* Update dp_solution_pipeline.md

* Update dp_solution_pipeline.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-01-21 19:18:03 +08:00
llql1211
98daefa67a
Update heap_sort.md (#1626) 2025-01-21 18:51:12 +08:00
Rui
1a8b4f6364
Update linkedlist_deque.py (#1625)
According to PEP 8, "Comparisons to singletons like None should always be done with is or is not, never the equality operators."
2025-01-21 18:46:41 +08:00
qinmu
9c78c513c2
translation: ram and cache (#1591)
* doc: en translation for ram and cache

* doc: update currency from yuan to dollars

* doc: update EOF character

* doc: remove the redundant EOS character

* doc: remove redundant space character and polish several translations

* doc: polish translations

* doc: remove unnecessary 'the' and update translations

* Update ram_and_cache.md

* Update ram_and_cache.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2025-01-14 03:19:12 +08:00
linyejoe2
828405d234
'丟擲' is not common for zh-hant in this place, '說' or like zh useing '拋出' will be a better translation. (#1607) 2025-01-14 03:09:40 +08:00
Yuelin Xin
a2cec10e7f
translation: optimized translation of sorting/sorting_algorithm.md (#1590)
* optimize sorting_algo

* update terminology
2025-01-14 03:04:51 +08:00
rongyi
7503a33e8c
fix rust linked list (#1609) 2025-01-14 02:58:17 +08:00
Yudong Jin
2a955f937c
Bug fixes and improvements (#1602)
* Fix the search panel on mobile devices.

* Fix the search panel for mobile devices.

* Update about_the_book.md
2025-01-02 21:50:42 +08:00
趙子賢
636b0738fa
fix(hash_collision): typo of zh-Hant translation in "線性探查" section (#1599)
* Fix typo of zh-Hant translation in "線性探查" section

* Fix the same typo in hash summary Q&A section

* Update hash_collision.md

* Update summary.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-12-31 19:20:44 +08:00
steventimes
a36b301464
translation: Update chap_tree/summary.md (#1555)
* Update summary.md

* Update summary.md

* change_2_pull_request
2024-12-31 19:15:04 +08:00
Flamingo
292b107af2
fix(bubble-sort): update incorrect variable name in test output (#1595) 2024-12-20 17:15:22 +08:00
Thomas
4db5c19011
translation: graph summary updates (#1587)
* translation: graph summary updates

* resolve grammar issues
2024-12-12 20:11:28 +08:00
Yudong Jin
356cc35e8a
Update the links to the zh-hant version of the PDF. (#1588) 2024-12-07 23:01:46 +08:00
Yudong Jin
dad0a3fd95
Prepare 1.2.0 release (#1585)
* Sync zh and zh-hant versions

* Update the list of contributors.

* Update time_complexity_simple_example.png

* Reduce size of the RGBA images for zh-hant version.

* Sync the zh-hant version of terminology.md

* Prepare 1.2.0 release

* Update the contributors list.
2024-12-06 09:03:43 +08:00
pzpz
e41b0a3156
Fix the function for printing the queue (#1573)
* renfined!

* Add toArray() function to array_queue.c and array_deque.c

---------

Co-authored-by: Xi-Row <astruggle123@putlook.com>
Co-authored-by: krahets <krahets@163.com>
2024-12-04 19:38:30 +08:00
K3v123
b6939da46c
translation: Update replace_linear_by_hashing.md (#1551)
* translation: Update replace_linear_by_hashing.md

refined some parts of it.

* Update replace_linear_by_hashing.md

* Update replace_linear_by_hashing.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-12-04 18:05:03 +08:00
Yudong Jin
abf1f115bf
Bug fixes and improvements (#1581)
* A bug fixes

* Sync zh and zh-hant versions.

* Fix a question in chapter_array_and_linkedlist/summary.md

* Optimize a definition in what_is_dsa.md

* Fix the Contributing guidelines for Chinese-to-English.

* Add a q&a in chapter_array_and_linkedlist/summary.md

* Sync zh and zh-hant versions.

* Update .gitignore

* Sync zh and zh-hant versions.
2024-12-04 17:58:28 +08:00
Thomas
6348dbe18d
translation: binary search updates (#1569)
* translation: binary search updates

* fix minor gramma and expression issues
2024-12-04 17:48:48 +08:00
YuZou
ca774eefbf
Update time_complexity.md (#1578)
* Bug fixes and improvements (#1577)
 * correct the implement of exp_recur function and remove +1 operation from the function to simulate the cell division process

* Update time_complexity.rs

* Update time_complexity.md

---------

Co-authored-by: zouy26 <zouy26@chinaunicom.cn>
Co-authored-by: Yudong Jin <krahets@163.com>
2024-12-04 17:36:11 +08:00
Yudong Jin
2a9db6d039
Bug fixes and improvements (#1572)
* Sync zh and zh-hant versions.

* Remove the polyfill.io link from mkdocs.yml

* Update contributors' info for code reviewers and en/zh-hant versions reviewers.

* Fix graph.md

* Update avatars for English version reviewers.

* Sync zh and zh-hant versions.

* Fix two_sum_brute_force.png

* Sync zh and zh-hant versions.
Optimize structrue of index.html.

* Format index.html
2024-11-25 19:21:11 +08:00
Anurag Pandey
01a5f7b09f
Improved HTML Structure for Better Accessibility and Maintainability (#1434)
* Improved HTML Structure for Better Accessibility and Maintainability

Commit Description:

    Semantic Sectioning and Class Names:
        Updated class names to be more descriptive.
        Ensured better readability and maintainability.

    Alt Text for Images:
        Added alt attributes to all <img> tags to improve accessibility.

    SVG Elements:
        Added appropriate role attributes to SVG elements.

    External Links:
        Updated external links to open in a new tab using target="_blank".
        Added rel="noopener noreferrer" for security reasons.

    CSS Separation:
        Inlined styles for demonstration purposes but recommended moving them to a separate stylesheet for better separation of concerns.

* Update index.html

* Update index.html

* Update index.html

* Update index.html

* Update index.html

* Update index.html

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-11-25 19:15:06 +08:00
sslmj2020
894e3d536b
Update array_binary_tree.cpp (#1568)
打印的小错误
2024-11-24 00:39:33 +08:00
Yudong Jin
14608d4e92
Update CONTRIBUTING.md (#1565) 2024-11-20 20:38:48 +08:00
Yudong Jin
954169d618
Update CONTRIBUTING.md (#1564) 2024-11-20 19:45:03 +08:00
qinmu
05e0e1d244
translation: chapter_tree/binary_tree.md (#1502)
* doc: translate chapter_tree/binary_tree.md to English

* Update binary_tree.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-11-17 20:49:36 +08:00
K3v123
fb04ff6535
translation update: Update summary.md (#1549)
* translation update: Update summary.md

added and refined some parts.
I feel like that this chapter is already pretty well translated.

* translation: Update summary.md

rewritten some parts of the sentence as per Thomas suggested.
please note that some parts I re-wrote it a bit differently.

* translation update: summary.md

Added what Ymmma suggested
2024-11-17 20:49:26 +08:00
K3v123
9a2c1355ec
translation: Update index.md (#1548)
* translation: Update index.md

refined some parts of the sentences.

changed 'in' to 'on' as it conveys a sense of movement along a path

* translation: Update index.md

changed some words per Thomas's suggestions.
2024-11-17 20:47:41 +08:00
Fleey
6a74972080
fix(lang: c, chapters: searching, sorting): Some serious errors (#1531)
* fix: correct hash table insertion

* Use a pointer to a pointer instead of a single pointer in the insert function, ensuring proper updates to the hash table
* Bug fixes: This fixes issues with empty results.

* fix: correct issues in radix sort

* Replaced loop-based array copy with memcpy to ensure efficient memory copying in countingSortDigit
* Fixed a bug in radixSort where the maximum value search loop skipped the last element
* Bug fix: Ensures all elements are checked when determining the maximum value in the array

* perf: improve memory management by adding explicit memory release

* revert: Revert to using the old loop override array method and drop specific api's like memcpy.
2024-11-10 02:00:53 +08:00
Yudong Jin
73eab4c0ec
Update reviewer profiles (#1547)
* Sync zh and zh-hant versions.

* Remove the polyfill.io link from mkdocs.yml

* Update contributors' info for code reviewers and en/zh-hant versions reviewers.

* Fix graph.md

* Update avatars for English version reviewers.

* Sync zh and zh-hant versions.
2024-11-07 20:56:16 +08:00
Flamingo
57cf6b1ea6
fix some typos (#1540) 2024-10-31 21:26:28 +08:00
hpstory
b3b10f2300
fix(csharp): priority queue comparer initialization (#1542) 2024-10-31 21:25:32 +08:00
rongyi
68a61f23d5
make dfs same as c/c++ and other small improvement (#1543) 2024-10-31 21:24:56 +08:00
qinmu
7d708b4fce
doc: translate chapter_tree/index.md to English (#1501)
* doc: translate chapter_tree/index.md to English

* doc: update translations
2024-10-29 17:25:46 +08:00
rongyi
ef3010bd77
idomatic structure rust code, no include macro (#1528) 2024-10-23 18:49:47 +08:00
Akshit
0c60037e56
Update avl_tree.md (#1524)
Syntax for avl trees updated
2024-10-10 18:23:54 +08:00
Yudong Jin
5849ae4ada
Sync zh and zh-hant versions. (#1523) 2024-09-28 09:28:44 +08:00
ZhongGuanbin
dedb4aaced
Update linked_list.md (#1521)
双向链表的Dart代码可能存在语法错误,因为前驱节点和后继节点可能为空,所以需要添加问号,否则无法通过空安全检查
2024-09-28 09:13:18 +08:00
Spark
40d13cb81f
doc: translate chapter_tree/binary_tree_traversal.md (#1510)
* Update binary_tree_traversal.md

* Update binary_tree_traversal.md with review
2024-09-24 18:00:36 +08:00
bongbongbakudan
c12d01a752
Update my_list.js (#1511)
修改insert注释
2024-09-24 17:57:34 +08:00
steventimes
2737357242
translation: refine translation of binary_search_tree.md (#1484)
* translation_refine_bst

Signed-off-by: steventimes <stevenyang0316@gmail.com>

* Update binary_search_tree.md

* Update binary_search_tree.md

---------

Signed-off-by: steventimes <stevenyang0316@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2024-09-12 17:46:08 +08:00
Enlightenus
e0d617edbb
translation: refine translation of hash_map.md (#1483)
* Update hash_map.md

* Update hash_map.md

* Update hash_map.md to improve concise
2024-09-12 17:39:54 +08:00
rongyi
7a345fc66b
Idiomatic rust (#1505) 2024-09-12 17:38:16 +08:00
Yuelin Xin
1cc310a682
refine graph_traversal.md (#1400) 2024-09-02 14:09:27 +08:00
Yuelin Xin
eecf6bac3f
refine graph_operations.md (#1399) 2024-09-02 14:08:59 +08:00
Risun
2cd2a94ce6
fix(backtracking): minor mistake in Rust code for subset_sum_ii (#1487)
* fix(backtracking): minor mistake in Rust code for subset_sum_ii

* Update subset_sum_ii.rs

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-08-26 10:12:47 +08:00
rongyi
8a6ce26f6a
idiomatic rust (#1485)
* idomatic rust

* More idiomatic rust

* make rust code more idiomatic

* update
2024-08-23 02:33:47 +08:00