/* 一开始想的是双指针,从两边开始检测,如果有*或者匹配就前进,但是想了想不对,因为可能此时不匹配,但是前边会有*来配对, 或者此时的*不知道应该当做什么,因为会对前边的有影响。 由于*和(会对后边的有影响,所以要把坐标存起来 */ if (s.length()==0) return tr... ...
分类:
其他好文 时间:
2018-01-14 20:21:03
阅读次数:
150
题目描述 Bessie is playing a video game! In the game, the three letters 'A', 'B', and 'C' are the only valid buttons. Bessie may press the buttons in any ...
分类:
其他好文 时间:
2018-01-13 23:46:07
阅读次数:
208
Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want to find ...
分类:
移动开发 时间:
2018-01-13 21:02:05
阅读次数:
307
Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2018-01-13 20:54:23
阅读次数:
147
Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2018-01-13 11:05:53
阅读次数:
83
解决思路: 1. 栈 2.使用Map,判断是否 匹配 ...
分类:
其他好文 时间:
2018-01-13 01:23:02
阅读次数:
182
题目链接:http://codeforces.com/problemset/problem/486/D 题意: 给你一棵树,n个节点,每个节点的点权为a[i]。 问你有多少个连通子图,使得子图中的max(a[i]) - min(a[i]) <= d。 ps.连通子图的定义: 如果一个点集V为一个连通 ...
分类:
其他好文 时间:
2018-01-12 11:37:43
阅读次数:
159
Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want to find ... ...
分类:
移动开发 时间:
2018-01-10 23:54:10
阅读次数:
423
The path "" is not a valid path to the 3.10.0-693.el7.x86_64 kernel headers.问题是找不到内核头文件,需要安装头文件,按照网上的方法yum安装后 还是不行,是那种的版本还是有问题 ,正确的安装命令: yum install " ...
分类:
系统相关 时间:
2018-01-10 14:00:38
阅读次数:
831
题目: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for ...
分类:
编程语言 时间:
2018-01-08 20:16:37
阅读次数:
211