码迷,mamicode.com
首页 > 其他好文
关于ip的一些认知
1、ip组成:ip地址由32位(4字节)组成,分为网络号和主机号;2、分类: A:首位为0;1.0.0.0~127.255.255.255;前8位为网络号,后24位主机号 B:前两位为10;128.0.0.0~191.255.255.255;前16位为网络号,后16位主机号 C:前三位为110...
分类:其他好文   时间:2014-07-07 16:56:04    阅读次数:168
where, group by, having
where vs having当一个sql语句中存在where子句,会先执行where,然后执行group by,然后执行having.一般来说,only use 'having' when you use 'group by'Always use 'having' with aggregate f...
分类:其他好文   时间:2014-07-07 16:58:32    阅读次数:183
Problem Insertion Sort List
Problem Description:Sort a linked list using insertion sort.Solution: 1 public class Solution { 2 public ListNode insertionSortList(ListNode head)...
分类:其他好文   时间:2014-07-07 16:57:55    阅读次数:117
Problem Path Sum II
Problem Description:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.Solution: 递归。 1 public List>...
分类:其他好文   时间:2014-07-07 16:59:12    阅读次数:169
Problem Evaluate Reverse Polish Notation
Problem Description:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integ...
分类:其他好文   时间:2014-06-30 14:32:54    阅读次数:151
Problem Linked List Cycle II
Problem Description:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without u...
分类:其他好文   时间:2014-07-07 17:00:35    阅读次数:161
C#高级编程(第8版)——委托声明、使用(第一节)
首先,声明一个Currency的结构。Currency结构有自己的ToString()重载方法和一个与GetCurrencyUnit()的签名相同的静态方法。这样,就可以用同一个委托变量调用这些方法了: struct Currency { public uint Dollars...
分类:其他好文   时间:2014-07-07 17:01:13    阅读次数:121
代码片段
iPhone代码片段收集iOS应用开发最佳实践:编写高质量的Objective-C代码
分类:其他好文   时间:2014-07-07 17:03:41    阅读次数:122
添加别名的重要性
-- =============================================-- Author: -- Create date: -- Description: -- Environment: -- ========...
分类:其他好文   时间:2014-07-07 17:04:24    阅读次数:136
【大话设计模式】—— 工厂方法模式
一、概念 想象一下我们的寻常见到的工厂,下一个订单,付了订金,一段时间后就能够提货。我们不须要知道工厂是用的什么机器,怎么安排工人的,从哪来的材料,只须要一个订单就好,工厂就能够依照其固定流水线做出我们所须要的产品。设计模式中也有类似的一个大神:工厂方法模式。 以下让我们来认识一下: 工厂方法...
分类:其他好文   时间:2014-07-07 17:05:05    阅读次数:272
WEKA运行参数修改(RunWeka.ini文件)
一般使用weka进行数据挖掘的时候会碰到两个问题,一是内存不够,二是libsvm使用不了,这时就需要重新配置RunWeka.ini文件,解决上述问题。查看RunWeka.ini原文如下: 1 # Contains the commands for running Weka either with a...
分类:其他好文   时间:2014-07-07 17:05:42    阅读次数:234
Chrome设计文档-多进程架构
chromium multi-process architecture 本文档从high-level的角度描述Chromium的多进程架构。 问题 要构建一个决不崩溃或挂起的渲染引擎几乎是不可能的。同样的,要构建一个100%安全的渲染引擎也是不可能的。 从某些角度来看,当今的web浏览器有点类似于过...
分类:其他好文   时间:2014-07-07 17:06:15    阅读次数:284
ajax
通过使用 XMLHttpRequest 对象,web 开发者可以做到在页面已加载后从服务器更新页面!在 2005 年 AJAX 被 Google 推广开来(Google Suggest)。Google 建议使用 XMLHttpRequest 对象来创建一种动态性极强的 web 界面:当您开始在 Go...
分类:其他好文   时间:2014-07-07 17:07:39    阅读次数:200
vi 命令 使用方法
一、Unix编辑器概述 编辑器是使用计算机的重要工具之中的一个,在各种操作系统中,编辑器都是不可缺少的部件。Unix及其类似的ix 操作系统系列中,为方便各种用户在各个不同的环境中使用,提供了一系列的ex编辑器,包含 ex, edit,ed 和 vi.当中ex,edit,ed都是行编辑器,如今已非....
分类:其他好文   时间:2014-07-07 17:08:57    阅读次数:186
【HDOJ】2222 Keywords Search
AC自动机基础题。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 #define MAXL 1000005 9 #define TRIEN 26 10...
分类:其他好文   时间:2014-07-07 17:12:08    阅读次数:242
2014 Super Training #2 F The Bridges of Kolsberg --DP
原题:UVA 1172 http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3613动态规划问题。定义: dp[i] = 右岸前i个村庄(m岸)能够与左岸(n岸)...
分类:其他好文   时间:2014-07-07 17:13:26    阅读次数:260
关于Base64编码
作者:唐风 Base 64是一种比较古老的编码方式,在通信中非常常见。它实现很简单。 What? “Base64是一种基于64个可打印字符来表示二进制数据的表示方法(来自维基)”。这句话我一开始没有看懂,现在我用我懂的方式再解释一下:我们可以把通信的数据流分为两种,“二进制流”和“文本流”。(注意,...
分类:其他好文   时间:2014-07-07 17:16:02    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!