fix(csharp): reformat csharp codes and docs (#652)

* fix(csharp): reformat the C# codes and docs

* Update time_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
hpstory
2023-07-24 19:50:00 +08:00
committed by GitHub
parent 1777a16865
commit 978d3c2ed7
13 changed files with 47 additions and 77 deletions

View File

@@ -17,7 +17,7 @@ public class two_sum {
return new int[] { i, j };
}
}
return new int[0];
return Array.Empty<int>();
}
/* 方法二:辅助哈希表 */
@@ -32,7 +32,7 @@ public class two_sum {
}
dic.Add(nums[i], i);
}
return new int[0];
return Array.Empty<int>();
}
[Test]