码迷,mamicode.com
首页 > 其他好文
LeetCode:Merge Sorted Array
Merge Sorted Array Total Accepted: 99440 Total Submissions: 330510 Difficulty: Easy Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note...
分类:其他好文   时间:2016-05-07 11:23:21    阅读次数:173
Linus下各个目录介绍
/boot   引导加载程序文件 放置系统开机的相关文件 列如:Vmlinux-xxx的Kernel,主引导程序grub,initrd   /lib   系统库 包含支持位于/bin和/sbin/下的二进制文件的库文件 库文件名为ld*或lib*.so.* 列如:ld-2.12.2.so,libgcc.so.5.6     /etc:    配置文件 包含所有程序所需的配置文...
分类:其他好文   时间:2016-05-07 11:22:21    阅读次数:143
LeetCode:Integer to Roman
Integer to Roman Total Accepted: 63476 Total Submissions: 162818 Difficulty: Medium Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from ...
分类:其他好文   时间:2016-05-07 11:23:10    阅读次数:169
LeetCode:Climbing Stairs
Climbing Stairs Total Accepted: 107240 Total Submissions: 291664 Difficulty: Easy You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb...
分类:其他好文   时间:2016-05-07 11:22:56    阅读次数:129
LeetCode:Length of Last Word
Length of Last Word Total Accepted: 92400 Total Submissions: 315131 Difficulty: Easy Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return ...
分类:其他好文   时间:2016-05-07 11:23:24    阅读次数:154
LeetCode:Excel Sheet Column Number
Excel Sheet Column Number Total Accepted: 77950 Total Submissions: 186797 Difficulty: Easy Related to question Excel Sheet Column Title Given a column title as appear in an Excel sh...
分类:其他好文   时间:2016-05-07 11:23:46    阅读次数:184
黑白图像—————— 八连块
八连块 【题目】:              输入一个n*n的黑白图像(1表示黑色,0表示白色),任务是统计其中八连块的个数。如果两个黑格子有        公共边或者公共顶点,就说它们属于同一个八连块。如下图6-11表示3个八连块。 【分析】             通过题目要求,定义8方向数组,运用搜索来确定有几个八连块,搜索查找,     查找过的进行标记,保证不会重复查...
分类:其他好文   时间:2016-05-07 11:23:35    阅读次数:172
TortoiseGit使用密钥连接服务器
git是个好东西,tortoisegit也是个好东西。在Windows下使用tortoisegit用的比较多,而对命令行的时候比较少。对于tortoisegit可以支持使用密钥有两种,一种是支持openssh的密钥,一种是支持putty的密钥。但是这两种不同,对于Linux的ssh一般都使用openssh,但是没关系,我们可以转换。使用putty的密钥:1、在安装TortoiseGit的时候其实会让...
分类:其他好文   时间:2016-05-07 11:20:43    阅读次数:188
LeetCode:Invert Binary Tree
Invert Binary Tree Total Accepted: 88886 Total Submissions: 195325 Difficulty: Easy Invert a binary tree. 4 / 2 7 / \ / 1 3 6 9 to 4 / 7 2...
分类:其他好文   时间:2016-05-07 11:22:35    阅读次数:145
SSE指令集学习:Compiler Intrinsic
大多数的函数是在库中,Intrinsic Function却内嵌在编译器中(built in to the compiler)。1. Intrinsic FunctionIntrinsic Function作为内联函数,直接在调用的地方插入代码,即避免了函数调用的额外开销,又能够使用比较高效的机器指令对该函数进行优化。优化器(Optimizer)内置的一些Intrinsic Function行为信息...
分类:其他好文   时间:2016-05-07 11:20:30    阅读次数:211
第一二章预备知识
1. C++ = C + 面向对象编程(类) + 泛型编程(模板) 2. 标志main函数头 int main() { statements return 0; } 3.C++预处理器和iostream文件 名字空间 namespace 名字空间支持是一项C++特性,旨在让你编写大型程序以及将多个厂商现有的代码组和起来时更容易,有助于组织程序。 一个潜在的问题是,可能使...
分类:其他好文   时间:2016-05-07 11:22:21    阅读次数:122
LeetCode:Intersection of Two Linked Lists
Intersection of Two Linked Lists Total Accepted: 72956 Total Submissions: 240826 Difficulty: Easy Write a program to find the node at which the intersection of two singly linked list...
分类:其他好文   时间:2016-05-07 11:19:20    阅读次数:130
NBU 水水更健康 (二)
前言:唉,刚考完物理,只求30分T=T 字母个数统计 #include #include void main() { char x[1000]; int y,i,sum=0; gets(x); y=strlen(x); for(i=0;i='a'&&x[i]='A'&&x[i]<='Z') ...
分类:其他好文   时间:2016-05-07 11:19:31    阅读次数:226
PullToRefreshGridView 带下拉刷新,上拉加载的GridView控件
PullToRefreshGridView 带下拉刷新,上拉加载的GridView控件...
分类:其他好文   时间:2016-05-07 11:19:59    阅读次数:89
layoutSubviews和drawRect:(CGRect)rect的用法探讨
布局/定位相关 @interface UIView(UIViewHierarchy) - (void)setNeedsLayout; 注意: 1.在receiver标上一个需要被重新布局的标记,在系统runloop的下一个周期自动调用layoutSubviews。 - (void)layoutIfNeeded; 注意: 1.方法如其名,UIKit会判断该receiver是否需要l...
分类:其他好文   时间:2016-05-07 11:19:16    阅读次数:294
树链剖分模板
树链剖分的详解这里写得很好。我的标程与它的做法一样。 树链剖分的作用相当于在树上做线段树。 模板题 【ZJOI2008】树的统计 在一颗树上,区间查询,单点修改。 I. CHANGE u t : 把结点u的权值改为t II. QMAX u v: 询问从点u到点v的路径上的节点的最大权值 III. QSUM u v: 询问从点u到点v的路径上的节点的权值和...
分类:其他好文   时间:2016-05-07 11:20:16    阅读次数:225
二叉树:小球下落
小球下落 【题目大意】            有一颗二叉树,最大深度为D,且所以叶子的深度都相同。所有结点从上到下       从左到右编号为1,2,3,....2^D-1.在结点1处放一个小球,他会往下落。每个内结点       上都有一个开关,初始全部关闭,当每次有小球落到一个开关时,状态会发生改         变。当小球到达一个内结点时,如果该结点上的开关关闭,则往左走,否则往右...
分类:其他好文   时间:2016-05-07 11:19:34    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!