码迷,mamicode.com
首页 >  
搜索关键字:part solution    ( 14980个结果
60款开源云应用【Part 1】(60 Open Source Apps You Can Use in the Cloud)
60款开源云应用【Part 1】(60 Open Source Apps You Can Use in the Cloud) 本篇翻译自http://www.datamation.com/open-source/60-open-source-apps-you-can-use-in-the-cloud-1.html,原作者Cynthia Harvey。  本人对云服务也是没有了解太多,希...
分类:移动开发   时间:2014-06-05 09:57:12    阅读次数:609
找BUG
近日在写一个简易的操作系统,经常受到bug的偷袭,由于开发OS的特殊性,一些常规的debug手段用不上,于是打算记录下自己的debug过程,用于交流。 Problem: 在做图层叠加时,引入结构体SHTCTL进行各个图层的管理,但遭遇了黑屏,原因可能来自于图层管理模块、内存管理模块或其他未知原因。 Solution: 恢复到上次不黑屏的版本(即去掉图层管理模块),果然可以进行显示。在此基础...
分类:其他好文   时间:2014-06-05 07:16:45    阅读次数:199
Leetcode - Reverse Words
比起POJ弱爆了一题,从后往前扫描一遍,O(n)时间,只要注意各种极端情况即可,不明白通过率为什么只有13%。 #include #include using namespace std; class Solution { public: void reverseWords(string &s) { char* cstr = new char[s.size()+1]; ...
分类:其他好文   时间:2014-06-05 03:45:47    阅读次数:221
每日算法之二十:Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()...
分类:其他好文   时间:2014-06-05 02:15:14    阅读次数:262
BZOJ 刷题记录 PART 1
【前言】好久没写题解了,我还是写一下做题表格吧,如果有值得写的题目还是写一下。 【BZOJ1270】递推显然很简单。直接从高处和上面转移过来。 for (h=H;h;h--) { Max=0; for (i=1;i<=n;i++) Max=max(f[i][h+D],Max); for (i=1;i<=n;i++) f[i][h]=max...
分类:其他好文   时间:2014-06-05 00:30:21    阅读次数:284
leetcode:String to Integer (atoi)
问题 输入:一个表示数字的字符串,需要考虑不同的输入形式。 输出:对应的整数 特殊输入形式: 1.输入开始几个字符为空格 2.考虑正负号 3.数字字符不属于[0,9]时,输出当前结果 4.字符串代表的数字大于INT_MAX或者小于INT_MIN时输出INT_MAX或者INT_MIN。 class Solution { // out of range...
分类:其他好文   时间:2014-06-03 06:30:14    阅读次数:314
LeetCode: Subsets II [091]
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If S = [1,2,2], a solution ...
分类:其他好文   时间:2014-06-01 08:51:06    阅读次数:292
ELF解析(part one)
最近学习了ELF格式文件,在学习过程中产生过很多疑惑,也翻找了不少网上资源。期间经常会惊讶于设计者的思路。预计整个工程分成三个部分,这里是第一个部分,介绍了一些前期遇到的问题。因为这是这个月的最后一天,且特别想去赶5:50的“X战警-逆转未来”,所以就将未完品发了出来。...
分类:其他好文   时间:2014-06-01 07:11:30    阅读次数:360
【leetcode】Generate Parentheses
题目: 给定整数n,返回n对匹配的小括号字符串数组。 For example, given n = 3, a solution set is: "((()))", "(()())", "(())()", "()(())", "()()()" 分析: 这种问题的模式是:1)问题的解有多个 ,2)每个解都是由多个有效的 ”步骤“ 组成的,3)变更以有解的某个或某些”步骤“ 可...
分类:其他好文   时间:2014-05-31 22:28:45    阅读次数:467
leetCode解题报告5道题(九)
题目一:CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4],....
分类:其他好文   时间:2014-05-31 20:01:02    阅读次数:455
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!