Commit graph

2040 commits

Author SHA1 Message Date
CharlesHsu
71b7cc8ef6
Enhance accessibility of MathJax script loading with cdnjs (#1304)
* Add fallback mechanism for MathJax script loading to enhance global accessibility.

* Update mkdocs.yml

* Update mathjax.js

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-26 19:13:05 +08:00
khoaxuantu
9e7fbf249f
feat: add ruby code - chapter graph (#1303) 2024-04-26 17:30:55 +08:00
K3v123
69cb171dd8
Translation: Update index.md (#1286)
* Translation: Update index.md

simplified the words using "vibrant" instead. used illustrate instead of demonstrate because I'm thinking the image "illustrates" the concept.

* Translation: Update index.md

Changed to what  yuelinxin has suggested. thanks for the suggestion.
2024-04-23 21:23:16 +08:00
Shyam Chen
1a99dd420f
feat(JavaScript): Add the workflow file for CI check (#1296)
* feat(JavaScript): Add the workflow file for CI check

* Apply suggestions from code review
Co-authored-by: krahets <krahets@163.com>

* Test failure

* Update javascript.yml

* Test success

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-22 17:51:44 +08:00
krahets
a7f4340e55 Update README 2024-04-22 17:14:14 +08:00
huangjikun
54ced94e4f
Fix incorrect indexes in two_sum.go (#1297) 2024-04-22 02:28:54 +08:00
Yudong Jin
f616dac7da
Bug fixes and improvements (#1298)
* Fix is_empty() implementation in the stack and queue chapter

* Update en/CONTRIBUTING.md

* Remove "剩余" from the state definition of knapsack problem

* Sync zh and zh-hant versions

* Update the stylesheets of code tabs

* Fix quick_sort.rb

* Fix TS code

* Update chapter_paperbook

* Upload the manuscript of 0.1 section

* Fix binary_tree_dfs.rb

* Bug fixes

* Update README

* Update README

* Update README

* Update README.md

* Update README

* Sync zh and zh-hant versions

* Bug fixes
2024-04-22 02:26:32 +08:00
khoaxuantu
74f1a63e8c
feat: add ruby code blocks - chapter tree (#1293) 2024-04-19 23:42:20 +08:00
Shyam Chen
587344da62
feat(TypeScript): Add the workflow file for CI check (#1280)
* feat(TypeScript): Add the workflow file for CI check

* fix: Install TypeScript Execute (tsx)

* test: Test failed

* test: Test successful

* test: on windows

* Add a bug

* feat: type checking

* test: Test successful

* feat: add main

* fix: use process

* feat: use es-main

* Test failure

* feat: streamlined configuration

* Apply suggestions from code review
Co-authored-by: Yudong Jin <krahets@163.com>

* feat: remove lock file

* Test failure

* Test success

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-19 18:48:58 +08:00
cy-by-side
499419e4ce
Create quick_sort.rb (#1223)
* Create quick_sort.rb

* Update quick_sort.rb

* Update quick_sort.rb

* Update quick_sort.rb
2024-04-19 18:26:54 +08:00
khoaxuantu
19488b13c4
feat: add ruby codes - chapter tree (#1288) 2024-04-19 15:50:43 +08:00
Shyam Chen
a587b01c4d
feat(appendix): TypeScript installation (#1279)
* feat(appendix): TypeScript installation

* Update installation.md

* Update installation.md

* Update installation.md

* Update installation.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-18 01:22:30 +08:00
K3v123
411a4b8a46
translation: Update chapter_graph/index.md (#1266)
* Translation: Update index.md

Just changed the words a little. honestly the Machine translation is good already.

* Translation: Update index.md

changed every to each.

* Translation: Update index.md

changed back to vast.
2024-04-15 18:45:07 +08:00
khoaxuantu
be9931c8a1
feat: Add Ruby code - chapter "Hashing" (#1276)
* feat: add ruby code - chapter hashing

* feat: add ruby code blocks - chapter hashing

* fix: comments
2024-04-15 16:20:26 +08:00
nuquist19
2b11639103
fix(C): Update common.h (#1278)
请问这里为了防止重复包含头文件是不是应该改成COMMON_H,因为头文件名字叫做common.h
2024-04-15 14:54:28 +08:00
Yudong Jin
d484b08c15
Prepare 1.1.0 release (#1274)
* Update bucket_sort.c

* Fix the comments in quick_sort.c

* Update the announce badge

* Sync zh and zh-hant versions

* Update contributors list.

* Sync zh and zh-hant versions.

* Sync zh and zh-hant versions.

* Update the contributors list

* Update the version number
2024-04-14 20:46:20 +08:00
jiawenshi
16942dfe32
fix(C): fix the array initialization in coin_change.c (#1277)
* add

* Update coin_change.c

* Update coin_change.c

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-14 17:30:21 +08:00
curtishd
4d9bbe72e1
Improve the consistency between code and comments in Kotlin (#1268)
* style(kotlin): Make code and comments consistent.

* style(kotlin): convert comment location.

* style(c): Add missing comment.

* style(kotlin): Remove redundant semicolon, parenthesis and brace

* style(kotlin): Put constants inside the function.

* style(kotlin): fix unnecessary indentation.

* style(swift): Add missing comment.

* style(kotlin): Add missing comment.

* style(kotlin): Remove redundant comment.

* style(kotlin): Add missing comment.

* Update linked_list.kt

* style(csharp,js,ts): Add missing comment.

* style(kotlin): Remove empty lines.

* Update list.cs

* Update list.js

* Update list.ts

* roll back to commit 1

* style(cs,js,ts): Add missing comment in docfile.

* style(kotlin): Use normal element swapping instead of scope functions.
2024-04-13 20:09:39 +08:00
Yudong Jin
b0d6fa0f38
translation: Add the contributing guidelines for Chinese-to-English (#1238)
* Add the contributing guidelines for Chinese-to-English

* Update

* Update

* Bug fixes

* Update

* Comments addressed

* Comments addressed

* Comments addressed

* Refine the tip

* Update en/README.md

* Fix line breaks

* Fix the tip

* Update README
2024-04-12 19:14:49 +08:00
bluebean-cloud
92337671a6
feat: Add Ruby code - chapter "Searching" (#1262)
* create RUBY searching files & finish two_sum.rb

* finish linear_search.rb

* finish hashing_search.rb

* finish binary_search.rb

* finish binary_search_insertion.rb

* finish binary_search_edge.rb

* fix: change 'or' to '||'

* fix: Adjust the code style(ruby searching)

* fix: repair file name

* fix: Adjust the output format

* fix: fix 0...nums.length & delete useless require & change into __FILE__==0 block
2024-04-12 03:10:15 +08:00
Lanjing Gong
aca850244b
fix(C): fix array_hash_map.c and bucket_sort.c (#1272)
* fix: Fix coding error, https://github.com/krahets/hello-algo/discussions/440#discussioncomment-8958379

* fix: Fix issue 1237 https://github.com/krahets/hello-algo/issues/1237

* Update array_hash_map.c

* Update bucket_sort.c

* Update bucket_sort.c

* Update array_hash_map.c

* Update bucket_sort.c

* Update bucket_sort.c

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-12 03:03:18 +08:00
cy-by-side
49e6a208f6
Create insertion_sort.rb (#1222)
* Create insertion_sort.rb

* Update insertion_sort.rb

* Update insertion_sort.rb

* Update insertion_sort.rb
2024-04-11 20:52:54 +08:00
Yudong Jin
b2f0d4603d
Many bug fixes and improvements (#1270)
* Add Ruby and Kotlin icons
Add the avatar of @curtishd

* Update README

* Synchronize zh-hant and zh versions.

* Translate the pythontutor blocks to traditional Chinese

* Fix en/mkdocs.yml

* Update the landing page of the en version.

* Fix the Dockerfile

* Refine the en landingpage

* Fix en landing page

* Reset the README.md
2024-04-11 20:18:19 +08:00
Yudong Jin
07977184ad
Add the chapter of hello algo for the en version (#1269) 2024-04-11 20:07:30 +08:00
khoaxuantu
6404a53fc6
chore: update driver code (#1265) 2024-04-10 22:38:48 +08:00
curtishd
a3ee733e7b
fix(Kotlin): Remove empty lines (#1264) 2024-04-10 21:19:19 +08:00
echoless
30fd4ef646
添加for循环的花括号以增加可读性和可维护性 (#1249) 2024-04-10 19:01:22 +08:00
bluebean-cloud
ab536479d0
feat: add correct comment for RUBY (#1247)
* feat: add correct comment for RUBY

* fix: use correct multi-line comments for RUBY
2024-04-10 18:11:19 +08:00
curtishd
1623e3c6a8
feat(Kotlin): Replace value with _val (#1254)
* ci(kotlin): Add workflow file.

* Update kotlin.yml

* style(kotlin): value -> _val

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-10 18:09:43 +08:00
curtishd
39e2e1a5c1
feat(Kotlin): Add the workflow file for CI check (#1251)
* ci(kotlin): Add workflow file.

* Update kotlin.yml

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-09 20:54:30 +08:00
Yudong Jin
78f71eeacb
Bug fixes and improvements (#1252)
* Bug fixes

* Fix the landing page of zh-hant version

* Bug fixes and add an Q&A for chapter_data_structure

* Update the mindmap for zh-hant version
2024-04-09 19:55:59 +08:00
curtishd
896d9a64f6
Refine kotlin code (#1241)
* style(kotlin): Improve kotlin codes readability.

* remove redundant quotes.

* style(kotlin): improve codes readability.

* style(kotlin): refine kotlin codes.

* Create kotlin.yml

* Create kotlin.yml

* Delete .github/workflows/kotlin

* Delete .github/workflows/main.yml

* Create kotlin.yml

* Update kotlin.yml

* Delete .github/workflows/kotlin.yml

* Create hello_world_workflow.main.kts

* Delete .github/workflows/hello_world_workflow.main.kts

* remove empty line
2024-04-09 16:26:58 +08:00
khoaxuantu
41dd677338
Add Ruby test CI (#1242)
* test: add test all Ruby code

* test: add ruby test ci

* Update ruby.yml

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-09 03:20:04 +08:00
Dr.XYZ
62572bf576
微信關聯 -> 微信聯繫 (#1244) 2024-04-09 02:05:14 +08:00
curtishd
3fe8f67ba9
Improve readability of Kotlin code (#1236)
* style(kotlin): Improve kotlin codes readability.

* remove redundant quotes.

* style(kotlin): improve codes readability.
2024-04-08 16:09:34 +08:00
Spark
ba1df4a3e8
translation: chapter_hashing/summary.md (#1201)
* Update summary.md

* Update summary.md with suggestions

* Update summary.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-07 19:04:01 +08:00
khoaxuantu
e4784ba939
feat: add ruby code blocks - chapter stack and queue (#1234) 2024-04-07 18:58:56 +08:00
curtishd
5725b8a0f1
Improve readability of kotlin code (#1233)
* style(kotlin): Improve kotlin codes readability.

* remove redundant quotes.
2024-04-07 18:56:59 +08:00
khoaxuantu
e121665772
feat: add ruby code - chapter stack and queue (#1230) 2024-04-07 14:48:48 +08:00
rongyi
f901a31bae
fix(Rust): no need to clone in hash put fn (#1226)
* no need to clone in hash put fn

* fmt rust code

* make code more readable

* Change vec append to extend, more friendly to rookie rust dev

* drop comment
2024-04-07 14:46:21 +08:00
khoaxuantu
bd54594a90
feat: add ruby code block - chapter data structure (#1227) 2024-04-07 01:44:18 +08:00
khoaxuantu
4fadad50ba
fix: Some Ruby code (#1231)
* fix: ruby code block - chapter computational complexity

* fix: ruby code - chapter array and linkedlist
2024-04-07 01:39:45 +08:00
Yang Le
db164f6703
fix memory leak in the C code (#1203)
* fix memory leak when size(deque) == 1

* fix memory leak
2024-04-07 01:36:55 +08:00
Nan Lei
0503e740ad
Update symbol format in LaTex of number encoding section (#1193) 2024-04-07 01:33:42 +08:00
curtishd
2655a2f66a
Simplify kotlin code and improve code readability (#1198)
* Add kotlin code block for chapter_hashing

* Add kotlin code block for chapter_heap.

* Add kotlin code block for chapter_stack_and_queue and chapter_tree

* fix indentation

* Update binary_tree.md

* style(kotlin): simplify code and improve readability.

* simplify kt code for chapter_computational_complexity.

* style(kotlin): replace ArrayList with MutableList.

* Update subset_sum_i.kt

Use kotlin api instead of java.

* Update subset_sum_ii.kt

use kotlin api instead of java

* style(kotlin): replace ArrayList with mutablelist.

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2024-04-07 01:31:58 +08:00
krahets
931d8f5089 Update README 2024-04-06 04:05:39 +08:00
Yudong Jin
6e570e2863
Update README for zh-hant version (#1228)
* Bug fixes

* Fix the term in heap figures

* Unify the font of the chapter covers for the zh, en, and zh-Hant version

* Sync the zh-hant vertion with the main branch

* Update README for testing

* Update README for testing

* Update README for testing

* Update README for zh, en, zh-hant version

* Fix the issue links

* Update README

* Update README

* edition -> version
2024-04-06 03:57:46 +08:00
Yudong Jin
5f7385c8a3
feat: Traditional Chinese version (#1163)
* First commit

* Update mkdocs.yml

* Translate all the docs to traditional Chinese

* Translate the code files.

* Translate the docker file

* Fix mkdocs.yml

* Translate all the figures from SC to TC

* 二叉搜尋樹 -> 二元搜尋樹

* Update terminology.

* Update terminology

* 构造函数/构造方法 -> 建構子
异或 -> 互斥或

* 擴充套件 -> 擴展

* constant - 常量 - 常數

* 類	-> 類別

* AVL -> AVL 樹

* 數組 -> 陣列

* 係統 -> 系統
斐波那契數列 -> 費波那契數列
運算元量 -> 運算量
引數 -> 參數

* 聯絡 -> 關聯

* 麵試 -> 面試

* 面向物件 -> 物件導向
歸併排序 -> 合併排序
范式 -> 範式

* Fix 算法 -> 演算法

* 錶示 -> 表示
反碼 -> 一補數
補碼 -> 二補數
列列尾部 -> 佇列尾部
區域性性 -> 區域性
一摞 -> 一疊

* Synchronize with main branch

* 賬號 -> 帳號
推匯 -> 推導

* Sync with main branch

* First commit

* Update mkdocs.yml

* Translate all the docs to traditional Chinese

* Translate the code files.

* Translate the docker file

* Fix mkdocs.yml

* Translate all the figures from SC to TC

* 二叉搜尋樹 -> 二元搜尋樹

* Update terminology

* 构造函数/构造方法 -> 建構子
异或 -> 互斥或

* 擴充套件 -> 擴展

* constant - 常量 - 常數

* 類	-> 類別

* AVL -> AVL 樹

* 數組 -> 陣列

* 係統 -> 系統
斐波那契數列 -> 費波那契數列
運算元量 -> 運算量
引數 -> 參數

* 聯絡 -> 關聯

* 麵試 -> 面試

* 面向物件 -> 物件導向
歸併排序 -> 合併排序
范式 -> 範式

* Fix 算法 -> 演算法

* 錶示 -> 表示
反碼 -> 一補數
補碼 -> 二補數
列列尾部 -> 佇列尾部
區域性性 -> 區域性
一摞 -> 一疊

* Synchronize with main branch

* 賬號 -> 帳號
推匯 -> 推導

* Sync with main branch

* Update terminology.md

* 操作数量(num. of operations)-> 操作數量

* 字首和->前綴和

* Update figures

* 歸 -> 迴
記憶體洩漏 -> 記憶體流失

* Fix the bug of the file filter

* 支援 -> 支持
Add zh-Hant/README.md

* Add the zh-Hant chapter covers.
Bug fixes.

* 外掛 -> 擴充功能

* Add the landing page for zh-Hant version

* Unify the font of the chapter covers for the zh, en, and zh-Hant version

* Move zh-Hant/ to zh-hant/

* Translate terminology.md to traditional Chinese
2024-04-06 02:30:11 +08:00
KeiichiKasai
33d7f8a2e5
fix: fixed the incorrect use of Chinese designators (#1224) 2024-04-05 16:35:50 +08:00
cy-by-side
d8cae21da3
Fix the driver code of quick_sort.cpp (#1219) 2024-04-04 19:37:18 +08:00