2017-5-5 https://leetcode.com/problems/valid-parentheses/#/description http://www.jiuzhang.com/solution/valid-parentheses/ 题目:Given a string containin ...
分类:
其他好文 时间:
2017-05-05 23:21:11
阅读次数:
435
1 里氏替换原则定义 Liskov于1987年提出了一个关于继承的原则“Inheritance should ensure that any property proved about supertype objects also holds for subtype objects.”——“继承必须 ...
分类:
其他好文 时间:
2017-05-05 16:17:47
阅读次数:
232
The main city magazine offers its readers an opportunity to publish their ads. The format of the ad should be like this: There are space-separated non ...
分类:
其他好文 时间:
2017-05-03 13:12:56
阅读次数:
195
Description You are given positive integer number n. You should create such strictly increasing sequence of k positive numbersa1,?a2,?...,?ak, that th ...
分类:
其他好文 时间:
2017-05-01 21:02:45
阅读次数:
112
Description You are given matrix with n rows and n columns filled with zeroes. You should put k ones in it in such a way that the resulting matrix is ...
分类:
其他好文 时间:
2017-05-01 20:58:37
阅读次数:
209
HDU - 1686 Oulipo Time Limit: 1000MS Memory Limit: 32768KB 64bit IO Format: %I64d & %I64u Submit Status Description The French author Georges Perec (1 ...
分类:
其他好文 时间:
2017-05-01 19:05:12
阅读次数:
202
1.以设计为目标的程序库都必须帮助使用者完毕静止的设计。以实现使用者自己的constraints,而不是实现预先定义好的constraints. 2.Anything that can be done in more than one way should be identified and mig ...
分类:
编程语言 时间:
2017-05-01 18:21:35
阅读次数:
211
传送门 Description Watchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn them as soon as possible. There are ...
分类:
其他好文 时间:
2017-05-01 01:19:05
阅读次数:
246
Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line ...
分类:
其他好文 时间:
2017-04-29 23:38:51
阅读次数:
215
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the follow ...
分类:
其他好文 时间:
2017-04-29 19:52:50
阅读次数:
158