码迷,mamicode.com
首页 > 其他好文
LeetCode:Intersection of Two Arrays
Intersection of Two Arrays Total Accepted: 5682 Total Submissions: 12479 Difficulty: Easy Given two arrays, write a function to compute their intersection. Example: Given n...
分类:其他好文   时间:2016-05-22 12:12:52    阅读次数:162
LeetCode:Invert Binary Tree
Invert Binary Tree Total Accepted: 92036 Total Submissions: 200903 Difficulty: Easy Invert a binary tree. 4 / 2 7 / \ / 1 3 6 9 to 4 / 7 ...
分类:其他好文   时间:2016-05-22 12:15:10    阅读次数:132
LeetCode:Implement Stack using Queues
Implement Stack using Queues Total Accepted: 39756 Total Submissions: 130128 Difficulty: Easy Implement the following operations of a stack using queues. push(x) -- Push e...
分类:其他好文   时间:2016-05-22 12:14:21    阅读次数:145
LeetCode:Intersection of Two Linked Lists
Intersection of Two Linked Lists Total Accepted: 74850 Total Submissions: 246823 Difficulty: Easy Write a program to find the node at which the intersection of two singly linked li...
分类:其他好文   时间:2016-05-22 12:13:38    阅读次数:181
LeetCode:Length of Last Word
Length of Last Word Total Accepted: 94220 Total Submissions: 319858 Difficulty: Easy Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return ...
分类:其他好文   时间:2016-05-22 12:14:00    阅读次数:150
LeetCode:Excel Sheet Column Number
Excel Sheet Column Number Total Accepted: 80221 Total Submissions: 190904 Difficulty: Easy Related to question Excel Sheet Column Title Given a column title as appear in an ...
分类:其他好文   时间:2016-05-22 12:11:20    阅读次数:155
[Nutch]Hadoop单机伪分布模式的配置
在之前的博文中,我们一直在使用Nutch的local模式,那么Nutch的Deploy模式该怎么使用呢?首先我们来配置hadoop,为使用Nutch的deploy模式做准备。...
分类:其他好文   时间:2016-05-22 12:11:53    阅读次数:196
[Nutch]Hadoop单机伪分布式模式的使用(deploy)
在上一篇博文我们对Nutch进行了hadoop的配置,那么本文就对nutch的deploy模式的使用进行说明。...
分类:其他好文   时间:2016-05-22 12:12:49    阅读次数:186
【LeetCode】257. Binary Tree Paths 解题报告
转载请注明出处:http://blog.csdn.net/crazy1235/article/details/51471280Subject 出处:https://leetcode.com/problems/binary-tree-paths/ Given a binary tree, return all root-to-leaf paths.For example, given the fo...
分类:其他好文   时间:2016-05-22 12:12:55    阅读次数:204
数据标准化(归一化)处理
数据标准化(归一化)处理是数据挖掘的一项基础工作,不同评价指标往往具有不同的量纲和 量纲单位,这样的情况会影响到数据分析的结果,为了消除指标之间的量纲影响,需要进行数据标准化处理,以解决数据指标之间的可比性。原始数据经过数据标准 化处理后,各指标处于同一数量级,适合进行综合对比评价。以下是两种常用的 ...
分类:其他好文   时间:2016-05-22 12:08:17    阅读次数:169
[Design Pattern] Service Locator Pattern 简单案例
Service Locator Pattern,即服务定位模式,用于定位不同的服务。考虑到 InitialContext::lookup 的成本比较高,提供了 Cache 类缓存以定位到的服务。 代码实现 Service 接口 Service1, Service2 实现 Service 接口,提供具 ...
分类:其他好文   时间:2016-05-22 12:07:55    阅读次数:136
LCA
...
分类:其他好文   时间:2016-05-22 12:09:02    阅读次数:104
《面向对象分析与设计》阅读笔记02
今天我读完了这本书,觉得写的太好了。用了一个简单的例子,就详细地讲解了封装的应用。我认为可以这样的思想完全可以应用到linux操作系统设计里。比如nand mtd和nand chip info的关系就是封装的概念。为什么要将guitar拆解出来guitarSpec ?因为guitarSpec中的的东 ...
分类:其他好文   时间:2016-05-22 12:10:20    阅读次数:111
麻烦的青蛙
【题目描述】 青蛙经过农田时的痕迹是一条直线,农田里的植物都在这个农田的二维坐标系的整数格点上,如果某只青蛙经过农田,也就是沿某条直线穿过农田,那么那条直线经过的所有的整数格点上的植物会都会被破坏掉,现在给出所有被破坏的植物的位置,询问哪一只青蛙破坏的植物最多。 【输入描述】 第一行包含两个整数R, ...
分类:其他好文   时间:2016-05-22 12:07:13    阅读次数:117
随机数
给定了一个能够生成1~n的随机函数,求一个生成1~m的随机函数。为了方便,假设n<m,m<n*n。 有一种比较通用,但不一定高效的方法是: 1、 z = (n - 1)*rand_n()+rand_n();此时z的取值范值范围是[1,n*n],而且是等概率的取值。 2、 剩下的就是将[1,n*n]映 ...
分类:其他好文   时间:2016-05-22 12:09:51    阅读次数:125
学生管理系统
点击上方MySchool.model.rar下载文件,代码齐全! ...
分类:其他好文   时间:2016-05-22 12:06:59    阅读次数:106
WCF的Restful和TCP方式调用性能比较
1. 实验背景关于WCF提供分布式访问服务,最常用的两种方式Restful方式和Tcp方式,在本地测试了一把。结果显示,还是Tcp方式,在压力测试下,性能最佳。只是处于跨平台的考虑,和自动化测试方便,大家才采用Restful方式提供服务。2. WCF服务功能描述:该服务为所有客户端(CS客户端或B/ ...
分类:其他好文   时间:2016-05-22 12:08:09    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!