一、进制 ES6不仅完善了数字的八进制形式,还补充了一种十六进制形式,并且添加了全新的二进制形式。下面的三个变量分别表示八进制、十六进制和二进制的10,注释中给出了该进制的另一种写法。 注意,只有十进制才能表示小数。 二、Number ES6不仅增强了Number对象处理数字的精度,还扩展了它的数字 ...
分类:
其他好文 时间:
2019-02-11 10:19:19
阅读次数:
194
这个实验曾经做过 这次又做了一遍,对之前的过程作了补充 binary bomb 一、实验目的: 增强对程序机器级表示、汇编语言、调试器和逆向工程等理解。 二、实验要求: 1熟练使用gdb调试器和objdump; 2单步跟踪调试每一阶段的机器代码; 3理解汇编语言代码的行为或作用; 4“推断”拆除炸弹 ...
分类:
其他好文 时间:
2019-02-10 12:17:34
阅读次数:
944
Given an array of one's and zero's convert the equivalent binary value to an integer. Eg: [0, 0, 0, 1] is treated as 0001 which is the binary represen ...
分类:
其他好文 时间:
2019-02-10 10:56:21
阅读次数:
175
Given a binary tree, return the vertical order traversal of its nodes values. For each node at position (X, Y), its left and right children respective ...
分类:
其他好文 时间:
2019-02-10 10:54:33
阅读次数:
306
"81. Search in Rotated Sorted Array II" 本题难度: Medium Topic: Binary Search 类似 "[Lintcode]62. Search in Rotated Sorted Array/[Leetcode]33. Search in Rot ...
分类:
其他好文 时间:
2019-02-10 09:35:44
阅读次数:
188
"[Lintcode]62. Search in Rotated Sorted Array" / "[Leetcode]33. Search in Rotated Sorted Array" 本题难度: Medium/Medium Topic: Binary Search Description 6 ...
分类:
其他好文 时间:
2019-02-10 09:31:29
阅读次数:
156
"[Lintcode]61. Search for a Range" / "[Leetcode]34. Find First and Last Position of Element in Sorted Array" 本题难度: Medium/Medium Topic: Binary Search ...
分类:
其他好文 时间:
2019-02-10 09:22:00
阅读次数:
143
"183. Wood Cut" 本题难度: Hard Topic: Binary Search Description Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to gua ...
分类:
其他好文 时间:
2019-02-10 09:17:21
阅读次数:
195
<题目链接> 题目大意: 有一个农民,站在(0,0)点,从(1,1)点到(m,n)点每个点上有棵树,问这个农民能看到多少棵树。(如果多棵树在同一条直线上,那么他只能看到一颗) 解题分析: 因为农民站在(0,0)点,所以,我们根据图像分析可得,设树的坐标为(x,y),当gcd(x,y)=1,即树的横、 ...
分类:
其他好文 时间:
2019-02-10 09:16:24
阅读次数:
166
int is a primitive type, Variables of int type store the actual binary value for the Integer type you want to represent. Integer is a class, no diffee ...
分类:
编程语言 时间:
2019-02-10 00:25:56
阅读次数:
200