• ## Correlation of large numbers (addition, division and comparison of large numbers)

Time：2022-7-5

Add large numbers (such as 911111111111111111111111) //#include<iostream> //#include<algorithm> //#include<string> //#include<string.h> //#include<cstdio> //#include<queue> //#include<stack> //#include<set> //#include<map> //#include<vector> //using namespace std; //struct node{ // int number; // int len; //}a,b,ans;// A represents the first large number, B represents the second large number, and ans represents the sum of the required large number //char s;// Define a character […]

• ## JS add two numbers

Time：2022-5-27

Overview of adding two numbers Add two decimal numbersBinary additionAdding two numbers in linked list Problem solving ideas If you write too many numbers, add them（String addition）, you might write that var addBinary = function(a, b) { let maxLen = Math.max(a.length,b.length) a = a.padStart(maxLen, ‘0’) b = b.padStart(maxLen, ‘0’) let flag = 0 let res […]

• ## Understanding Schnorr Signature Algorithm

Time：2022-4-12

In the previous chapter, we talked about that the aggregate signature used in wisdomchain is the signature aggregation of their respective keys generated by all parties using Schnorr Signature. Today, let’s learn about the past and present life of Schnorr Signature Algorithm. Schnorr Signature Algorithm was first proposed by German Cryptologist Claus Schnorr in 2008. […]

• ## 100 thinking models – 40 Law of large numbers

Time：2022-2-8

In the large number of repeated occurrences of random events, it often presents an almost inevitable law, which is the law of large numbers. Generally speaking, this theorem is that under the condition of constant test, the frequency of random events is similar to its probability. There is a certain necessity in chance. From the […]

• ## Counting

Time：2021-10-14

preface During the summer vacation, I saw an interview question from Tencent while watching C + + face to face. The main idea of the problem is to find the value of (2 ^ 1e10)% 10000, which limits the time complexity. There are no large numbers in Java and python in C + +. I […]

• ## Basic data structure and algorithm primality test / Fermat test

Time：2021-10-8

origin Recently read < < my first algorithm book > > ([Japan] Ishida Baohui; Miyazaki Xiuyi)This series of notes is intended to use golang exercises Primality test Prime test is a test to judge whether a natural number is prime. Prime number is a natural number that can only be divided by 1 and itself […]

• ## On the theorem of large numbers

Time：2021-7-20

We talked about the central limit theorem. In this section, we will talk about the theorem of large numbers. The theorem of large numbers and the central limit theorem are relatively close concepts, and these two theorems often appear together. Let’s take a concrete look at the content of the theorem of large numbers The […]

• ## 43. String multiplication

Time：2020-4-15

Given two nonnegative integers, num1 and num2, in the form of string, the product of num1 and num2 is returned, and their product is also expressed in the form of string. Example 1: Input: num1 = “2”, num2 = “3”Output: “6”Example 2: Input: num1 = “123”, num2 = “456”Output: “56088”Explain: Num1 and num2 are less […]