fix(csharp): Modify method name to PascalCase, simplify new expression (#840)

* Modify method name to PascalCase(array and linked list)

* Modify method name to PascalCase(backtracking)

* Modify method name to PascalCase(computational complexity)

* Modify method name to PascalCase(divide and conquer)

* Modify method name to PascalCase(dynamic programming)

* Modify method name to PascalCase(graph)

* Modify method name to PascalCase(greedy)

* Modify method name to PascalCase(hashing)

* Modify method name to PascalCase(heap)

* Modify method name to PascalCase(searching)

* Modify method name to PascalCase(sorting)

* Modify method name to PascalCase(stack and queue)

* Modify method name to PascalCase(tree)

* local check
This commit is contained in:
hpstory
2023-10-08 01:33:46 +08:00
committed by GitHub
parent 6f7e768cb7
commit f62256bee1
129 changed files with 1186 additions and 1192 deletions

View File

@@ -144,7 +144,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{randomAccess}
[class]{array}-[func]{RandomAccess}
```
=== "Go"
@@ -224,7 +224,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{insert}
[class]{array}-[func]{Insert}
```
=== "Go"
@@ -304,7 +304,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{remove}
[class]{array}-[func]{Remove}
```
=== "Go"
@@ -386,7 +386,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{traverse}
[class]{array}-[func]{Traverse}
```
=== "Go"
@@ -464,7 +464,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{find}
[class]{array}-[func]{Find}
```
=== "Go"
@@ -542,7 +542,7 @@
=== "C#"
```csharp title="array.cs"
[class]{array}-[func]{extend}
[class]{array}-[func]{Extend}
```
=== "Go"

View File

@@ -246,11 +246,11 @@
```csharp title="linked_list.cs"
/* 初始化链表 1 -> 3 -> 2 -> 5 -> 4 */
// 初始化各个节点
ListNode n0 = new ListNode(1);
ListNode n1 = new ListNode(3);
ListNode n2 = new ListNode(2);
ListNode n3 = new ListNode(5);
ListNode n4 = new ListNode(4);
ListNode n0 = new(1);
ListNode n1 = new(3);
ListNode n2 = new(2);
ListNode n3 = new(5);
ListNode n4 = new(4);
// 构建引用指向
n0.next = n1;
n1.next = n2;
@@ -426,7 +426,7 @@
=== "C#"
```csharp title="linked_list.cs"
[class]{linked_list}-[func]{insert}
[class]{linked_list}-[func]{Insert}
```
=== "Go"
@@ -506,7 +506,7 @@
=== "C#"
```csharp title="linked_list.cs"
[class]{linked_list}-[func]{remove}
[class]{linked_list}-[func]{Remove}
```
=== "Go"
@@ -582,7 +582,7 @@
=== "C#"
```csharp title="linked_list.cs"
[class]{linked_list}-[func]{access}
[class]{linked_list}-[func]{Access}
```
=== "Go"
@@ -658,7 +658,7 @@
=== "C#"
```csharp title="linked_list.cs"
[class]{linked_list}-[func]{find}
[class]{linked_list}-[func]{Find}
```
=== "Go"

View File

@@ -47,7 +47,7 @@
```csharp title="list.cs"
/* 初始化列表 */
// 无初始值
List<int> list1 = new ();
List<int> list1 = new();
// 有初始值
int[] numbers = new int[] { 1, 3, 2, 5, 4 };
List<int> list = numbers.ToList();