码迷,mamicode.com
首页 > 其他好文
菲波纳契数列
#include "stdio.h"void main(){ int a[20],i; a[0]=1; a[1]=1; for(i=2;i<20;i++) a[i]=a[i-1]+a[i-2]; for(i=0;i<20;i++) printf("%d ",...
分类:其他好文   时间:2016-01-18 06:57:00    阅读次数:134
[学点电脑]如何更有效的搜索
其实很多资源在互联网上都有,有些人就愿意做“伸手党"。如何才能不做一个伸手党呢?会使用搜索引擎是一个基本技能。有效搜索第一个就是选择搜索引擎,如果你搜索国内的内容,则建议你使用baidu,如果是外文资料,则google、bing等搜索引擎会好很多。第二个就是选择关键词。例如我想要给孩子们选择一些可以...
分类:其他好文   时间:2016-01-18 06:54:55    阅读次数:177
[LeetCode] Power of Three 判断3的次方数
Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?Credits:Special...
分类:其他好文   时间:2016-01-18 06:56:31    阅读次数:131
Maximum Product of Word Lengths -- LeetCode
Given a string arraywords, find the maximum value oflength(word[i]) * length(word[j])where the two words do not share common letters. You may assume t...
分类:其他好文   时间:2016-01-18 06:55:13    阅读次数:166
随想:没有完美的架构,有舍有得
在过年的很多年我一直在追求一个完美的架构,系统对第三方组件没有强依赖,可替换。这么多年过去了,我在很多项目中尝试和实现了这个基本理念,具体表现在对IoC,ORM等等的抽象处理。有趣的是我发现不单是我有这种偏好,我发现身边很多工作多年的高级开发人员也同样有这种偏好。几年前在Travix开发API的时候...
分类:其他好文   时间:2016-01-18 06:53:47    阅读次数:129
Leetcode: Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the...
分类:其他好文   时间:2016-01-18 06:54:39    阅读次数:114
Qt 获取字符串的UTF8编码值
看到群里有人在问怎么获取字符串的UTF8编码值自己测试了下 熟悉下函数[html] view plaincopyprint?ui->setupUi(this);QStrings=QString::fromUtf8("推广礼包");QStringunicode16=QString("");for(QS...
分类:其他好文   时间:2016-01-18 06:55:18    阅读次数:236
Leetcode: Count of Range Sum
Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.Range sum S(i, j) is defined as the sum of the eleme...
分类:其他好文   时间:2016-01-18 06:53:54    阅读次数:259
[LeetCode] Coin Change 硬币找零
You are given coins of different denominations and a total amount of moneyamount. Write a function to compute the fewest number of coins that you need...
分类:其他好文   时间:2016-01-18 06:53:23    阅读次数:200
block学习笔记
🌏🌏🌏🌏🌏Block基本使用 block最基本的使用方式,创建 — 调用. 这里的block类型:void(^)() —> 无返回值 无参数 三种创建block的方式,最常用的是方式三. inlineBlock:快速生成block代码. block作用:保存一段代码,并不是马上...
分类:其他好文   时间:2016-01-18 06:51:19    阅读次数:128
form表单元素类型
1 2 3 4 5 男 6 女 7 中国 8 美国 9 13 14 15
分类:其他好文   时间:2016-01-18 01:49:42    阅读次数:165
Nginx搭建反向代理服务器过程详解
一.反向代理 我们都知道,80端口是web服务的默认端口,其他主机访问web服务器也是默认和80端口进行web交互,而一台服务器也只有一个80端口,这是一个标准.我们来看下面两个场景: 1.服务器的80端口被占用了,我们想实现服务器的其他端口(比如port:2368)web服务. 2.我们想在...
分类:其他好文   时间:2016-01-18 01:46:24    阅读次数:188
自己动手编译octave 4.0.0
今天在做作业的时候,发现imread不能使用,说要安装相应的图形包,可是要安装image时,却发现要求4.0.0版本,而我本机的linux系统ubuntu15.04只有3.8.x的安装源,没办法,只能自己动手编译、安装啦。sudo apt-get build-dep octavesudo apt.....
分类:其他好文   时间:2016-01-18 01:47:18    阅读次数:647
使用Git进行协同开发
用了一段时间github,一直想用时间来对git的使用来做一段笔记,前段时间比较忙,现在沉下心来学习也是极好的。很多项目开发会采用git这一优秀的分布式版本管理工具来进行项目版本管理。因为git的使用非常灵活,所以在实际操作中会有许多不同的工作流程。不同团队对于不同项目会有不同的协作方式。掌握git...
分类:其他好文   时间:2016-01-18 01:46:49    阅读次数:196
失去是一种成功 。拥有的越少是一种成功。
心情很差。商人都是 威逼利诱。 真他妈恶心。我的善良都变成了别人的进攻的武器。我每有一点点进步。 我都想将其放大为快乐。最后都被扼杀了。跟这样的人 少接触。 失去是一种成功 。拥有的越少是一种成功。
分类:其他好文   时间:2016-01-18 01:46:24    阅读次数:156
CompiledEffect Direct3D9 Sample fxc.exe
分类:其他好文   时间:2016-01-18 01:44:42    阅读次数:156
HDU 1029 Ignatius and the Princess IV DP
kuangbin 专题这题,有很多种解法。第一种:直接比较每个数出现次数。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 ...
分类:其他好文   时间:2016-01-18 01:43:27    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!