上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 98 下一页
摘要: You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th 阅读全文
posted @ 2018-12-19 20:42 Veritas_des_Liberty 阅读(244) 评论(0) 推荐(0)
摘要: 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. Example 阅读全文
posted @ 2018-12-19 17:25 Veritas_des_Liberty 阅读(209) 评论(0) 推荐(0)
摘要: 描述 魔兽世界的西面是红魔军的司令部,东面是蓝魔军的司令部。两个司令部之间是依次排列的若干城市。 红司令部,City 1,City 2,……,City n,蓝司令部两军的司令部都会制造武士。武士一共有 dragon 、ninja、iceman、lion、wolf 五种。每种武士都有编号、生命值、攻击 阅读全文
posted @ 2018-12-19 16:11 Veritas_des_Liberty 阅读(745) 评论(0) 推荐(0)
摘要: A city's skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are give 阅读全文
posted @ 2018-12-18 22:30 Veritas_des_Liberty 阅读(219) 评论(0) 推荐(0)
摘要: 3w6:第三周程序填空题1 描述 下面程序输出的结果是: 4,6 请填空: 输入无输出4,6样例输入 样例输出 Code: 3w7:第三周程序填空题2 描述 下面程序输出的结果是: 0 5 请填空: 输入无输出05样例输入 样例输出 提示所缺代码具有如下形式: Code: 3w8:第三周程序填空题3 阅读全文
posted @ 2018-12-18 12:44 Veritas_des_Liberty 阅读(1148) 评论(0) 推荐(0)
摘要: Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num 阅读全文
posted @ 2018-12-18 11:03 Veritas_des_Liberty 阅读(216) 评论(0) 推荐(0)
摘要: Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes  阅读全文
posted @ 2018-12-18 09:17 Veritas_des_Liberty 阅读(261) 评论(0) 推荐(0)
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2018-12-17 22:39 Veritas_des_Liberty 阅读(463) 评论(0) 推荐(0)
摘要: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Outpu 阅读全文
posted @ 2018-12-17 21:06 Veritas_des_Liberty 阅读(181) 评论(0) 推荐(0)
摘要: Given a list of words (without duplicates), please write a program that returns all concatenated words in the given list of words. A concatenated word 阅读全文
posted @ 2018-12-16 17:58 Veritas_des_Liberty 阅读(340) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 98 下一页