1.Range.End属性1 //示例2 mysheet.Cells[5, 5].Value = mysheet.Range["G65536"].End[Excel.XlDirection.xlUp].Row;2. 字典相关1 //定义2 Dictionary Blocksheet = new Di...
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "...
分类:
其他好文 时间:
2015-06-02 18:07:59
阅读次数:
88
对于java开发人员,相信大家对于HashMap和HashTable都不陌生,但是两者到底有什么区别与联系呢? 比较: 第一,Hashtable是基于陈旧的Dictionary类的,HashMap是Java 1.2引进的Map接口的一个实现。 第二,Hashtable的方法是同步的,而H...
分类:
其他好文 时间:
2015-06-02 15:03:12
阅读次数:
124
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2015-06-01 22:47:24
阅读次数:
159
1 //字典的创建 2 NSDictionary *d1 = [NSDictionary dictionary]; 3 //将创建的字典的内容设置为制定的文件的内容 4 NSString *path = @"";//文件路径 5 ...
分类:
其他好文 时间:
2015-06-01 20:21:52
阅读次数:
103
函数参数可以设置缺省值warning:The default value is evaluated only once. This makes a difference when the default is a mutable object such as list, dictionary, or...
分类:
编程语言 时间:
2015-06-01 11:20:43
阅读次数:
155
类的设计第一种类:商品的类,父类是个抽象类;
第二种类:折扣的类,父类也是个抽象类
类图如下;
使用技能
用继承抽象类实现多态,用多态来实现工厂模式;
使用反射机制来实现构造实例的多态和工厂模式;
工厂模式可以增加系统的可扩展性;
使用Dictionary中的list集合来减少代码量;
源代码仓库类using System;
using System.Collections.Generic...
1、不可变(immutable):int、字符串(string)、float、(数值型number)、元组(tuple)可变(mutable):字典型(dictionary)、列表型(list)>>>person=['name',['saving',100]]>>>ly=person[:]>>> z...
分类:
编程语言 时间:
2015-05-31 19:56:41
阅读次数:
140
-(void)converseToJson{ NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; [dictionary setValue:@"Archy" forKey:@"First Name"]; [dic...
分类:
移动开发 时间:
2015-05-31 19:54:19
阅读次数:
185
Word Search II问题:Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of s...
分类:
其他好文 时间:
2015-05-31 18:18:22
阅读次数:
117