# java在浮点型运算时是非精确计算,如下 System.out.println(0.05 + 0.01);// 0.060000000000000005 System.out.println(1.0 - 0.42);// 0.5800000000000001 System.out.println ...
分类:
其他好文 时间:
2020-06-05 13:25:34
阅读次数:
62
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:
其他好文 时间:
2020-06-04 11:56:26
阅读次数:
48
module divide_2(clk,rst,clk_out); input clk,rst;output clk_out; reg clk_out; always @(posedge clk or negedge rst) if(!rst) begin clk_out<=0; end else ...
分类:
其他好文 时间:
2020-06-03 15:31:59
阅读次数:
79
使用了long。没有解决int的溢出问题。 class Solution { public: int divide(int dividend, int divisor) { //if (dividend == 0) return 0; //if (divisor == 1) return divid ...
分类:
其他好文 时间:
2020-05-31 18:17:56
阅读次数:
101
一,为什么要修改docker的cgroup driver? 1,什么是cgroups? cgroups(Control Groups) 是 linux 内核提供的一种机制 它可以限制、记录任务组所使用的物理资源 它是内核附加在程序上的hook, 使程序运行时对资源的调度触发相应的钩子, 达到资源追踪 ...
分类:
系统相关 时间:
2020-05-29 17:56:22
阅读次数:
179
我们先看一个最古老的多线程实现的服务端 public class SocketThread { public static void main(String[] args) throws IOException { ServerSocket serverSocket = new ServerSock ...
分类:
编程语言 时间:
2020-05-28 14:54:22
阅读次数:
329
<input type="number" pattern="number" onkeyup="value=value.replace(/[^\d\.]/g,'')" class="weui-input" id="odd_numbers" aria-describedby="inputGroupSuc ...
分类:
其他好文 时间:
2020-05-26 12:37:10
阅读次数:
68
ZABBIX服务器添加一台被监控的目标设备,主要信息如下:
> Host name:10.10.10.1
> Visible name:NJ-OA-01-02
> Groups:LNX_APP_OA系统
> Agent interfaces:
> IP 地址:10.10.10.1
> Connect to:IP
> Port:10...
分类:
其他好文 时间:
2020-05-24 10:09:48
阅读次数:
136
博客转自:http://www.lighthouse3d.com/tutorials/glut-tutorial/subwindows/ 创建和销毁子窗口 With GLUT we can define subwindows, i.e. divide the main window in diffe ...
分类:
其他好文 时间:
2020-05-23 18:29:11
阅读次数:
54
Description Given an integer array , find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Examp ...
分类:
其他好文 时间:
2020-05-18 22:47:34
阅读次数:
65