码迷,mamicode.com
首页 > 其他好文
Valid Password
ProblemIn 1-9 keypad one key is not working. If someone enters a password then not working key will not be entered. You have given expected password a...
分类:其他好文   时间:2014-11-21 06:58:11    阅读次数:197
Leetcode-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-11-21 06:58:22    阅读次数:262
Leetcode-Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate...
分类:其他好文   时间:2014-11-21 06:57:28    阅读次数:212
Leetcode-Combinations Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb...
分类:其他好文   时间:2014-11-21 06:57:39    阅读次数:184
Well-ordered String
ProblemYou know a password is well-ordered string. Well-ordered string means that the order of the characters is in an alphabetical increasing order. ...
分类:其他好文   时间:2014-11-21 06:55:50    阅读次数:137
Tic Tac Toe
ProblemN*N matrix is given with input red or black.You can move horizontally, vertically or diagonally. If 3 consecutive samecolor found, that color w...
分类:其他好文   时间:2014-11-21 06:56:50    阅读次数:291
Leetcode-Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-11-21 06:56:07    阅读次数:122
Leetcode-Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your al...
分类:其他好文   时间:2014-11-21 06:55:40    阅读次数:187
Telephone Number
ProblemPrint all valid phone numbers of length n subject to following constraints:If a number contains a 4, it should start with 4No two consecutive d...
分类:其他好文   时间:2014-11-21 06:54:39    阅读次数:149
Leetcode-Search for a range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-11-21 06:57:04    阅读次数:155
模板与继承之艺术——命名模板参数
许多模板技术拖着一长串的类型参数,不过很多参数都设有合理的缺省值。 template class BreadSlicer{}; 但是如果我们需要指定某个非缺省实参,还必须明确的指定在它之前的所有实参,即使这些实参跟默认参数一致。 BreadSlicer
分类:其他好文   时间:2014-11-21 06:55:08    阅读次数:186
华为HG255D路由器使用OH3C进行中大校园网认证
之前用的上海贝尔RG100A-AA路由器,被我无情地摧残了,电源按钮挂了,只能换个路由器。由于在校内,使用OP还是比较方便的,网上淘了这款华为HG255D,店主已刷好OP,无线速率300M,想想也是值便进货了。 与之前的RG100A-AA不同,HG255D已带WAN口,一开始想直接安装YaH3C.....
分类:其他好文   时间:2014-11-21 06:54:15    阅读次数:220
hdu 2028 Lowest Common Multiple Plus(最小公倍数)
Lowest Common Multiple PlusTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34980Accepted Submissio...
分类:其他好文   时间:2014-11-21 06:54:49    阅读次数:216
[ES6] 09. Destructuring Assignment -- 2
Read More:http://es6.ruanyifeng.com/#docs/destructuringArray“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值:Exp 1:var [head, ...tail] = [1, 2, 3, 4];console.log(hea...
分类:其他好文   时间:2014-11-21 06:53:49    阅读次数:189
10大开源ERP系统
企业资源规划(ERP)和客户关系管理(CRM)系统现在已经成为各种组织和企业的必需品,通过它们,可以轻松实现企业的信息数据标准化、系统运行集成化、业务流程合理化、绩效监控动态化、管理改善持续化。 本文将为...
分类:其他好文   时间:2014-11-21 01:52:58    阅读次数:475
会场安排问题(南阳oj14)(贪心-区间不重叠)
会场安排问题 时间限制:3000 ms  |  内存限制:65535 KB 难度:4 描述学校的小礼堂每天都会有许多活动,有时间这些活动的计划时间会发生冲突,需要选择出一些活动进行举办。小刘的工作就是安排学校小礼堂的活动,每个时间最多安排一个活动。现在小刘有一些活动计划的时间表,他想尽可能的安排更多的活动,请问他该如何安排。 输入第一行是一个整型数m(m 每组...
分类:其他好文   时间:2014-11-21 01:45:16    阅读次数:230
ZOJ--3574--Under Attack II【线段树+欧拉公式】
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3574 题意:一个坐标系,给出x1、x2限定左右边界,有n条直线,告诉每条直线的k和b,问在x1、x2区间内空间被直线分割成几部分 思路: 这道题是比赛时做的,AC之后发现别人都是用归并排序求逆序对数来解的。 说我的解法吧,首先拿到题的时候发现是划分...
分类:其他好文   时间:2014-11-21 01:44:38    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!