Tag:Representation

  • How do binary numbers and hexadecimal numbers convert to each other

    Time:2021-9-3

    First, let’s look at the representation of sixteen digits, as shown in Figure 1. Then master the correspondence table between binary numbers and hexadecimal numbers, as shown in Figure 2. Only when we firmly grasp the corresponding relationship of, can we get twice the result with half the effort in the process of transformation. The […]

  • String encoding conversion

    Time:2021-7-6

    String encoding conversion String encoding conversion involves the conversion between wide byte representation and UTF-8 representation, between wide byte representation and utf-16 representation, between UTF-8 representation and utf-16 representation, between utf-16 representation and ASCII representation, and between wide byte representation and ASCII representation. Related documents base/strings/utf\_ string\_ Conversions. H / / definition of string encoding […]

  • Blue Bridge Cup – sum of squares problem

    Time:2021-1-13

    For more articles, please pay attention to the official account of “BLOG of the sea”. Question: The sum of Squares Theorem is also called Lagrange theoremEvery positive integer can be expressed as the sum of squares of up to four positive integers.If 0 is included, it can be expressed as the sum of the squares […]

  • The content about JSON is used in the work

    Time:2020-7-28

    The relationship between JSON and JS objects Many people don’t understand the relationship between JSON and JS objects, even who is who. In fact, it can be understood as follows: JSON is a string representation of JS objects. It uses text to represent the information of a JS object,It’s essentially a string. JSON to object […]

  • JS common simple algorithm sorting

    Time:2020-7-14

    We often encounter sorting algorithm problems in the interview, I sorted out bubble sort, selection sort, insert sort and other common simple sorting methods. I hope this article would be helpful to the front-end students who understand sorting. Encapsulate sorted array In order to demonstrate the implementation of the algorithm, I first encapsulate a constructor. […]