From 51dab9dd25220d139fb2412bfcc885ad9abc944b Mon Sep 17 00:00:00 2001 From: krahets Date: Sun, 8 Oct 2023 04:42:57 +0800 Subject: [PATCH] Update overrides directory structure. --- .../csharp/chapter_searching/binary_search_edge.cs | 4 ++-- mkdocs.yml | 4 ++-- overrides/assets/{ => images}/favicon.png | Bin overrides/assets/{ => images}/logo.png | Bin 4 files changed, 4 insertions(+), 4 deletions(-) rename overrides/assets/{ => images}/favicon.png (100%) rename overrides/assets/{ => images}/logo.png (100%) diff --git a/codes/csharp/chapter_searching/binary_search_edge.cs b/codes/csharp/chapter_searching/binary_search_edge.cs index 719a61309..79a029f0c 100644 --- a/codes/csharp/chapter_searching/binary_search_edge.cs +++ b/codes/csharp/chapter_searching/binary_search_edge.cs @@ -20,7 +20,7 @@ public class binary_search_edge { } /* 二分查找最右一个 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 的元素 @@ -43,7 +43,7 @@ public class binary_search_edge { 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); } } diff --git a/mkdocs.yml b/mkdocs.yml index 2032aa569..3df357dc7 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 diff --git a/overrides/assets/favicon.png b/overrides/assets/images/favicon.png similarity index 100% rename from overrides/assets/favicon.png rename to overrides/assets/images/favicon.png diff --git a/overrides/assets/logo.png b/overrides/assets/images/logo.png similarity index 100% rename from overrides/assets/logo.png rename to overrides/assets/images/logo.png