码迷,mamicode.com
首页 >  
搜索关键字:part solution    ( 14980个结果
C语言的时间函数
---恢复内容开始---下面是C语言的获取本地时间和构造时间进行格式化时间显示输出的相关函数:This page is part of release 3.35 of the Linux man-pages project.#include char *asctime(const...
分类:编程语言   时间:2014-05-15 16:40:30    阅读次数:300
emacs quick open and jump file (or buffer) which name is current word
Sometime, we need to open a file or buffer which name began with current word in emacs. Here I give the solution as follows. (provide 'quick-file-jump) (defun ab/quick-buffer-jump () "Quickly jum...
分类:其他好文   时间:2014-05-15 15:02:20    阅读次数:373
Divide Two Integers
Divide two integers without using multiplication, division and mod operator. public class Solution { public int divide(int dividend, int divisor) { int sign = 1; if (dividend < 0) { ...
分类:其他好文   时间:2014-05-15 14:40:50    阅读次数:285
leetcode第一刷_Count and Say
水题。 描述的还挺麻烦的,实际上就是纸老虎,用两个string,一个存上一轮的结果,一个用来更新出这一轮的结果,每次扫描上一轮,统计一个字符出现的次数,然后把这个次数和字符加入到这一轮的字符串中就可以了。 class Solution { public: string countAndSay(int n) { if(n == 0) return ""; ...
分类:其他好文   时间:2014-05-15 04:12:07    阅读次数:289
leetcode第一刷_Pow(x, n)
快速乘方的算法,写了好多变,出了各种错,真是服了我自己了。 思想是每次对n减半,将当前的temp平方。需要注意的是如果当前的n是个奇数,减半之后会丢失掉一次乘积,因此如果当前的n为奇数,应该先在结果里面乘一个temp。 还有,n可能是负数,负数的次方最后要求一次倒数。 class Solution { public: double pow(double x, int n) { ...
分类:其他好文   时间:2014-05-15 03:29:34    阅读次数:252
LeetCode Gas Station
class Solution {public: int canCompleteCircuit(vector &gas, vector &cost) { int len = gas.size(); if (len diff(len, 0); for (...
分类:其他好文   时间:2014-05-15 01:58:39    阅读次数:358
部署高可用的Lync Server 2013 Part 5 准备LYNC服务器
好,一切准备就绪,现在开始准备我们正式的lync服务器:2台前端服务器2台边缘服务器2台中介服务器2台持久聊天服务器2台officewebapp服务器2台控制器服务器2台反向代理服务器,我们用Haproxy+keepalived所有服务器安装好系统,打好所有补丁前端服务器需要安装的功能powershell:..
分类:其他好文   时间:2014-05-14 16:09:32    阅读次数:300
用DPM(Deformable Part Model,voc-release3.1)算法在INRIA数据集上训练自己的人体检测模型
用DPM(Deformable Part Model,voc-release3.1)算法在INRIA数据集上训练自己的人体检测模型...
分类:其他好文   时间:2014-05-14 14:33:05    阅读次数:523
Asp.Net 构架(Http Handler 介绍) - Part.2
原文地址:http://www.cnblogs.com/JimmyZhang/archive/2007/09/15/894124.html引言在 Part.1Http请求处理流程一文中,我们了解了Http请求的处理过程以及其它一些运作原理。我们知道Http管道中有两个可用接口,一个是IHttpHan...
分类:Web程序   时间:2014-05-14 12:39:13    阅读次数:369
Leetcode: Unique Paths
这道题最开始采用recursive的方法,结果犯了TLE(time limit exceeded)的错误,事实证明recursive的时间代价还是太高,所以改用DP的方法,把曾经算出来的结果存起来,我用的是一个M*N的matrix来存储 1 public class Solution { 2 ...
分类:其他好文   时间:2014-05-14 10:57:31    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!