码迷,mamicode.com
首页 >  
搜索关键字:first firstordefault    ( 14152个结果
leetcode - Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.在文本串中查找模式串第一次出现的位置个人思路:1,暴...
分类:其他好文   时间:2014-09-09 10:48:38    阅读次数:220
Learn Python From 'Head First Python' [2] : Sharing
1.publish2.update print_lolPS:for Step 1.write the code in to a py file. put the py file into a folder named nester. new a py file named 'setup' and t...
分类:编程语言   时间:2014-09-09 10:44:28    阅读次数:309
The 2014 ACM-ICPC Asia Mudanjiang Regional First Round
【A】The HimalayasTime Limit: 2 Seconds Memory Limit: 65536 KBAs an artist, Bob usually need to travel around the world. He made a lot of sketch of s...
分类:其他好文   时间:2014-09-09 10:30:58    阅读次数:230
zoj3811 Untrusted Patrol (dfs)
2014牡丹江网络赛C题 (第三水的题The 2014 ACM-ICPC Asia Mudanjiang Regional First Roundhttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3811Untrusted Pa...
分类:其他好文   时间:2014-09-08 10:50:16    阅读次数:433
ZOJ 3817Chinese Knot(The 2014 ACM-ICPC Asia Mudanjiang Regional First Round)
思路: 将4个串每个串都反向这样得到新的四个串一共8个串,对于母串每个位置检测这个串能不能放进去,hs或者后缀数组都可以。然后dp[i][j] (0#include#include#include#include#include#include#include#include#include#inc...
分类:其他好文   时间:2014-09-08 10:49:36    阅读次数:314
ContentControl 与 ViewModel (一)
前阵子有人问我MVVM模式下,在View中嵌套View,切换View。想一想还是写下来吧。主要就是用到 ContentControl 和 DataTemplate,这算是一种 ViewModel First 的思想吧。其实好多MVVM的框架,也都提供这样的功能。在ContentControl绑定Vi...
分类:其他好文   时间:2014-09-07 23:41:56    阅读次数:303
Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.方法一:暴力破解,O(mn),超时,写了这段代码,估...
分类:其他好文   时间:2014-09-07 22:25:45    阅读次数:328
The 2014 ACM-ICPC Asia Mudanjiang Regional First Round
The Himalayashttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5341签到 1 #include 2 int main(){ 3 int t,n,a[64]; 4 while(~scanf("%d",&...
分类:其他好文   时间:2014-09-07 21:00:25    阅读次数:321
Learn Python From 'Head First Python' [1] : The List
1.the concept of List2. how to define a method of myself3.how to iterator a listPS:for Step 2,3. it is related with a key word: 'def'. we define a fun...
分类:编程语言   时间:2014-09-07 21:00:15    阅读次数:229
LeetCode--Binary Tree Maximum Path Sum
递归,dfs这里返回值是一个pair,first表示两个子树的不经过当前root的最大pathsum;second表示两个子树的,以root->left和root->right为路径起始节点的路径的最大值 1 /** 2 * Definition for binary tree 3 * stru.....
分类:其他好文   时间:2014-09-07 19:43:15    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!