static void Main(string[] args) { string[,] strings = new string[10,2]; for (int j = 0; j < 10; j++) { strings[j, 0] = $"{j}.0"; strings[j, 1] = $"{j} ...
分类:
编程语言 时间:
2017-10-30 14:34:18
阅读次数:
134
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:
其他好文 时间:
2017-10-30 01:29:34
阅读次数:
386
1 Python的函数参数传递 看两个例子: 所有的变量都可以理解是内存中一个对象的“引用”,或者,也可以看似c中void*的感觉。 这里记住的是类型是属于对象的,而不是变量。而对象有两种,“可更改”(mutable)与“不可更改”(immutable)对象。在python中,strings, tu ...
分类:
其他好文 时间:
2017-10-29 19:29:23
阅读次数:
232
5. 函数 Python函数代码块以 def 关键词开头; 函数内容以冒号起始,并且缩进。 *注: python中,strings, tuples, 和 numbers 是不可更改的对象,而 list,dict 等则是可以修改的对象。 前者传递的只是值的拷贝,不影响对象本身; 后者传递的是对象的地址 ...
分类:
编程语言 时间:
2017-10-29 11:13:01
阅读次数:
245
Srings类程序中经常使用。 比如判断字符串是否为空,我们在之前用jdk方法判断是会用下面这个判断语句。 上面的代码如果不注意的话就容易写错,并且不优美。现在采用guava的Strings类进行判断,请看下面的 这样是不是看起来很优雅。 下面开始阅读Strings的源码: 1、nullToEmpt ...
分类:
其他好文 时间:
2017-10-28 19:44:30
阅读次数:
171
You're now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Each round's operation is permane ...
分类:
其他好文 时间:
2017-10-28 18:52:58
阅读次数:
183
[教程1]使用GPU 支持的设备 在典型的系统中,有多个计算设备。在TensorFlow中,支持的设备类型是CPU和GPU。它们被表示为strings。例如: "/cpu:0":机器的CPU。 "/gpu:0"你的机器的GPU,如果你有一个。 "/gpu:1"你的机器的第二个GPU等 如果Tenso ...
分类:
其他好文 时间:
2017-10-28 17:50:19
阅读次数:
717
/* list of strings */ let _ = ["example-1", "example-2", "example-3"]; /* Array of strings */ let _ = [|"example-1", "example-2", "example-3"|]; /* St... ...
分类:
其他好文 时间:
2017-10-28 11:22:01
阅读次数:
187
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:
其他好文 时间:
2017-10-27 13:26:36
阅读次数:
130
String字符串:String字符串是由一个char数组构成的,由于这个数组是由final修饰的,所以String也叫做不可变字符串。例如字符串:Strings=”1234”;其实就是char[]value={‘1’,’2’,’3’,’4’};Strings=”123”;和Strings1=newString(“123”);,虽然申请的两个字符串内容..
分类:
其他好文 时间:
2017-10-26 23:02:59
阅读次数:
161