- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 [leetcode] 258. Add Digits
题目:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.Example:Input: 38Output: 2 Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2. ...
2018-07-26 20:28:34 113
原创 [leetcode] 867. Transpose Matrix
题目:Given a matrix A, return the transpose of A.The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indices of the matrix. Example 1:Input: ...
2018-07-21 23:53:45 293
原创 [leetcode] 709. To Lower Case
题目:Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1:Input: "Hello"Output: "hello"Example 2:Input: "here"Output: "h...
2018-07-21 23:35:44 376
原创 [leetcode] 690. Employee Importance
题目:You are given a data structure of employee information, which includes the employee's unique id, his importance value and his directsubordinates' id.For example, employee 1 is the leader of emp...
2018-07-16 21:41:44 121
原创 [codeforces] Red and Black Tree
E. Red and Black Treetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a weighted tree, consisting of n vertices. Each vertex is either pain...
2018-07-08 20:13:27 539 1
原创 [codeforces] E. Freelancer's Dreams
E. Freelancer's Dreamstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMikhail the Freelancer dreams of two things: to become a cool programmer and...
2018-07-08 19:54:51 369
原创 [codeforces] C. Little Pony and Summer Sun Celebration
C. Little Pony and Summer Sun Celebrationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwilight Sparkle learnt that the evil Nightmare Moon would...
2018-07-03 16:37:28 189
原创 [codeforces] B. Preparing Olympiad
B. Preparing Olympiadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have n problems. You have estimated the difficulty of the i-th one as int...
2018-07-03 15:16:01 189
C语言经典100例.pdf
2017-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人