
基本算法
menglucky40
这个作者很懒,什么都没留下…
展开
-
remove digits删除数字
问题描述:给定存为string形式的非负整数num,从中删除k位数字,得到新数字,并满足此结果是可能产生的最小数字。 Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. ...原创 2019-11-05 11:32:12 · 493 阅读 · 0 评论 -
Sort Integers II整数排序(二)
问题描述:给定一个整数数组,按照升序排序,使用快速排序、归并排序、堆排序或任何时间代价O(nlogn)的算法。 Given an integer array, sort it in ascending order in place. Use quick sort, merge sort, heap sort or any O(nlogn) algorithm. 参考:殷建平、徐云、王刚、...原创 2019-09-29 16:35:18 · 295 阅读 · 0 评论