An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to large ...
分类:
其他好文 时间:
2020-02-12 18:29:23
阅读次数:
62
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp ...
分类:
其他好文 时间:
2020-02-09 20:06:21
阅读次数:
67
https://vjudge.net/problem/CodeForces-1249B2 题目描述: The only difference between easy and hard versions is constraints. There are nn kids, each of them ...
分类:
其他好文 时间:
2020-02-07 18:53:09
阅读次数:
87
Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth possibl ...
分类:
其他好文 时间:
2020-02-06 11:07:31
阅读次数:
74
链接: "LeetCode668" 给定高度m?、宽度n 的一张?m n的乘法表,以及正整数k,你需要返回表中第k?小的数字。 例?1: 输入: m = 3, n = 3, k = 5 输出: 3 解释: 乘法表: 1 2 3 2 4 6 3 6 9 第5小的数字是 3 (1, 2, 2, 3, 3 ...
分类:
其他好文 时间:
2020-02-03 12:00:25
阅读次数:
61
集合的特性:1.去重,2.无序,3.关系测试集合创建: set()方法,列表list()集合的关系测试:并集: list_1.union(list_2) or ^交集:list_1.intersection(list_2) or |差集:list_1.difference(list_2) or li ...
分类:
其他好文 时间:
2020-01-31 20:50:54
阅读次数:
77
PAT 甲级 Advanced 1038 Recover the Smallest Number (30) [贪?算法] ...
分类:
编程语言 时间:
2020-01-30 22:58:04
阅读次数:
95
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2020-01-28 19:08:30
阅读次数:
82
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:
其他好文 时间:
2020-01-27 17:28:02
阅读次数:
71