• ## In this paper, we understand the principle and conversion between system

Time：2021-6-8

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 […]

• ## Basic data types in Java

Time：2020-10-5

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, 8-bit, signed integer represented by binary complement; The minimum value is – 27(- 128) with a maximum of 27-1 (127), the default value is 0; Byte type […]

• ## C serial 7 – attention points of shaping machine

Time：2020-8-10

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, […]

• ## An occasional question on leetcode

Time：2020-7-7

Address: https://leetcode-cn.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 […]