1. 功能 将程序中的double值精确到小数点后两位。可以四舍五入,也可以直接截断。 比如:输入12345.6789,输出可以是12345.68也可以是12345.67。至于是否需要四舍五入,可以通过参数来决定(RoundingMode.UP/RoundingMode.DOWN等参数)。 2. 实 ...
分类:
编程语言 时间:
2017-10-26 15:24:19
阅读次数:
235
I’ve been playing around a lot with docker. It’s awesome, and it creates a whole new world of possibilities, and I’m constantly coming up with new ide... ...
分类:
其他好文 时间:
2017-10-26 15:21:29
阅读次数:
242
添加线程组 线程数 :对应用户数, Ramp-Up: 多少秒启动这些线程,1秒代表1秒内启动设置的线程数,10秒代表10秒内启动线程数 循环次数: 每个线程执行线程组内的请求循环次数 调度器:可以对线程启动,结束,延迟做相应配置 添加请求的相关配置 这是几个很常用的配件: 其中最重要的是采样器,ht ...
分类:
其他好文 时间:
2017-10-26 11:41:17
阅读次数:
220
Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up:Wha ...
分类:
其他好文 时间:
2017-10-25 21:18:37
阅读次数:
142
为了使得朋友们对分布式分区视图有个概念,也为了方便后面的内容展开,我们先看看下面一个图: 讲述分布式分区视图之前,很有必要将之与我们常常熟悉的分区表和索引进行区别。 首先,分布式分区视图是一个横向扩展的方案(Scale out),而分区表却是一个纵向扩展的方案(Scale up)。通过使用分布式分区 ...
分类:
数据库 时间:
2017-10-25 13:53:04
阅读次数:
280
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:
其他好文 时间:
2017-10-25 00:51:24
阅读次数:
202
141. Linked List Cycle Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time and O(1) space? 快慢指针 ...
分类:
其他好文 时间:
2017-10-24 20:49:28
阅读次数:
141
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题目含义:判断一个列表是否有环路 ...
分类:
其他好文 时间:
2017-10-24 17:18:47
阅读次数:
142
#top top命令的第一行“ top - 19:56:47 up 39 min, 3 users, load average: 0.00, 0.00, 0.00” 显示的内容依次为 “系统当前时间 、 系统到目前为止已运行的时间、 当前登录系统的用户数量、 系统负载(任务队列的平均长度)三个值分别 ...
分类:
系统相关 时间:
2017-10-24 13:09:08
阅读次数:
210
JQuery中的常用事件 .click() 鼠标单击触发事件,参数可选(data,function) .dblclick() 双击触发,同上 .mousedown()/up() 鼠标按下/弹起触发事件 .mousemove() 鼠标移动事件 .mouseover()/out() 鼠标移入/移出触发事 ...
分类:
Web程序 时间:
2017-10-24 11:21:14
阅读次数:
147