mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-04 21:20:40 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user