码迷,mamicode.com
首页 > 编程语言
java基础之HTTP协议详解
HTTP协议通信过程详解 HTTP请求详解 HTTP响应详解...
分类:编程语言   时间:2014-07-31 07:28:05    阅读次数:215
spring4 aop annotation
package com.zrd.aop.annotation; /** * 第一步:定义一个接口 * * @author ZRD * */ public interface IMyService { int add(int i, int j); } package com.zrd.aop.annotation; import org.springframework.stere...
分类:编程语言   时间:2014-07-31 07:27:55    阅读次数:351
Subset leetcode java
题目:Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must n....
分类:编程语言   时间:2014-07-31 05:22:45    阅读次数:286
C/C++ extern关键字
在阅读代码的时候经常遇见extern关键字,由于平时接触很少一般没用到所以不是很熟,这里特别学习一下。首先得熟悉C++中声明与定义的概念。变量的定义用于为变量分配存储空间,还可以为变量指定初始值,在一个程序中变量有且仅有一个定义。变量的声明用于向程序表面变量的类型和名字。定义也是声明:当定义变量时我...
分类:编程语言   时间:2014-07-31 05:22:35    阅读次数:338
Path Sum II leetcode java
题目:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and ....
分类:编程语言   时间:2014-07-31 05:22:15    阅读次数:287
Letter Combinations of a Phone Number leetcode java
题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the tele....
分类:编程语言   时间:2014-07-31 05:22:05    阅读次数:307
Convert Sorted Array to Binary Search Tree leetcode java
题目:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.题解:先复习下什么是二叉搜索树(引自Wikipedia):二叉查找树(Binary Search ....
分类:编程语言   时间:2014-07-31 05:21:55    阅读次数:215
Balanced Binary Tree leetcode java
题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the d....
分类:编程语言   时间:2014-07-31 05:21:35    阅读次数:221
Path Sum leetcode java
题目:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given su....
分类:编程语言   时间:2014-07-31 05:21:25    阅读次数:214
深入一步探索Python计算身份证校验位的代码写法【map -> imap】
python版身份证末位校验码计算。 函数使用了由map,zip到引入itertools后的imap,izip, 追求pythonic是信仰!...
分类:编程语言   时间:2014-07-31 03:04:25    阅读次数:277
C语言进行网站开发之cgi
?? 安装Apach 配置ApacheRuntime 下面的过程中一直点击next 配置CGI,放开配置:AddHandler cgi-script .cgi 2.添加Option,截图 3.编写CGI代码如下: #define _CRT_SECURE_NO_WARNINGS  //取消安全检查 #...
分类:编程语言   时间:2014-07-31 03:02:15    阅读次数:430
Java基础学习1-Java标识符及基本类型
暑假闲来无事,重新学习Java,希望能够加深自己对Java的理解与深入。 第一天,从Java标识符开始。 Java标识符的命名规则 - 标识符必须以字母、下划线、美元符$开头。 - 标识符其它部分可以是字母、下划线、美元符$和数字的任意组合。 - Java标识符的大小写敏感,无长度限制(但是也不要太...
分类:编程语言   时间:2014-07-31 02:59:45    阅读次数:335
java文件转成jar包再转成exe文件
【本文简介】本文将介绍如何把一个跑在eclipse的java应用,导出成jar文件,再变成exe可执行文件。下面以一个跑在MyEcplise上的GUI应用程序为例子,一步步转化成exe可执行文件。【具体步骤】1、安装Fat jar(小应用可不用,直接导出普通jar包即可) 如果你在程序开发的时候用....
分类:编程语言   时间:2014-07-31 02:57:45    阅读次数:304
Java中字符串与日期之间的转换
项目过程中,经常遇到需要字符串格式的日期和Date类型的日期之间的相互转换。使用SimpleDateFormat类,可以方便完成想要的转换。 SimpleDateFormat能够实现本地化的时间格式化及转换。从选定一个自定义的模式(pattren)开始,模式由已经定义好的'A'to'Z' 及 ...
分类:编程语言   时间:2014-07-31 02:41:35    阅读次数:331
Maximum Depth of Binary Tree leetcode java
题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthes....
分类:编程语言   时间:2014-07-31 02:41:15    阅读次数:229
几种并发服务器模型的实现:多线程,多进程,select,poll,epoll
#include #include #include #include #include #include #include #include #include #include "rio.h"#include #include #define ERR_EXIT(m) \ do { \ ...
分类:编程语言   时间:2014-07-31 02:35:06    阅读次数:411
进程与线程的区别?
进程与线程的区别?进程是什么?程序并不能单独运行,只有将程序装载到内存中,系统为它分配资源才能运行,而这种执行的程序就称之为进程。程序和进程的区别就在于:程序是指令的集合,它是进程运行的静态描述文本;进程是程序的一次执行活动,属于动态概念。在多道编程中,我们允许多个程序同时加载到内存中,在操作系统的...
分类:编程语言   时间:2014-07-31 02:34:25    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!