摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;/** * 插入排序 * **/namespace Algorithm { class InsertionSort where T:IComparable{ //插入排序 s... 阅读全文
posted @ 2017-03-23 23:31 xiejunzhao 阅读(240) 评论(0) 推荐(0)
摘要: int l = Int32.MaxValue;//2147483647int r = Int32.MaxValue;//2147483647Console.WriteLine((l + r)/2);//-1Console.WriteLine(l + (r - l) / 2);//2147483647null 阅读全文
posted @ 2017-03-23 23:20 xiejunzhao 阅读(370) 评论(0) 推荐(0)