Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit

Permalink
Merge pull request #47 from raywted75/master
Browse files Browse the repository at this point in the history
Fix mistakes in the example
  • Loading branch information
weihanglo authored May 18, 2021
2 parents 770b98c + 95ca623 commit afc84dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sorting/counting_sort/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ Prefix Sum: 0 0 1 3 3 3 4 4 4 5
+--------+--------+--------+--------+--------+--------+
(2, D)
--> prefix sum 為 2,寫入 array[4],並將 prefix sum + 1
--> prefix sum 為 1,寫入 array[1],並將 prefix sum + 1
+--------+--------+--------+--------+--------+--------+
| (1, A) | (2, D) | | (5, B) | (8, C) | |
+--------+--------+--------+--------+--------+--------+
(2, E)
--> prefix sum 為 3(前一步驟 + 1),寫入 array[3],並將 prefix sum + 1
--> prefix sum 為 2(前一步驟 + 1),寫入 array[2],並將 prefix sum + 1
+--------+--------+--------+--------+--------+--------+
| (1, A) | (2, D) | (2, E) | (5, B) | (8, C) | |
Expand Down

0 comments on commit afc84dd

Please sign in to comment.