今天带来一个简单的线性结构上的DP,与上次的照明系统(UVA11400)是同一种类型题,便于大家类比、总结、理解,但难度上降低了。 We say a sequence of characters is a palindrome if it is the same written forwards a ...
分类:
其他好文 时间:
2018-09-02 20:30:51
阅读次数:
182
openstack 默认开的远程控制是novnc 这里是用kolla初建的openstack nova_console vi /etc/kolla/globals.yml ... # Valid options are [ novnc, spice, rdp ]nova_console: "spic ...
分类:
其他好文 时间:
2018-09-01 20:31:44
阅读次数:
291
别人给了一个Oracle文件,结果在导入的时候发现有问题,报错如下:IMP-00010: not a valid export file, header failed verification在网上查询后发现,是版本数据库问题造成,使用UE编辑器打开dmp文件,看到首行如下:上图表明该数据库版本为:... ...
分类:
数据库 时间:
2018-08-31 14:50:33
阅读次数:
788
自己方法复杂度比较高 可以O(n)的方法,遍历一遍 用两个指针记录maxstring的位置 然后遇到跟hashmap里重复的就更新指针https://leetcode.com/problems/longest-substring-without-repeating-characters/discus ...
分类:
其他好文 时间:
2018-08-28 10:33:54
阅读次数:
113
1 //easy 2 //注意字符串长度可能不一样 3 4 class Solution { 5 public boolean isAnagram(String s, String t) { 6 if(s.length() != t.length()) return false; 7 char[] ... ...
分类:
其他好文 时间:
2018-08-28 10:31:58
阅读次数:
118
http://www.fpdf.org/ https://github.com/Setasign/FPDF https://www.ntaso.com/fpdf-and-chinese-characters/ ...
分类:
Web程序 时间:
2018-08-27 21:40:35
阅读次数:
115
UnionFind就是acm中常用的并查集... 常用操作 Ref 相关问题: Graph Valid Tree (权限题做不了嘤嘤嘤) 684. Redundant Connection 685. Redundant Connection II ...
分类:
其他好文 时间:
2018-08-26 13:50:02
阅读次数:
164
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No ...
分类:
其他好文 时间:
2018-08-25 11:42:25
阅读次数:
145
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2018-08-24 13:22:31
阅读次数:
118