码迷,mamicode.com
首页 >  
搜索关键字:lintcode1 a+b problem solution 题解    ( 75925个结果
【LeetCode OJ】Longest Consecutive Sequence
Problem Link:http://oj.leetcode.com/problems/longest-consecutive-sequence/This problem is a classical problem where we can reduce the running time by ...
分类:其他好文   时间:2014-05-05 22:55:22    阅读次数:552
连接数过高导致网络故障处理
前段时间,一连发现好几个用户的路由器里面的连接数过高,我仔细查看了一下,发现有一个通用的问题就是:用户有连接很多LAN口的连接,都是指向内网IP有些甚至是255.255.255.255的目标地址,这样直接导致用户连接数过高,无法正常访问其他的网络资源我初步分析,有可能是以下几种情况,一种是病毒,另一...
分类:其他好文   时间:2014-05-05 22:53:27    阅读次数:316
Leetcode: Balanced Binary Tree
很锻炼DP/recursive思路的一道题,个人感觉DP/recursive算是比较难写的题目了。这道题解法的巧妙之处在于巧用-1,并且使用临时存储,节省了很多开支。这道题同时也在Career Cup上面出现过这道题我两次调试通过,第一次错是因为input{}, output false, expe...
分类:其他好文   时间:2014-05-05 22:45:10    阅读次数:352
【LeetCode OJ】Word Ladder I
Problem Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are inspected in this problem:Hash Table. One hash set is the words di...
分类:其他好文   时间:2014-05-05 22:44:44    阅读次数:393
poj 1077 八数码(BFS+康托展开)
1 /* 2 题意:八数码问题,给出3*3的矩阵含1~8以及x,给出一个符合的解使得移动后的矩阵的顺序为1~8,最后为x 3 4 题解:BFS 5 需要用到康托展开来表示状态,不然数组无法完全表示所有状态,这样BFS就无法判断找不到解的情况(status 6 的0ms,0KB究竟是怎...
分类:其他好文   时间:2014-05-05 22:34:16    阅读次数:403
Balanced Binary Tree
Link:http://oj.leetcode.com/problems/balanced-binary-tree/Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced ...
分类:其他好文   时间:2014-05-05 22:29:55    阅读次数:382
Lowest Bit------HDOJ杭电1196(想法很重要)
Problem Description Given an positive integer A (1 For example, given A = 26, we can write A in binary form as 11010, so the lowest bit of A is 10, so the output should be 2. Another example...
分类:其他好文   时间:2014-05-05 13:22:39    阅读次数:394
codechef Turbo Sort 题解
Input t – the number of numbers in list, then t lines follow [t  Each line contains one integer: N [0 N  Output Output given numbers in non decreasing order. Example Input: 5 5 3 ...
分类:其他好文   时间:2014-05-04 00:04:09    阅读次数:376
codechef The Lead Game 题解
The game of billiards involves two players knocking 3 balls around on a green baize table. Well, there is more to it, but for our purposes this is sufficient. The game consists of several rounds ...
分类:其他好文   时间:2014-05-03 16:15:33    阅读次数:296
[ACM] hdu 1228 A+B (字符串处理)
A + B Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11543    Accepted Submission(s): 6699 Problem Description   读入两个小于100的正整数A和B,计...
分类:其他好文   时间:2014-05-03 16:00:57    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!