上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 98 下一页
摘要: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re 阅读全文
posted @ 2018-12-31 18:23 Veritas_des_Liberty 阅读(240) 评论(0) 推荐(0)
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost 阅读全文
posted @ 2018-12-31 16:46 Veritas_des_Liberty 阅读(233) 评论(0) 推荐(0)
摘要: 描述 给出两个正整数以及四则运算操作符(+ - * /),求运算结果。 输入第一行:正整数a,长度不超过100第二行:四则运算符o,o是“+”,“-”,“*”,“/”中的某一个第三行:正整数b,长度不超过100保证输入不含多余的空格或其它字符输出一行:表达式“a o b”的值。补充说明:1. 减法结 阅读全文
posted @ 2018-12-31 10:44 Veritas_des_Liberty 阅读(363) 评论(0) 推荐(0)
摘要: Starting with an undirected graph (the "original graph") with nodes from 0 to N-1, subdivisions are made to some of the edges. The graph is given as f 阅读全文
posted @ 2018-12-30 22:21 Veritas_des_Liberty 阅读(335) 评论(0) 推荐(0)
摘要: A car travels from a starting position to a destination which is target miles east of the starting position. Along the way, there are gas stations. Ea 阅读全文
posted @ 2018-12-30 21:13 Veritas_des_Liberty 阅读(346) 评论(0) 推荐(0)
摘要: 965. Univalued Binary Tree A binary tree is univalued if every node in the tree has the same value. Return true if and only if the given tree is univa 阅读全文
posted @ 2018-12-30 13:40 Veritas_des_Liberty 阅读(318) 评论(0) 推荐(0)
摘要: We are given a 2-dimensional grid. "." is an empty cell, "#" is a wall, "@" is the starting point, ("a", "b", ...) are keys, and ("A", "B", ...) are l 阅读全文
posted @ 2018-12-29 21:41 Veritas_des_Liberty 阅读(416) 评论(0) 推荐(0)
摘要: There are N workers. The i-th worker has a quality[i] and a minimum wage expectation wage[i]. Now we want to hire exactly K workers to form a paid gro 阅读全文
posted @ 2018-12-24 22:26 Veritas_des_Liberty 阅读(310) 评论(0) 推荐(0)
摘要: 4w3:第四周程序填空题1 描述 下面程序的输出是: 3+4i 5+6i 请补足Complex类的成员函数。不能加成员变量。 输入无输出3+4i5+6i样例输入 样例输出 Approach: 4w4:第四周程序填空题2 描述 下面的MyInt类只有一个成员变量。MyInt类内部的部分代码被隐藏了。假 阅读全文
posted @ 2018-12-23 22:24 Veritas_des_Liberty 阅读(942) 评论(0) 推荐(0)
摘要: #include using namespace std; class CDemo { private: int n; public: CDemo(int i = 0):n(i){} CDemo& operator++(); CDemo operator++(int); operator int() { return n; } friend ... 阅读全文
posted @ 2018-12-23 22:02 Veritas_des_Liberty 阅读(283) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 98 下一页