码迷,mamicode.com
首页 > 其他好文
[LeetCode]Paint House II
public class Solution { public int minCostII(int[][] costs) { int n = costs.length; if (n == 0) { return 0; } ...
分类:其他好文   时间:2015-12-01 08:26:19    阅读次数:112
正则表达式
正则表达式正则表达式,又称正规表示法、常规表示法(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。正则表达式使用单个字符串来描述、匹配一系列符合某个句法规则的字符串。在很多文本编辑器里,正则表达式通常被用来检索、替换那些符合某个模式...
分类:其他好文   时间:2015-12-01 08:24:13    阅读次数:256
连载 | 互联网上的精彩发言 (二)
terry kuok:中华人民共和国,"人民"跟"共和国"就是日文 = =。leemz2002:日语的“人民”、“共和”等词都出自中国古典,并非日本人独创的 新词。”人民“出自《史记 货殖列传》”共和“出自《史记 周本纪》类似的例子还有:“经济”出自《晋书》”文化“出自《说苑 指武》”政治“出自《尚...
分类:其他好文   时间:2015-12-01 08:25:16    阅读次数:390
1.1 ????(核心讲座,核心课程)
1.1 ????(核心讲座,核心课程)01 ??????(安宁哈塞哟?你好吗?)简单讲解:?:在字首不发音?:a?:n?:an?:n?:ieo,夭?:ng?:袅鞥(类似汉语拼音发音的niaong),宁?:h?:a?:ha?:s?:e(类似英语国际音标里的[e])?:se?:字首,不发音?:io?:i...
分类:其他好文   时间:2015-12-01 08:22:48    阅读次数:202
XenServer Tools 故障处理步骤
Eject any loaded DVD media (like xs-tools.iso) so the virtual DVD drive is empty.Snapshot VM before starting so you can roll back in case of problems....
分类:其他好文   时间:2015-12-01 08:23:16    阅读次数:410
^是什么运算符
按位运算符 异或0 ^ 1 得 11 ^ 1 得 00 ^ 0 得 01 ^ 0 得 1
分类:其他好文   时间:2015-12-01 08:24:54    阅读次数:260
一个互联网+应用的创意
事由在校门口经常去的“西安小吃”,吃了一碗臊子面,但远没有平时那么好吃。想着以后不会去了,周边新增的同类店铺很多,为什么还要一说吃面就去他家。后来想,该告诉老板,今天吃得不爽,这是帮助他,但没有告诉。换位思考看需求换厨师了,还是怎么了?总之老板应该要知道消息。作为一个小店的老板,收集信息的沟道,有创新空间。话说也有大平台,但小店操持,并不总有效。至少,我的感受,没有方便的途径发出去。创意依托某大众化...
分类:其他好文   时间:2015-12-01 07:12:35    阅读次数:269
[lintcode easy]Valid Parentheses
Valid ParenthesesGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.ExampleThe brac...
分类:其他好文   时间:2015-12-01 07:12:30    阅读次数:194
在主机中通过xdebug远程调试Vagrant虚拟机中drush脚本的方法
改方法是调试drush所执行的php代码的方法,同样适用于普通的cli方式运行的php程序的调试。1、首先需要调整cli方式的xdebug.ini配置:sudo vi /etc/php5/cli/conf.d/xdebug.ini[XDebug]zend_extension="/usr/lib/ph...
分类:其他好文   时间:2015-12-01 07:10:01    阅读次数:238
计算机视觉牛人博客和代码汇总(全)
每个做过或者正在做研究工作的人都会关注一些自己认为有价值的、活跃的研究组和个人的主页,关注他们的主页有时候比盲目的去搜索一些论文有用多了,大牛的或者活跃的研究者主页往往提供了他们的最新研究线索,顺便还可八一下各位大牛的经历,对于我这样的小菜鸟来说最最实惠的是有时可以找到源码,很多时候光看论文是理不清...
分类:其他好文   时间:2015-12-01 07:10:18    阅读次数:908
248. Strobogrammatic Number III
题目:A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).Write a function to count the total strob...
分类:其他好文   时间:2015-12-01 07:11:41    阅读次数:634
[lintcode easy]Convert Sorted Array to Binary Search Tree With Minimal Height
Given a sorted (increasing order) array, Convert it to create a binary tree with minimal height.ExampleGiven [1,2,3,4,5,6,7], return 4 / \ 2 ...
分类:其他好文   时间:2015-12-01 07:10:43    阅读次数:188
[lintcode easy]Longest Increasing Continuous subsequence
Longest Increasing Continuous subsequenceGive you an integer array (index from 0 to n-1, where n is the size of this array),find the longest increasin...
分类:其他好文   时间:2015-12-01 07:08:54    阅读次数:140
[LeetCode]Remove Linked List Elements
public class Solution { public ListNode removeElements(ListNode head, int val) { ListNode dummy = new ListNode(0); dummy.next = head;...
分类:其他好文   时间:2015-12-01 07:09:11    阅读次数:151
贪婪模式和非贪婪模式
1 package regex; 2 3 import java.util.regex.Matcher; 4 import java.util.regex.Pattern; 5 6 public class regexDemo { 7 public static void main(S...
分类:其他好文   时间:2015-12-01 07:08:22    阅读次数:140
[lintcode easy]Binary Tree Paths
Binary Tree PathsGiven a binary tree, return all root-to-leaf paths.ExampleGiven the following binary tree: 1 / \2 3 \ 5All root-to-leaf path...
分类:其他好文   时间:2015-12-01 07:07:19    阅读次数:154
[lintcode easy]Reverse Integer
Reverse digits of an integer. Returns 0 when the reversed integer overflows (signed 32-bit integer).ExampleGiven x = 123, return 321Given x = -123, re...
分类:其他好文   时间:2015-12-01 07:09:05    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!