题目内容: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 题目分析:罗马数字向阿拉伯数字的转换情况如下: 1、M=1000 D=5 ...
分类:
其他好文 时间:
2017-03-05 00:31:20
阅读次数:
191
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. Solution: 以3999,为例: class Solution {public ...
分类:
编程语言 时间:
2017-03-03 11:43:56
阅读次数:
176
本文主要补充两个主题: 1.手动更新索引 2.通过maven客户端发布本地jar包到nexus 先说第一个主题: 由于maven中央仓库汇集了全世界绝大多数的组件,所以它的索引库非常庞大,在我们右击仓库update index时,经常是点击了之后无反应。 这时候我们需要手动下载index文件,并上传 ...
分类:
其他好文 时间:
2017-03-01 21:08:18
阅读次数:
234
RPLIDAR是由RoboPeak Team,SlamTec公司开发的低成本2D LIDAR解决方案。它可以扫描6度半径内的360°环境。 RPLIDAR的输出非常适合构建地图,做slam或构建3D模型。 首先你要有一个工作空间,例如: 如何构建rplidar ros包 > 1)将此项目克隆到cat ...
分类:
系统相关 时间:
2017-02-28 00:34:55
阅读次数:
1098
什么是缓冲区(Buffer) 定义 简单地说就是一块存储区域,哈哈哈,可能太简单了,或者可以换种说法,从代码的角度来讲(可以查看JDK中Buffer、ByteBuffer、DoubleBuffer等的源码),Buffer类内部其实就是一个基本数据类型的数组,以及对这个缓冲数组的各种操作; 常见的缓冲 ...
分类:
编程语言 时间:
2017-02-27 23:23:19
阅读次数:
350
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
分类:
其他好文 时间:
2017-02-26 08:18:51
阅读次数:
185
问题描述 栋栋最近开了一家餐饮连锁店,提供外卖服务。随着连锁店越来越多,怎么合理的给客户送餐成为了一个急需解决的问题。 栋栋的连锁店所在的区域可以看成是一个n×n的方格图(如下图所示),方格的格点上的位置上可能包含栋栋的分店(绿色标注)或者客户(蓝色标注),有一些格点是不能经过的(红色标注)。 方格 ...
分类:
其他好文 时间:
2017-02-23 19:52:54
阅读次数:
210
find . -name "*.java" -type f find all the files within a director and its sub-directory ended with .java rm *~ delete all the files ended with ~ grep ...
分类:
其他好文 时间:
2017-02-23 18:29:28
阅读次数:
220
【BZOJ4101】[Usaco2015 Open]Trapped in the Haybales (Silver) Description Farmer John has received a shipment of N large hay bales (1≤N≤100,000), and pla ...
分类:
移动开发 时间:
2017-02-22 19:39:58
阅读次数:
480
相当于attach 和detach > mydata=transform(mtcars,sumx=mpg+disp) 向数据框中添加新变量与mydsta$sumx相同 > View(mydata) 将弹出小框,进行数据查看 > within(leadership,{+ agecat=NA+ agec ...
分类:
编程语言 时间:
2017-02-19 10:59:19
阅读次数:
397