Tag：binary digit

Time：202168
The numbers we use in our life are all decimal, and binary is the most direct language that the machine can recognize. But binary is too big to record. So binary is usually converted to octal or hexadecimal. In our daily life, the number (decimal system) is between 0 ~ 9. Similarly, the range of […]

Time：2020105
Data types in Java can be divided into two categories: basic data types and reference data types Basic data type Integer type byte Byte type is a byte, 8bit, signed integer represented by binary complement; The minimum value is – 27( 128) with a maximum of 271 (127), the default value is 0; Byte type […]

Time：2020810
1、 System 1. Display octal and hexadecimal (1) % d is used to display decimal numbers; (2) % O is used to display octal numbers; (3) % X is used to display hexadecimal numbers. (4) % u is used to display an integer of type unsigned. In addition, if you want to display prefixes 0, […]

Time：202077
Address: https://leetcodecn.com/probl…repoAddress: https://github.com/pigpigever… Topic analysis The Hamming distance between two integers refers to the number of different binary positions corresponding to the two numbers. Give two integers x and y, and calculate the Hamming distance between them. For example, there are two binary values: 001 100 The Hamming distance between them is2What we need is […]