码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
Two Sum
题目 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 the two numbers such that they add up to the...
分类:其他好文   时间:2014-06-18 12:05:44    阅读次数:244
【Leetcode】Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]...
分类:其他好文   时间:2014-06-18 11:41:52    阅读次数:156
[LeetCode ] Two Sum
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 the two nu...
分类:其他好文   时间:2014-06-18 10:17:40    阅读次数:174
LeetCode: Permutations II 题解
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他好文   时间:2014-06-18 09:33:28    阅读次数:181
matplotlib删除x轴
组内有个同事,有个奇怪的需求需要matplotlib删除x轴效果图如下:关键代码:from matplotlib import pyplot as pltplt.plot(range(10))plt.tick_params(\ axis='x', # changes appl...
分类:其他好文   时间:2014-06-18 08:55:25    阅读次数:324
C#.Net 导出Excel 之单元格 相关设置
range.NumberFormatLocal="@";//设置单元格格式为文本range=(Range)worksheet.get_Range("A1","E1");//获取Excel多个单元格区域:本例做为Excel表头range.Merge(0);//单元格合并动作worksheet.Cell...
分类:Web程序   时间:2014-06-17 23:43:09    阅读次数:421
摩托罗拉SE955 One Discrete Length,Two Discrete Lengths,Length Within Range 相关解释
motorola scanner datasheet相关解释(以下通过Simple Serial Interface(SSI)进行设置,非扫描官方datasheet的设置条码): One Discrete Length:一个单独的条码长度,就是扫描头设置以后,只支持指定的一个长度的条码,发送格式:指定的条码长度作为长度参数1的值,长度参数2的值设置为0x00即可(比如设置interlea...
分类:移动开发   时间:2014-06-17 19:33:52    阅读次数:296
Roman to Integer
题目 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 方法 public int romanToInt(String s) { HashMap hm = new H...
分类:其他好文   时间:2014-06-17 19:27:48    阅读次数:324
Integer to Roman
题目 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 方法 /*语法: *(1)基本数字I,X,C中的任何一个连用构成数目,都不能超过三个; *  放在大数的左边只能用一个。  (2)基...
分类:其他好文   时间:2014-06-17 16:33:27    阅读次数:217
MFC 操作excel 读写 感悟
在项目实现中,要操作excel 对表格进行读写,或者是将listcontrol控件里面的内容导入到表格中,为此在网上找了很多代码作为参考,但是都没有达到自己想要的效果!在此,将自己在项目开发中遇到的问题和解决方法一一列出,希望能帮到其他人。 问题1 出现range等类的重定义,报错1...
分类:其他好文   时间:2014-06-17 15:07:47    阅读次数:681
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!