上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 98 下一页
摘要: There are N network nodes, labelled 1 to N. Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v  阅读全文
posted @ 2018-12-22 12:10 Veritas_des_Liberty 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h 阅读全文
posted @ 2018-12-21 18:37 Veritas_des_Liberty 阅读(325) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subseq 阅读全文
posted @ 2018-12-21 17:59 Veritas_des_Liberty 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects 阅读全文
posted @ 2018-12-20 22:06 Veritas_des_Liberty 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Given an m x n matrix of positive integers representing the height of each unit cell in a 2D elevation map, compute the volume of water it is able to 阅读全文
posted @ 2018-12-20 18:20 Veritas_des_Liberty 阅读(224) 评论(0) 推荐(0) 编辑
摘要: #include #include class CArray { int size; int *ptr; public: CArray(int s = 0); CArray(CArray& a); ~CArray(); void push_back(int v); CArray& operator=(const CArray& a)... 阅读全文
posted @ 2018-12-20 17:51 Veritas_des_Liberty 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(241) 评论(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 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 描述 魔兽世界的西面是红魔军的司令部,东面是蓝魔军的司令部。两个司令部之间是依次排列的若干城市。 红司令部,City 1,City 2,……,City n,蓝司令部两军的司令部都会制造武士。武士一共有 dragon 、ninja、iceman、lion、wolf 五种。每种武士都有编号、生命值、攻击 阅读全文
posted @ 2018-12-19 16:11 Veritas_des_Liberty 阅读(729) 评论(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 阅读(213) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 98 下一页