上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 98 下一页
摘要: #include #include #include using namespace std; class Complex { public: double real, imag; public: Complex(double r = 0, double i = 0): real(r), imag(i){}; friend ostream& operator>(... 阅读全文
posted @ 2018-12-23 21:40 Veritas_des_Liberty 阅读(685) 评论(0) 推荐(0)
摘要: Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negative positions.) Your car drives automatically accord 阅读全文
posted @ 2018-12-23 18:57 Veritas_des_Liberty 阅读(330) 评论(0) 推荐(0)
摘要: 961. N-Repeated Element in Size 2N Array In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times 阅读全文
posted @ 2018-12-23 12:57 Veritas_des_Liberty 阅读(257) 评论(0) 推荐(0)
摘要: There are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w. Now given all the cities and flights, togeth 阅读全文
posted @ 2018-12-22 13:05 Veritas_des_Liberty 阅读(310) 评论(0) 推荐(0)
摘要: 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 阅读(316) 评论(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 阅读(331) 评论(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 阅读(229) 评论(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 阅读(367) 评论(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 阅读(231) 评论(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 阅读(594) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 98 下一页