LeetCode selected TOP interview questions 138 Copy linked list with random pointer
Title Description
Given a linked list of length n, each node contains an additional random pointer random, which can point to any node or empty node in the linked list.Construct a deep copy of this linked list. The deep copy should consist of exactly n new nodes, in which the value of each new node is set to the value of its corresponding orig ...
Posted by rhodesa on Thu, 03 Mar 2022 15:06:28 +0100
Summary of leetcode's simulated problem brushing 3
Summary of leetcode's simulated problem brushing 3
1-transpose matrix Title Link: Title Link stamp here!!!
Idea: just put the value of the corresponding row in the corresponding column. Do an easy question first to comfort yourself.
class Solution {
public int[][] transpose(int[][] matrix) {
int m = matrix.length ;
int n ...
Posted by Kathy on Fri, 25 Feb 2022 15:05:33 +0100
acwing game 24
acwing game 24
This week's competition has three topics: simulation, enumeration and simulation
acwing 4070. XOR
Link: 4070. XOR - AcWing question bank
Title Description
Problem solving ideas
Very simple simulation, record the maximum value and the last input when entering, and don't even open the array
code
#include<iostream>
...
Posted by gonsman on Thu, 10 Feb 2022 16:50:50 +0100
Analysis of High Precision Large Number Addition, Subtraction, Multiplication and Division Algorithms
High Precision Addition, Subtraction, Multiplication and Division Algorithms
What is high precision?
High Accuracy Algorithm s are mathematical computational methods for processing large numbers. In general scientific calculations, hundreds or more decimal places are often counted, of course, hundreds of billions of large numbers. Generall ...
Posted by Teck on Mon, 07 Feb 2022 18:30:16 +0100