摘要: 本篇博客解析 001-twoSum。 一、题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that 阅读全文
posted @ 2020-06-06 15:35 Albert-陌尘 阅读(149) 评论(0) 推荐(0)
摘要: qsort 函数 C 语言编译器函数库自带的排序函数,其时间复杂度为 O(nlog n)。qsort 函数包含在 C 标准库 <stdlib.h> 中。 一、函数声明 1 void qsort(void *base, size_t nitems, size_t size, int (*compar) 阅读全文
posted @ 2020-06-06 15:32 Albert-陌尘 阅读(443) 评论(0) 推荐(0)