Greedy + Stack: 用一个栈维护最后要留存下来的digits 需要注意的是:如果遍历到string的某个char, string后面的char数刚刚好能填满这个栈,那么即使这个char比栈顶还要小,也不出栈,直接入栈 最后要删除leading 0 用char[]实现栈,思路一样,要快很多 ...
分类:
其他好文 时间:
2016-12-03 02:19:40
阅读次数:
170
1 Only account, contact, lead, incident entities are supported for merge 2 Merging Custom Entity Records with Dynamics CRM 2011 Dialog https://communi ...
分类:
其他好文 时间:
2016-12-02 21:36:29
阅读次数:
257
Refer to: https://discuss.leetcode.com/topic/58334/a-couple-of-java-solutions-with-explanations/2 When to add 1 instead of minus 1, here is an example ...
分类:
其他好文 时间:
2016-12-01 14:44:50
阅读次数:
153
利用 iMacros 的浏览器附加组件来提高工作效率 利用 iMacros 的浏览器附加组件来提高工作效率 介绍 iMacros 这个强大的工具,使用简单的范例演示了如何使用这个工具来完成对于网页的操作,对于大量的具有重复性的工作内容尤其可以提高效率。对于测试人员或开发人员,这个工具也可以帮助管理 ...
分类:
系统相关 时间:
2016-11-30 13:46:55
阅读次数:
473
Brute Force算法,时间复杂度 O(mn) Rabin karp算法时间复杂度可以降低到 O(mn) on average. haystack: abcdefgh, needle: abc needle_code = a + b*p + c*p^2 使用sliding window计算hay ...
分类:
其他好文 时间:
2016-11-27 09:55:30
阅读次数:
181
Teaching Plan Learning Goals Analysis on teaching material Student’s Book One 1 Unit 3 Travel journal. 2. Key teaching points: the contents of article ...
分类:
其他好文 时间:
2016-11-27 07:47:03
阅读次数:
167
/*
目录:
1.语法
2.常见函数及用法
2.1排序函数
2.2wm_concat()能实现不同行同字段的合并!!!!生产环境慎用
2.3开窗用法
2.4占比函数ratio_to_report()over(partitionby)
2.5前一个lag后一个lead
2.6第一个first_value最后一个last_value
2.7加1连乘再减1
*/
--1.分析函..
分类:
数据库 时间:
2016-11-24 00:20:18
阅读次数:
237
from http://www.cnblogs.com/think/archive/2011/10/06/CEF-genericUsage.html 一般用法 使用CEF便捷的创建一个全功能的内建浏览器如下所示: // Define an instance of our CefHandler imp ...
分类:
其他好文 时间:
2016-11-21 19:38:53
阅读次数:
328
zookeeper集群网上demo一大堆,补充一下一些不明白的地方 1 复制2份zookeeper,savle作为备份节点 2.配置zoo.cfg 其中要注意的是新增的dataDir=/usr/data/zookeeper1_master/data 这个data文件夹本身在zookeeper是没有的 ...
分类:
其他好文 时间:
2016-11-21 19:00:50
阅读次数:
196
如果使用 MySQL 数据库忘记了root账号密码,可以通过调节配置文件,跳过密码的方式登数据库, 在数据库里面修改账号密码,一般默认的账号是 root 1、编辑 MySQL 配置文件 my.cnf 注意: 以实际 my.cnf 配置文件路径为准 vim /etc/my.cnf [mysqld] s ...
分类:
数据库 时间:
2016-11-19 15:26:39
阅读次数:
306