题目描述Given a number sequence whose length is n, you
can delete at most k numbers in the sequence.After that you are asked to answer
the maximum length ...
分类:
其他好文 时间:
2014-05-19 22:21:32
阅读次数:
304
NSMutableAttributedString *attrString =
[[NSMutableAttributedString alloc] initWithString:title]; NSRange range =
NSMakeRange(0, [attrString length...
分类:
其他好文 时间:
2014-05-19 11:20:27
阅读次数:
236
Question 1:Given an array of integers, find two
numbers such that they add up to a specific target number.The function twoSum
should return indices of...
分类:
其他好文 时间:
2014-05-19 09:35:41
阅读次数:
321
#ifndef MAINFUNC_H#define MAINFUNC_H#include
#include #include #include //1. Get the numbers//2. Modify the expression like
(1+1*1)*(1-1); 1 represent...
分类:
其他好文 时间:
2014-05-18 19:54:02
阅读次数:
514
1.根据要求创建列表threes_and_fives(列表值包括1到15中能够被3或者5正常的数)threes_and_fives=[x
for x in range(1,16) if x%3==0 or x%5==0]2.lambda表达式实例(剔除掉列表中的”X“)garbled =
"IXXX...
分类:
编程语言 时间:
2014-05-18 19:48:23
阅读次数:
397
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-18 02:11:19
阅读次数:
302
Given two numbers represented as strings,
return multiplication of the numbers as a string.Note: The numbers can be
arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-05-18 01:25:07
阅读次数:
288
Vim替换----------------------------------------------------------substitute命令:
:[range]s/from/to/[flags]from替换成to指定的字符串(from可为正则表达式,to可为空)range:范围,可以通过....
分类:
其他好文 时间:
2014-05-17 20:45:07
阅读次数:
510
题目描述After the hard tasks, It’s the easy time for
Y.G.Tobor and Y.D.I.Isha is a friend of Y.D.I, as he thinks Tobor is smart too,
he give Tobor a probl...
分类:
其他好文 时间:
2014-05-17 15:20:34
阅读次数:
248
【题目】
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
【题意】
给定一个整数,将其表示成罗马数字
【思路】
罗马数字中只使用如下七个基值字母:M,D,C,L,X,V,I,分别用来表示1000、500、100、50、10、5、1。
罗马数组数规则:
基本数字Ⅰ、X 、C 中的任何一个,自身连用构成数目,或者放在大数的右边连用...
分类:
其他好文 时间:
2014-05-16 01:46:55
阅读次数:
312