summaryrefslogtreecommitdiff
path: root/Assets/Algorithms/Searching
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-06-24 19:55:26 +0800
committerchai <chaifix@163.com>2021-06-24 19:55:26 +0800
commitdbcd0c269014100b7d4cc421c5ab518f275cca09 (patch)
tree6564ca8a58b6921d4782bba3feae0ea787f9e1f4 /Assets/Algorithms/Searching
parent2749e059084b99737d79aadd92521023b0f65f56 (diff)
Diffstat (limited to 'Assets/Algorithms/Searching')
-rw-r--r--Assets/Algorithms/Searching/SearchingHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Assets/Algorithms/Searching/SearchingHelper.cs b/Assets/Algorithms/Searching/SearchingHelper.cs
index 191ff5e..d177957 100644
--- a/Assets/Algorithms/Searching/SearchingHelper.cs
+++ b/Assets/Algorithms/Searching/SearchingHelper.cs
@@ -34,7 +34,7 @@ namespace AlgorithmCollection.Searching
public static int BinarySearch<T>(List<T> data, T value) where T : IComparable, IEquatable<T>
{
int index = -1;
- RecursionHelper.DNC(
+ RecursionHelper.DC(
() =>
{
DivisionDescriptor div = new DivisionDescriptor();
@@ -116,7 +116,7 @@ namespace AlgorithmCollection.Searching
{
bool suc = false;
T v = default(T);
- RecursionHelper.DNC(
+ RecursionHelper.DC(
()=>
{
DivisionDescriptor div = new DivisionDescriptor();