码迷,mamicode.com
首页 > 其他好文
LeetCode OJ Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / 2 3 Return 6. i...
分类:其他好文   时间:2015-03-31 18:01:18    阅读次数:119
软件的设计理念
Key Design Concepts 关键的设计概念 Managing complexity is the most important technical topic in software development. 管理的复杂性是软件开发中最重要的技术课题。 The goal of all software-design techniques is to break acomplica...
分类:其他好文   时间:2015-03-31 18:02:18    阅读次数:194
播放音频SoundHelper
一个音频的工具类import java.io.File; import java.util.HashMap; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.SoundPool; import androi...
分类:其他好文   时间:2015-03-31 18:00:29    阅读次数:192
leetcode || 53、Maximum Subarray
problem: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [?2,1,?3,4,?1,2,1,?5,4], the contiguous su...
分类:其他好文   时间:2015-03-31 18:00:23    阅读次数:121
程序员写作必备-Word2010从正文开始设置页码
近期在写论文的时候,遇到这个难题,在这里分享一下! 如果一篇文档或一份报告需要跳过封面和目录,从正文开始设置页码,那么该如何设置呢? 假设文档的第一页和第二页是封面和目录,我们需要从第三页的正文开始设置页码: 1、首先将光标移动到第二页的最后位置,点击【页面布局】选项,在【页面设置】中找到【分隔符】,选择【下一页】,这是光标自动移动到第三页,如图所示:     2、点击【插入】...
分类:其他好文   时间:2015-03-31 17:59:53    阅读次数:204
程序猿眼中的聚集索引和非聚集索引:
OS:这里对聚集所以和非聚集所以的概念说明就不叙述了。 身为程序猿,在平时的开发中,数据的操作是经常要做的事情,大多数公司是没有DBA的,所以程序开发人员的在操作数据的时候根本不会去看SQL语句执行的效率,所以就时常的发现大数据的情况下查询数据库总会遇到各种缓慢Loading的情况。 从用户的...
分类:其他好文   时间:2015-03-31 17:59:56    阅读次数:150
写个程序登陆58同城
代码http://pan.baidu.com/s/1i3kqYjV主要代码,还是比较复杂的,58验证比较难破 /// /// 获取城市编码 /// /// 石家庄:sjz,北京:bj /// public st...
分类:其他好文   时间:2015-03-31 17:57:34    阅读次数:146
打印乘法口诀
package org.demo;public class DemoCheng { public static void main(String[] args) { for (int i = 1; i < 10; i++) { for (int j = 1;...
分类:其他好文   时间:2015-03-31 17:56:23    阅读次数:157
USB的逻辑值和用途值有什么区别?
用途最小值,用途最大值、逻辑最小值,逻辑最大值分别是什么意思?如题:code uint8 ReportDescriptor[]={ //每行开始的第一字节为该条目的前缀,前缀的格式为: //D7~D4:bTag。D3~D2:bType;D1~D0:bSize。以下分别对每个条目注释。 ...
分类:其他好文   时间:2015-03-31 17:57:09    阅读次数:211
复制 注册 删除文件 判断指定位置有无文件
If Dir("C:\WINDOWS\system32\MSDATGRD.OCX", vbDirectory) = "" Then ' Label1.Caption = "无" Else: Label1.Caption = "有" End IfFileCopy App.Path...
分类:其他好文   时间:2015-03-31 17:56:02    阅读次数:108
幼小成兔子问题
static void Main(string[] args) { while (true) { Console.Write("请输入第几个月份:"); int s = Convert.ToIn...
分类:其他好文   时间:2015-03-31 17:58:20    阅读次数:109
Rhel6-piranha配置文档
系统环境: rhel6 x86_64 iptables and selinux disabled主机: 192.168.122.119 server19.example.com 192.168.122.25 server25.example.com 192.168.122.163 server63....
分类:其他好文   时间:2015-03-31 17:57:09    阅读次数:146
In function 'int av_clipl_int32_c(int64_t)': error: 'UINT64_C' was not declared in this scope
cygwin下使用ndk编译jni时遇到的错误:/ffmpeg/include/libavutil/common.h: In function 'int av_clipl_int32_c(int64_t)':/ffmpeg/include/libavutil/common.h:178:47: err...
分类:其他好文   时间:2015-03-31 17:54:26    阅读次数:236
Object-C学习随笔
#import与#include的区别,NSLog输出语句,类的定义
分类:其他好文   时间:2015-03-31 17:57:23    阅读次数:132
2015/3/31
今天差不多是我开始努力学习技术以来的两个星期之后了。两个星期,以前在电脑游戏和各种视频、贴吧中总是悄然而逝,但在我开始努力的那一刻起,它变得充实了。 目前进度大概是这样的:《算法导论》看到第12章二叉查找树,应该算是看得挺快的了,因为之前的一些基础,但是课后习题并没有全部弄懂,第六章往后大概都...
分类:其他好文   时间:2015-03-31 17:56:55    阅读次数:138
cudaMemcpy2D介绍
cudaMemcpy2D( d_A, // 目的指针 d_pitch, // 目的pitch bmp1, // 源指针 sizeof(int)*2, // 源数据pitch sizeof(int)*2, // 数据拷贝宽度 2, // 数据拷贝...
分类:其他好文   时间:2015-03-31 17:54:55    阅读次数:165
截取中文字符长度(中文、字母都有效)
以下给大家分享下:“中文字符长度,和截取中文字符(字母汉字通用)”样例:先算出字符的长度,在截取显示,日过字符长度超过6就用...取代echo '';$CustomizedInfo = '美日汇购物返利网http://www.hnzyxok.com/';if(mb_strlen($Customize...
分类:其他好文   时间:2015-03-31 17:55:30    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!