Tag:number
-
Programmer “confused code” behavior reward! Why does this code run successfully?
When it comes to programmers, the usual impression for laymen is that they have plaid shirts, large underpants, flip flops, unkempt hair (bald head), dirty face and black circles under their eyes, and that “people are stupid and die quickly”. This is the inherent idea of programmers. However, as programmers in the new century, we […]
-
C language realizes the string of characters and numbers together
C language is a relatively low-level language. All data is represented by data structures such as integers, floating-point numbers, arrays and pointers. In contrast, the conversion between data types in higher-level languages is more free. After all, different languages have different design purposes. In C language, the sprintf function can be used to string integer […]
-
Algorithm interview question 3: the intersection of two arrays, add one and move zero
Here is a personal solution to the intersection of two arrays, plus one and moving zero Topic 1: intersection of two arrays Given two arrays, write a function to calculate their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2,2] Example 2: Input: nums1 = [4,9,5], nums2 = [9,4,9,8,4] Output: [4,9] explain: […]
-
[C language learning notes] space for time, a classic example of look-up table method! That’s how knowledge is learned~
How do we measure a function / code block / algorithm? This needs to be seen from multiple perspectives. In this note, we will not consider the aspects of code readability, standardization and portability. In our embedded system, we need to design our code according to the actual resources. For example, when the […]
-
JavaScript notes 0
JavaScript notes 0 Reference books: Javascript authoritative guide, JavaScript advanced programming Lexical Structure 1. Case sensitive 2. Notes Single-Line Comments //This is a line of comment /*Both are acceptable*/ Multiline comment (cannot be nested) /* ABBA ABBA */ 3. Identifier An identifier is the name of a variable, function, property, or function parameter Must start […]
-
NPM package management command
install NPM install installs all packages NPM install < package name > installs the specified package NPM install < package name > @ < version > installs the specified version package –Save installs and adds entries to package Dependencies of JSON file. –Save dev install and add entries to package Devdependencies of the JSON file. […]
-
Algorithm interview question 4: sum of two numbers, effective Sudoku, rotating image
Here we introduce the sum of two numbers, effective Sudoku and personal solutions to rotating images Topic 1: sum of two numbers Given an integer array num , and an integer target value target, please find the two , integers whose sum is the target value in the array and return their array subscripts. You […]
-
[daily algorithm / brush through leetcode] 7 Integer inversion (simple)
Click here to view more content related to algorithmic interview~ Title Description Given a 32-bit signed integer, you need to reverse the number on each of the integers. be careful: If the − environment has an integer of ^ $1}, we can only store the value of ^ $2} in the range of ^ $31 […]
-
The solution to the scientific counting method of the number appearing in laravel’s using maatnesite / Excel
When exporting excel using maatnesite / Excel package, a large string of numbers such as mobile phone number will be stored in some cells. This string of numbers will be processed into scientific counting method by Excel software, which will cause a lot of trouble in subsequent data processing. It will be very troublesome to […]
-
NFT digital collection is the future? Even these enterprises are competing for investment projects?
All walks of life have invested in digital collections, blockchain industry, making tea, coffee, cars and so on These seemingly irrelevant industries get together to do the same thing. Even now, there will still be many voices of doubt. They firmly believe that the digital collection NFT is just a scam. What is familiar is […]
-
Common methods of learning 3D visualization events from scratch
1. Bind events and add conditions2. Register multiple callbacks for the same event3. Tag tag4. Set event priority5. Register single eventThe event will not be executed by itself and needs to be triggered (that is, it can be executed only after the event is triggered). Looking at the core of any JavaScript code, you will […]
-
[tree technology headline] Monday, April 18, 2022
Conflux community dynamics1. [network status] conflux network computing power ≈ 1.5T, token transfer TPS ≈ 1156, the number of transactions yesterday was 320K, 251.51k accounts were added, and 14 contracts were added yesterday.2. [POS parameter] POS has 79M total positions, 136 nodes, 18.4% annual interest rate (theoretical calculation), and 1.51m cumulative interest.3. [official event] kucoin […]