https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring ...
分类:
其他好文 时间:
2016-06-23 23:47:47
阅读次数:
186
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the ...
分类:
其他好文 时间:
2016-06-22 18:49:26
阅读次数:
97
Dueling Network Architectures for Deep Reinforcement Learning ICML 2016 Best Paper Google DeepMind Abstract: 本文是 ICML 2016 的最佳论文之一,又是出自 Google DeepMin ...
分类:
Web程序 时间:
2016-06-21 22:23:47
阅读次数:
803
Additive number is a string whose digits can form additive sequence. Additive number is a string whose digits can form additive sequence. A valid addi ...
分类:
其他好文 时间:
2016-06-19 06:47:40
阅读次数:
188
题目链接:https://leetcode.com/problems/valid-anagram/ 题目大意:就是判断两个字符串是否由相同的字符组成(字符个数也要相同) 1)排序方法 将字符串进行排序以后,如果想等,即可 代码如下: 2)hash方法 先统计第一个字符串中各个字符出现的次数,然后再遍 ...
分类:
其他好文 时间:
2016-06-18 23:58:54
阅读次数:
238
创建本地分支:git branch dev 报错:fatal: Not a valid object name: 'master'. 原因: 问题描述-一个非法的master,原因:本地还没有创建master,你可以执行以下git branch,会发现没有看到本地分支列表 解决方案: 如果本地没有文 ...
分类:
其他好文 时间:
2016-06-18 23:48:27
阅读次数:
583
_BLOCK_TYPE_IS_VALID宏用来检测这个内存块在当前堆上是否有效,但是这里的指针是一个临时变量,临时变量是在栈上分配的,函数清理栈时会自动回收这些内存,程序员无需管理。 new 和 malloc申请的内存是位于堆上面,程序不会自动清理,这就是区别所在。 因此,检查所释放(delete ...
分类:
其他好文 时间:
2016-06-17 23:53:13
阅读次数:
207
(在队友怂恿下写了LeetCode上的一个水题) 传送门 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => ...
分类:
其他好文 时间:
2016-06-17 21:16:55
阅读次数:
185
Valid Parentheses 本题收获: 1.stack的使用 2.string和char的区别 题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if th ...
分类:
其他好文 时间:
2016-06-17 21:12:49
阅读次数:
275