hpstory
b43de88f71
feat(csharp): add csharp code for charper greedy ( #645 )
1 year ago
krahets
bba62bbe75
Fix the code of preorder_traversal_iii_compact
1 year ago
hpstory
2af77ff565
feat(csharp): add csharp code for array binary tree ( #632 )
1 year ago
krahets
c54536d1a1
Modify the problem of preorder_traversal_iii
1 year ago
krahets
4e13755023
Add implementation of array binary tree.
...
Rewrite the tree serialization and deserialization methods.
Add applications of array and linked list.
1 year ago
hpstory
7a6fd4b3dd
feat(csharp): add csharp code for charper divide and conquer ( #628 )
1 year ago
hpstory
5c09add1ec
feat(csharp): add csharp code for edit distance ( #604 )
1 year ago
hpstory
c9a8b0a9ea
feat(csharp): add csharp code for unbounded knapsack ( #596 )
1 year ago
krahets
ad0fd45cfb
Add Java and C++ code for the chapter of DP.
1 year ago
krahets
465dafe9ec
Update the text and code of DP.
1 year ago
hpstory
5ea016816a
fix(csharp): fix csharp method name in knapsack ( #592 )
...
* fix(csharp): fix csharp method name in knapsack
* feat(csharp): add csharp code for min path sum
* move INF define into method
* change INF to int max value
1 year ago
krahets
cddddb8b8b
Update knapsack_problem and intro_to_dp
...
Fix avl_tree
1 year ago
hpstory
cbfb9e59ad
feat(csharp): add csharp code for knapsack ( #585 )
1 year ago
hpstory
bf1bccc1ae
feat(csharp): add csharp code for charper dynamic programming ( #574 )
...
* feat(csharp): add csharp code for charper dynamic programming
* add climbing_stairs_constraint_dp
1 year ago
hpstory
4722e7bca7
feat(csharp/hashing): add code and update docs to chapter hashing ( #568 )
...
* feat(csharp/hashing): add code and update docs to chapter hashing
* revert linked list to list
1 year ago
hpstory
ff58d4113c
feat(csharp/backtracking): add subset_sum_i, _ii, _i_naive ( #567 )
1 year ago
krahets
9fc1a0b2b3
Update n_queens code.
1 year ago
hpstory
8334df1b2b
feat(csharp): add top_k ( #554 )
1 year ago
Yudong Jin
9563965a20
Add the codes of hashmap ( #553 )
...
of chaining and open addressing
1 year ago
hpstory
671fbc84ee
feat(csharp): add binary_search_edge, heap_sort, selection_sort ( #527 )
1 year ago
krahets
b39e79be85
Fix remove() in binary search tree.
2 years ago
krahets
eb8df49993
Update bubble sort and insertion sort.
2 years ago
krahets
f6d290d903
Update the comments of bubble sort
...
and insertion sort
2 years ago
krahets
d95c628eef
Fix the test case of binary search.
2 years ago
krahets
d3cc149c5a
Merge the chapter of binary tree and searching.
2 years ago
krahets
c3e7455285
Refactor the section of bianry search.
2 years ago
krahets
399e5df39a
Polish some cotents.
2 years ago
krahets
817b4598d5
Fix a comment in binary_search_tree code
2 years ago
krahets
f35020b335
Fix bucket_sort.
2 years ago
krahets
fe69f7240d
Add figures to replace_linear_by_hashing.md
2 years ago
hpstory
40319e7f30
refactor: use global using to reduce usings in each file ( #486 )
2 years ago
hpstory
7b1de228a0
feat(csharp/backtracking): add csharp code in n queens ( #485 )
...
* feat(csharp/backtracking): add csharp code in n queens
* fix format
* Update n_queens.cs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
bc77a81330
Update the codes of backtracking.
2 years ago
krahets
9c070a028f
Update the code of permutations I and II
2 years ago
hpstory
918380b56a
feat(csharp/backtracking): add csharp code in permutations ( #478 )
...
* feat(csharp/backtracking): add csharp code in permutations
* Update permutations_i.cs
* Update permutations_ii.cs
* Update permutations_ii.cs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
40e6d2b415
Rename the common modules.
2 years ago
krahets
145975b335
Rename the common modules in Java, C++ and C.
2 years ago
krahets
de579aa3f4
Fix the file headers.
2 years ago
krahets
73dcb4cea9
Reformat the C# codes.
...
Disable creating new line before open brace.
2 years ago
krahets
bad759b4f8
Rename the naming of the coding files
...
in backtracking algorithm.
Add the typedef to docs.
2 years ago
hpstory
9eeefff447
refactor: add/refactor method in include, simplified print code ( #471 )
2 years ago
Yudong Jin
881d573790
Refactor the articles related to searching algorithm. Add the chapter of binary search. Add the section of searching algorithm revisited. ( #464 )
2 years ago
hpstory
878f12f701
feat(csharp/backtracking): add csharp code in backtracking ( #463 )
2 years ago
krahets
c8344e8636
Fix C# codes for the bucket sort,
...
counting sort and radix sort
2 years ago
hpstory
3b96ab6be9
feat(csharp/sorting): add bucked_sort, counting_sort, radix_sort ( #455 )
...
* feat(csharp/sorting): add bucked_sort, counting_sort, radix_sort
* use top level statements
2 years ago
krahets
f7ae9c8a02
Fix the return type of binary search tree and avl tree
2 years ago
krahets
0bec52d7cc
Polish the chapter of heap, introduction, preface.
...
Replace "其它" with "其他"
2 years ago
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 ( #452 )
...
* Replace 结点 with 节点
Update the footnotes in the figures
* Update mindmap
* Reduce the size of the mindmap.png
2 years ago
krahets
518b9efabc
Update a comment in array_hash_map
2 years ago
krahets
d5afd93571
Update array_hash_map
2 years ago
Yudong Jin
28aacccf44
refactor: Replace 'poll' with 'pop' in Heap ( #416 )
2 years ago
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque ( #415 )
2 years ago
hpstory
7d55f82508
feature: Add csharp code array_deque and linkedlist_deque ( #405 )
...
* feature: Add csharp code array_deque and linkedlist_deque
* fix code style issue in comments
2 years ago
hpstory
b6c9b01d96
feature: Add csharp code graph_bfs and graph_dfs ( #404 )
...
* add csharp code graph_bfs and graph_dfs, modify graph adjacency list class inaccessable
* remove unnecessary using
* fix code style issue in comments
2 years ago
krahets
9ea24e8b26
Change the operations sequence of the likedlist's insert() method.
2 years ago
krahets
adbb12c011
Fix a comment in graph_adjacency_list
2 years ago
krahets
0b72fef381
Fix quick_sort.py
2 years ago
Leo.Cai
d249c8802e
add chapter_sorting by dart ( #366 )
...
* add chapter_sorting by dart
* fixed style of dart and bug mentioned before
* alter min value of dart
* Update radix_sort.dart
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
方圆
f0d8d8b1b0
feat: add ArrayDeque ( #348 )
...
* 双向队列: java 代码
* 双向队列: markdown 内容
* Rewrite array_deque.java
Update array_queue.java, linkedlist_deque.java
* Add ArrayDeque figures and rewrite the contents
---------
Co-authored-by: krahets <krahets@163.com>
2 years ago
krahets
0fa78e4b3b
Update graph_adjacency_list.java, .cs
2 years ago
ZJKung
f0b092fec4
Add C# code for the chapter Heap and Graph ( #324 )
...
* add : C# heap ,graph, fix type "sift"=>"shift"
* chore: rename "shift" to "sift"
* add: heap,graph C# sample code ,fix format
* fix md format
* fix md intend foramt
* fix basic_operation_of_graph.md format
* fix md format
* fix md format
* fix indentation format
* chore: fix my_heap.cs test
* fix: test and doc typo
* fix bug for commit 5eae708
(#317 )
* Add Zig code blocks.
* fix: resolve build error for commit 5eae708
(#318 )
* Unify the function naming of
queue from `offer()` to `push()`
* Update TypeScript codes.
* Update binary_search_tree
* Update graph operations.
* Fix code indentation.
* Update worst_best_time_complexity,
leetcode_two_sum
* Update avl_tree
* 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>
* Fix Python code styles.
Update hash_map.
* chore: fix heap logic
* Update graph_adjacency_matrix.cs
* Update graph_adjacency_matrix.cs
* Update my_heap.cs
* fix: heap test
* fix naming format
* merge markdown
* fix markdown format
* Update graph_adjacency_list.cs
* Update graph_adjacency_matrix.cs
* Update PrintUtil.cs
* Create Vertex.cs
* Update heap.cs
---------
Co-authored-by: zjkung1123 <zjkung1123@fugle.tw>
Co-authored-by: sjinzh <99076655+sjinzh@users.noreply.github.com>
Co-authored-by: Yudong Jin <krahets@163.com>
Co-authored-by: nuomi1 <nuomi1@qq.com>
2 years ago
krahets
7238c560d1
Update binary_tree_bfs codes
2 years ago
krahets
300016393b
Add code source blocks to the chapter Graph.
...
Fix "函数" and "方法"
2 years ago
krahets
3465b300e9
Add the introduction to the reviewers
...
to the index.md
2 years ago
krahets
6dc21691ed
Add build scripts for C# and
...
unify the coding style.
2 years ago
krahets
05f0054005
Add build script for JS and TS codes.
2 years ago
krahets
ecbf2d1560
1. Add build script for Java.
...
2. Add height limitation for code blocks in extra.css.
3. Fix "节点" to "结点".
2 years ago
Yudong Jin
f14e3e4c57
Update linear_search and hashing_search.
2 years ago
Yudong Jin
b39b84acba
Update avl_tree
2 years ago
Yudong Jin
70dead5cd0
Update worst_best_time_complexity,
...
leetcode_two_sum
2 years ago
Yudong Jin
7d14c9440e
Unify the function naming of
...
queue from `offer()` to `push()`
2 years ago
Yudong Jin
5eae708035
Fix array queue.
2 years ago
Yudong Jin
ddd5562b60
Fix the index out of bound check in my_list.
2 years ago
Yudong Jin
70c1dba1cd
Update a comment in randomAccess()
2 years ago
Yudong Jin
2336fe1d50
Update the comments in
...
binary_search_tree and avl_tree.
2 years ago
Yudong Jin
5f0ae848c4
Update medianThree() in quick_sort.
2 years ago
Yudong Jin
3e19205c84
Update a comment in binary_search_tree.
2 years ago
Yudong Jin
daa28be3e4
Merge branch 'master' into binary_search_tree
2 years ago
龚国玮
96d54bff3a
test(binary_search_tree): update test param all the language
...
use param value 7, not 5. function test param value with param value in example picture as same.
2 years ago
Yudong Jin
b7e09c4c1d
Unify the comment format of C# codes.
2 years ago
Yudong Jin
d6d6a16c7e
Update the access() function of linked_list
2 years ago
Yudong Jin
73e3452838
Add Swift language blocks to the docs.
2 years ago
Yudong Jin
dcc3b2e35b
Optimize arrToTree function
...
in java, cpp, py, go, js, ts.
2 years ago
Yudong Jin
410c5d6b62
Free memory after removing
...
a node from a LinkedList or TreeNode.
2 years ago
GN-Yu
1b71e74baa
Update merge_sort.cs
2 years ago
Yudong Jin
c67363a78e
Update deque.cs
2 years ago
moonache
0cf37e3f8e
添加 deque.cs
...
以 C# 内置的双向队列 LinkedList 为基础,编写了 C# 版本的 deque
2 years ago
Yudong Jin
8733557f00
Update C# code.
2 years ago
Yudong Jin
0dd9a3a9b8
Update array.cs
2 years ago
Yudong Jin
b1645c7d7e
Fine tune
2 years ago
zhuzhiqing
3339a648d0
Merge branch 'master' of https://github.com/haptear/hello-algo
...
# Conflicts:
# codes/csharp/chapter_array_and_linkedlist/list.cs
# codes/csharp/chapter_array_and_linkedlist/my_list.cs
# codes/csharp/include/PrintUtil.cs
# codes/csharp/include/TreeNode.cs
2 years ago
zhuzhiqing
7b538ce21c
1.Please remove all the unused libs for every files
...
2.add a file header for all the files
2 years ago
Yudong Jin
c429e5f0bb
1. Remove unused libs.
...
2. Add file headers.
3. Modify file name to match Java's.
4. Fix some issues.
2 years ago
zhuzhiqing
a427cb1b4d
完善所以c#相关的文档和代码
2 years ago
Yudong Jin
a8fb1a4f41
Update source codes.
2 years ago
Ming
f08621241f
Update the project to make it simpler.
2 years ago
ming
49756d8c7e
Modify some formats.
2 years ago
ming
aa868cfa3d
Update csharp array to unify code style,and create its unit test.
2 years ago
ming
5c999939f6
Create csharp LinkedList and its unit test.
2 years ago
ming
47bf6729a4
Create csharp project to replace single file.
2 years ago