Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le ...
分类:
其他好文 时间:
2018-07-15 17:41:21
阅读次数:
322
Description 以$1$ 为根 的 $n$ 个节点的树,每条边有一个颜色 $x$,求每一个点的子树内的好的路径的最长长度 一条路径被定义为好的当且仅当把所有经过的边的字母经过排列之后可以变成回文 "题面" Solution 理解了一下 $dsu\,on\,tree$,相比普通的启发式,省去了 ...
分类:
其他好文 时间:
2018-07-15 11:06:54
阅读次数:
191
1、题目描述 2、问题分析 可以使用递归的方法解决,参考了别人的答案才写出来的。 3、代码 ...
分类:
其他好文 时间:
2018-07-14 19:29:33
阅读次数:
222
1 typedef struct letter{ 2 int finished = 0; 3 char le; 4 letter *son, *ne; 5 letter():le('\0'),son(NULL),ne(NULL){}; 6 }letter,*pointer; 7 8 struct T... ...
分类:
其他好文 时间:
2018-07-12 16:34:35
阅读次数:
134
In the following, every capital letter represents some hexadecimal digit from 0 to f. The red-green-blue color "#AABBCC" can be written as "#ABC" in s ...
分类:
其他好文 时间:
2018-07-11 21:25:43
阅读次数:
223
今天主要学习了:写法分类: 1.内联(行内,写在标签里面,以属性的形式表现,属性名是style) 例:<table style=" <tr><td>123</td></tr> </table> 例:<span id="biaoqian" style="color: #F40F13 ;font-siz ...
分类:
其他好文 时间:
2018-07-11 18:00:35
阅读次数:
182
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2018-07-10 22:07:33
阅读次数:
153
大型网站架构从来都不是一个预先定义的架构,而是一个演进式的架构。很少有一个网站从建站开始,就能够因具备大型网站的所有属性而一成不变的,从最简单的LAMP架构,再到基于IOE的大型集中式应用架构,再演变成时下的分布式应用架构,随着网站用户规模的扩大,架构也在不断演进。从实体机到虚拟机再到当前流行的Docker技术,从单机房到同城多机房再到异地多活,从LAMP到J2EE再到各种分布式中间件如服务框架、分布式消息队列、配置管理中间件、分布式数据访问层,由简至繁的艰难蜕变,也正是一个网站从小变大由弱变强的成长历程,哪里有挑战,哪里才会有变革,这正是作为技术人建功立业的时刻。
分类:
Web程序 时间:
2018-07-10 14:36:50
阅读次数:
177
Given two strings A and B of lowercase letters, return true if and only if we can swap two letters in A so that the result equals B. Example 1: Input: ...
分类:
其他好文 时间:
2018-07-10 13:42:16
阅读次数:
180
转自https://www.cnblogs.com/emanlee/archive/2012/09/13/2683912.html % 获取字符串长度 length(a) % 连接两个字符串,每个字符串最右边的空格被裁切 d=strcat(a,c) length(d) % 连接多行字符串,每行长度可 ...
分类:
其他好文 时间:
2018-07-08 18:02:10
阅读次数:
162