Twos complement: Negative numbers in binary 二进制的负数表示法 负数的表示法: 我们将第一位定义为符号位 ,1代表负数 0代表正数 计算5+(-5) 结果是2 it doesn’t work, 下面我们来介绍 one’s complement 在one’s ...
分类:
其他好文 时间:
2020-02-02 21:28:53
阅读次数:
110
704. Binary Search(二分查找) 链接 https://leetcode cn.com/problems/n repeated element in size 2n array 题目 给定一个?n?个元素有序的(升序)整型数组?nums 和一个目标值?target ,写一个函数搜索? ...
分类:
其他好文 时间:
2020-02-02 19:26:36
阅读次数:
67
1. 讲解ASP.net MVC的I/O操作 新建一个控制台程序,输入代码如下 using System; using System.IO; namespace IO { class Program { static void Main(string[] args) { // 判断文件是否存在 Co ...
分类:
Web程序 时间:
2020-02-02 18:05:32
阅读次数:
85
Given a binary tree . Split the binary tree into two subtrees by removing 1 edge such that the product of the sums of the subtrees are maximized. Sinc ...
分类:
其他好文 时间:
2020-02-02 15:59:08
阅读次数:
110
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes ...
分类:
其他好文 时间:
2020-02-01 19:43:59
阅读次数:
85
Binary Search Trees: BST树里首先讲了插入删除查找等操作,比较常规。查找:最差O(n),最好O(logn),平均O(logn);插入:成功的插入平均O(logn),最差也是O(n);删除里有三种情况,对于一次成功的删除,待删除的结点v的子结点个数只可能是0、1、2,如果是0的话 ...
分类:
其他好文 时间:
2020-02-01 16:03:31
阅读次数:
70
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longestpath betwee ...
分类:
其他好文 时间:
2020-02-01 11:02:57
阅读次数:
105
Client-Side Attacks - Social Engineering Tool: The FAT RAT Just like Veil, it generates Undetectable Metasploit backdoors. Uses a different method to ...
分类:
数据库 时间:
2020-02-01 00:38:55
阅读次数:
88
先创建文件denyIP将过滤出的IP写到其中然后在配置文件制定路径include/usr/local/nginx/conf/denyIP;zone:=one:10m:设置一个名字为one,大小为100M的缓存空间m=分钟s=秒,每分钟两千次请求,或每秒钟200次请求limit_req_zone$binary_remote_addrzone=one:100mrate=2000r/m;定义一个名为al
分类:
其他好文 时间:
2020-01-31 17:19:22
阅读次数:
97
67. Add Binary(二进制求和) 链接 https://leetcode cn.com/problems/add binary 题目 给定两个二进制字符串,返回他们的和(用二进制表示)。 输入为非空字符串且只包含数字?1?和?0。 示例?1: 输入: a = "11", b = "1" 输 ...
分类:
其他好文 时间:
2020-01-31 13:56:47
阅读次数:
51