Given a collection of numbers, return all possible permutations.For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,...
分类:
其他好文 时间:
2014-07-26 01:38:56
阅读次数:
214
#coding=utf-8import xlrdimport osimport operatorfxls = 'mobile.xlsx'bp = xlrd.open_workbook(fxls)shxrange = range(bp.nsheets)try: sh = bp.sheet_b...
分类:
其他好文 时间:
2014-07-26 01:36:36
阅读次数:
195
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-07-26 00:23:26
阅读次数:
242
Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a list of phone numbers, determine if it is consistent ...
分类:
其他好文 时间:
2014-07-26 00:00:26
阅读次数:
480
s = ['a','b','c','d','e']for i in range(len(s)):... if i < len(s)-1:... print s[i]abcdfor i in range(len(s)):... if i < len(s)-1:... print s[i+1]...bc...
分类:
其他好文 时间:
2014-07-25 14:20:51
阅读次数:
198
asp.net操作Excel合并单元格时,抛出了异常:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: “object”未包含“get_Range”的定义
在 CallSite.Target(Closure , CallSite , ComObject , Object , Object )
在 System.Dynamic.U...
分类:
其他好文 时间:
2014-07-25 11:03:01
阅读次数:
460
// 设置单元格格式为文本
range.NumberFormatLocal = "@";
// 获取Excel多个单元格区域:本例做为Excel表头
range = (Range)worksheet.get_Range("A1", "E1");
// 单元格合并动作
range.Merge(0);
// Excel单元格赋值
worksheet.Cells[1, 1] =...
分类:
Web程序 时间:
2014-07-25 10:58:01
阅读次数:
253
Private Sub Worksheet_Change(ByVal Target As Range)Dim srg As Range, x As ShapeIf Target.Count = Target.EntireRow.Cells.Count Then For Each x In Shape...
分类:
其他好文 时间:
2014-07-25 03:50:35
阅读次数:
237
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:
其他好文 时间:
2014-07-25 03:40:54
阅读次数:
305
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2014-07-25 03:15:41
阅读次数:
176