摘要:
public class 二分查找 { public int[] GetSS(int[] nums, int target) { if (nums.Length == 0) { return new int[] { -1, -1 }; } var fristIndex = GetFristIndex 阅读全文
摘要:
public int Search(int[] nums, int target) { int left = 0; int right = nums.Length - 1; while(left <= right) { int middle = left + (right - left)/2; if 阅读全文
摘要:
private D Mapper<D, S>(S s) { D d = Activator.CreateInstance<D>(); try { var sType = s.GetType(); var dType = typeof(D); foreach (PropertyInfo sP in s 阅读全文