Skip to content

Commit

Permalink
Update overrides directory structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
krahets committed Oct 7, 2023
1 parent 7e15726 commit 51dab9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions codes/csharp/chapter_searching/binary_search_edge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public int BinarySearchLeftEdge(int[] nums, int target) {
}

/* 二分查找最右一个 target */
public int binarySearchRightEdge(int[] nums, int target) {
public int BinarySearchRightEdge(int[] nums, int target) {
// 转化为查找最左一个 target + 1
int i = binary_search_insertion.BinarySearchInsertion(nums, target + 1);
// j 指向最右一个 target ,i 指向首个大于 target 的元素
Expand All @@ -43,7 +43,7 @@ public void Test() {
foreach (int target in new int[] { 6, 7 }) {
int index = BinarySearchLeftEdge(nums, target);
Console.WriteLine("最左一个元素 " + target + " 的索引为 " + index);
index = binarySearchRightEdge(nums, target);
index = BinarySearchRightEdge(nums, target);
Console.WriteLine("最右一个元素 " + target + " 的索引为 " + index);
}
}
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ theme:
font:
text: Noto Sans SC
code: Fira Code
favicon: assets/favicon.png
logo: assets/logo.png
favicon: assets/images/favicon.png
logo: assets/images/logo.png
icon:
logo: logo
repo: fontawesome/brands/github
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 51dab9d

Please sign in to comment.