1.list转化为数组 ArrayList<String> list=new ArrayList<String>(); String[] strings = new String[list.size()]; list.toArray(strings); 2.数组抓化为list String[] s ...
分类:
编程语言 时间:
2017-12-19 00:47:54
阅读次数:
192
Given two strings S and T, determine if they are both one edit distance apart. ...
分类:
其他好文 时间:
2017-12-18 12:05:28
阅读次数:
132
Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s ...
分类:
其他好文 时间:
2017-12-18 01:31:21
阅读次数:
121
https://vjudge.net/problem/Gym-100247B 题意: 如果两个字符串通过映射后是一样的,则说明这两个字符串是相似的,现在给出n个字符串,计算出有多少组字符串是相似的。 思路:直接暴力超时了。。 拿样例来说吧,abacaba可以转化成1213121。那么和它相似的字符串 ...
分类:
其他好文 时间:
2017-12-16 12:53:40
阅读次数:
151
1.安装命令“ cnpm install --save isomorphic-fetch es6-promise 2.由于ie不支持Promise,所以需要安装promise-polyfill; cnpm install promise-polyfill --save-exact 需要在index. ...
分类:
其他好文 时间:
2017-12-15 12:34:50
阅读次数:
232
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For ...
分类:
其他好文 时间:
2017-12-13 00:03:38
阅读次数:
208
Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 题目标签:Math 题目给了我们两个string a 和 b,让我们把这两个二进制 ...
分类:
其他好文 时间:
2017-12-12 13:52:23
阅读次数:
165
这里将为你详细介绍占位符的使用,将其学以致用,可以达到简化布局文件,减少字符串资源量。 1、在资源文件中的使用。 打开资源文件中的strings.xml文件,进行编辑。如下图所示: 图 1.0 2、获取字符串资源文件的使用说明。 方式一: 输出的结果是:13.0得分:12.22 方式二: 输出的结果 ...
分类:
移动开发 时间:
2017-12-11 20:02:54
阅读次数:
176
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-12-11 14:16:34
阅读次数:
185
Given two sentences words1, words2 (each represented as an array of strings), and a list of similar word pairs pairs, determine if two sentences are s ...
分类:
其他好文 时间:
2017-12-10 11:10:32
阅读次数:
205