2017年8月24日
摘要: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam 阅读全文
posted @ 2017-08-24 18:20 Beserious 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定一个整数,给出消除重复数字以后最大的整数 输入描述: 正整数,注意考虑长整数 输出描述 消除重复数字后的最大整数 示例1 输入 423234 输出 432 思路分析 :要保存原来的顺序这个题目才有意思,如果不保存原来的顺序,那直接一个set就搞定了。 很明显这个数字的最大长度不会超过2 阅读全文
posted @ 2017-08-24 07:56 Beserious 阅读(2364) 评论(0) 推荐(0) 编辑