首页 > 其他
[Leetcode] Word Pattern
题目如下。~Given apatternand a stringstr, find ifstrfollows the same pattern.Examples:pattern ="abba", str ="dog cat cat dog"should return true.pattern ="a...
分类:其他   时间:2015-10-10 01:34:12    收藏:0  评论:0  赞:0  阅读:365
2:策略模式
1 class Strategy: 2 3 def result(self,original): 4 return print(original) 5 6 class NormalStrategy(Strategy): 7 pass 8 9 class Bar...
分类:其他   时间:2015-10-10 01:34:02    收藏:0  评论:0  赞:0  阅读:218
Leetcode Factorial Trailing Zeroes
Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.解题思路:O(logn)解法:考虑n!的质数因子。后缀0总...
分类:其他   时间:2015-10-10 01:33:42    收藏:0  评论:0  赞:0  阅读:191
lintcode容易题1-10题
难度系数排序,容易题1-10题:Cosine Similarity new Fizz BuzzO(1)检测2的幂次 x的平方根不同的路径不同的路径 II 两个字符串是变位词 两个链表的和 中位数主元素Cosine Similarity题目:Cosine similarity is a measure...
分类:其他   时间:2015-10-10 01:33:33    收藏:0  评论:0  赞:0  阅读:1166
Kth Smallest Element in Unsorted Array
(referrence: GeeksforGeeks, Kth Largest Element in Array)This is a common algorithm problem appearing in interviews.There are four basic solutions.Sol...
分类:其他   时间:2015-10-10 01:33:02    收藏:0  评论:0  赞:0  阅读:198
盘点我用过的那些网盘(那些年,我们一起玩的网盘)
第一个,rayfile 中文名好像叫飞速网盘www.rayfile.com当年网盘可真叫少啊,找个免费网盘不容易,看到这个,就用了,体验真是超级差,下载上传速度十几kb,有时候几kb,用它简直就是找罪受。垃圾,没用多次时间就弃用了。2.QQ邮箱网盘(qq邮箱文件中转站右边那个)mail.qq.com...
分类:其他   时间:2015-10-10 01:32:52    收藏:0  评论:0  赞:1  阅读:1484
LeetCode #22 Generate Parentheses (M)
[Problem]Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set i...
分类:其他   时间:2015-10-10 01:32:42    收藏:0  评论:0  赞:0  阅读:234
不会接受30元
不会接受30元——尘埃落定原因很简单,第一,再创新的应用,你的客户群可以真正用到多少,满意度又是多少?第二,在中国的市场,有个亘古不变的传统就是占便宜。第三,对于互联网而言,核心是技术,而核心竞争力一定不是技术,你能做的到,就一定有一家大企业模仿的出来,除非你不够出名。个人觉得,创业必须要全职,没几...
分类:其他   时间:2015-10-10 01:32:33    收藏:0  评论:0  赞:0  阅读:260
UVa10603 Fill
解题思路:这是神奇的一题,一定要好好体会。见代码: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int maxn = 205; 7 int vis[maxn][maxn], ans[maxn],...
分类:其他   时间:2015-10-10 01:31:52    收藏:0  评论:0  赞:0  阅读:206
laravel session的使用
用Laravel开发应用,把原有的代码copy过来,以前的代码session使用了$_SESSION,本以为移植过来可以很好的运行的,因为没有依赖其他的组件,结果出现了这个 Undefined variable: _SESSION Laravel的session的配置...
分类:其他   时间:2015-10-10 00:30:23    收藏:0  评论:0  赞:0  阅读:220
支持Unicode的getopt
头文件: //////////////////////////////////////////////////////////////////////////////// /*?Getopt?for?Microsoft?C This?code?is?a?modification?of?the?Free?Software?Foundation,?Inc. ...
分类:其他   时间:2015-10-10 00:28:54    收藏:0  评论:0  赞:0  阅读:174
leetcode笔记:Implement strStr()
实现strstr()函数。返回needle(关键字)在haystack(字符串)中第一次出现的位置,如果needle不在haystack中,则返回-1。著名的解决算法主要有:KMP、Rabin-Karp和Boyer-Moore算法。...
分类:其他   时间:2015-10-10 00:27:52    收藏:0  评论:0  赞:0  阅读:208
【HDOJ】4183 Pahom on Water
就是一个网络流。red结点容量为2,查看最大流量是否大于等于2。对于条件2,把边反向加入建图。条件1,边正向加入建图。 1 /* 4183 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include...
分类:其他   时间:2015-10-10 00:27:02    收藏:0  评论:0  赞:0  阅读:170
Jmeter学习
20151007Jmeter支持的文件类型,Servlets,Perls脚本,Java对象数据库和查询,ftp服务器和其他资源的性能测试。Jmeter能做的事:1.录制脚本,参数化,检查点,集合点,关联,场景2.导出到错误日志和结果报表3.做web的功能测试,利用样本,可以做灰盒测试Jmeter的安...
分类:其他   时间:2015-10-10 00:26:52    收藏:0  评论:0  赞:0  阅读:258
用JUNCTION映射文件夹内容 解决多系统跑同一个虚拟机而共享文件夹路径不同的问题
事情由来:某机器安装了俩系统,WIN7X64用来玩PC游戏,WIN2012R2用来工作,系统分别在两个不同的分区,但进入到系统后,两个系统的系统盘都是C盘。换句话说,在WIN7里,分区1是C盘,分区2是D盘,但是到了WIN2012R2里,分区2是C盘,分区1是D盘。这么导致的后果是,虚拟机里映射的盘...
分类:其他   时间:2015-10-10 00:26:33    收藏:0  评论:0  赞:0  阅读:303
0930实验一报告
实验一、DOS命令解释程序的编写13物联网 谢敏 201306104116一、实验目的(1)认识DOS;(2)掌握命令解释程序的原理;(3)掌握简单的DOS调用方法;(4)掌握C语言编程初步。二、实验内容和要求编写类似于DOS,UNIX的命令行解释程序(1)自行定义系统提示符(2)自定义命令集(8-...
分类:其他   时间:2015-10-10 00:25:52    收藏:0  评论:0  赞:0  阅读:207
LeetCode #20 Valid Parentheses (E)
[Problem]Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the...
分类:其他   时间:2015-10-10 00:25:32    收藏:0  评论:0  赞:0  阅读:172
#290 wordpattern
#ifndef wordpattern_hpp#define wordpattern_hpp#include #include #include #include #include using namespace std;class Solution {public: bool wordPat...
分类:其他   时间:2015-10-10 00:24:42    收藏:0  评论:0  赞:0  阅读:291
EasyUI - Tooltip 提示控件
第一种:效果:html代码:不需要js代码,显示的是title中的内容。 Hover me 01第二种:效果:html代码: Hover here 02JS代码:position string 消息框位置。可用值有:"left","right","top","bottom" bottom...
分类:其他   时间:2015-10-10 00:24:22    收藏:0  评论:0  赞:0  阅读:302
Razor语法
Razor并不是新的开发语言,它只是一种用在View页面代码区块的编写风格,所用的代码一样都是c#,因此开发人员不需要额外学习新的语言。Razor基本语法1、在view页面输出表达式或者单个变量,只要在c#语句前面加上 @ 符号,同时在c#语句前后加上括号。razor表达式或者单个变量是不需要分号结...
分类:其他   时间:2015-10-10 00:24:12    收藏:0  评论:0  赞:0  阅读:372
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!