摘要: DescriptionGiven an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Exam... 阅读全文
posted @ 2017-05-21 19:51 紫魔戒 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 各种排序算法插入排序直接插入排序void InsertSort(int arr[], int len) { int i, j; int temp; for (i = 1; i = 0 && arr[j] > temp; j--) arr[j +... 阅读全文
posted @ 2017-05-21 16:57 紫魔戒 阅读(306) 评论(0) 推荐(0) 编辑