码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
leetcode Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?求链表是否有环的问题,要考虑链表为空的情况,定义一个快指针和一个慢指针,如果快指针和...
分类:其他好文   时间:2014-06-02 08:05:16    阅读次数:255
Leetcode Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?借用博...
分类:其他好文   时间:2014-06-02 07:32:33    阅读次数:291
POJ2491 Scavenger Hunt【裸map】
#include #include #include #include #include #include #include #include using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("D:/1.txt","r",stdin); freopen("D:/2.txt","w",stdout...
分类:其他好文   时间:2014-06-02 07:02:20    阅读次数:253
poj2864
1 #include 2 #include 3 #include 4 using namespace std; 5 int main () 6 { 7 int n,m; 8 while(scanf("%d %d",&m,&n)&&m&&n) 9 {10 in...
分类:其他好文   时间:2014-06-02 06:25:12    阅读次数:158
大数相乘算法C++版
#include #include using namespace std;#define null 0#define MAXN 51//大数相乘char *big_cheng(char line1[], char line2[]){short s1[MAXN], s2[MAXN], s[MAXN]...
分类:编程语言   时间:2014-06-02 05:52:25    阅读次数:253
【HDOJ】1043 Eight
这道题目最开始做的时候wa+TLE。后面知道需要状态压缩,最近A掉。并且练习一下各种搜索算法。1. 逆向BFS+康拓展开。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 ...
分类:其他好文   时间:2014-06-02 05:39:04    阅读次数:259
iOS: 布局可视化语法 Visual Format Syntax
可视化语法 Visual Format SyntaxThe following are examples of constraints you can specify using the visual format. Note how the text visually matches the im...
分类:移动开发   时间:2014-06-02 05:37:46    阅读次数:351
jreble for eclipse配置
1 下载安装jrebel for eclipse  安装方法不再赘述,常规方式Install via Eclipse Marketplace->earch for JRebel 2 安装之后替换为破解的jrebel.jar 和 jrebel.lic  jrebel-5.5.3-crack破解版下载地址    安装之后如下: 3 Using JRebel in Eclip...
分类:系统相关   时间:2014-06-02 05:34:52    阅读次数:327
HDU - 4815 Little Tiger vs. Deep Monkey (长春赛区C题)
题意:有A,B两个人,n道题目,每题有对应的分数,B答对题目的概率是0.5,求A不输给B的概率不小于P要拿的最低分数 思路:DP,dp[i][j]来表示B答了前i题后分数为j的概率,,然后通过B的概率求A的最低分数#include #include #include #include using namespace std; const int MAXN = 40010; int a[...
分类:其他好文   时间:2014-06-02 02:25:20    阅读次数:243
手机号正则表达式
^[1][3-8]+\\d{9}^首字母[1]必须是1,方格可以去掉吧。。[3-8]第二个数字为3-8之间+加表示至少一个[3-8]\\d表示数字{9}表示9个,就是9个数字。using System;using System.Collections.Generic;using System.Run...
分类:移动开发   时间:2014-06-02 02:11:42    阅读次数:394
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!