Search topics - daily practice

P1219 eight queens Checker Challenge Eight queens Checker Challenge Title Description For a checkers board of 6 * 6 as follows, six pieces are placed on the board so that there is and only one piece in each row and column, and there is at most one piece on each diagonal (including all parallel lines of the two main diagonals). T ...

Added by MasksMaster on Tue, 04 Jan 2022 19:16:29 +0200

2022-01-02 swipe questions and punch in every day

2022-01-02 swipe questions and punch in every day Flying book - daily question 42. Rainwater connection Given n non negative integers to represent the height diagram of each column with width 1, calculate how much rain the columns arranged according to this can receive after rain. Example 1: Input: height = [0,1,0,2,1,0,1,3,2,1,2,1] Outp ...

Added by unsider on Tue, 04 Jan 2022 17:09:29 +0200

Machine learning Chapter 4 linear regression algorithm advanced 4.1 (learning notes of big talk Python machine learning)

Chapter 4 advanced linear regression algorithm    the solution of multivariable linear regression algorithm is far away from univariate linear regression algorithm, and overcomes the limitation of univariate linear regression algorithm with only one characteristic variable in practical application, so it is widely used.    ...

Added by genix2011 on Tue, 04 Jan 2022 17:00:26 +0200

Explain the diff algorithm of vue in detail

Explain the diff algorithm of vue in detail 1. How does vue update nodes when data changes? You should know that rendering a real dom costs a lot. For example, sometimes when we modify some data, if we directly render it to the real dom, it will cause the redrawing and rearrangement of the whole dom tree. Is it possible that we only update th ...

Added by tserbis on Tue, 04 Jan 2022 16:57:10 +0200

Numpy easy start

summary Numpy is a basic package for high-performance scientific computing and data analysis. It provides the function of matrix operation and is widely used in the field of deep learning and data analysis.. use Create array vector = np.asarray([1,2,3,4]); Create zero array a = np.zeros(10) # Create vector a1 = np.zeros(shape=(5,3)) # C ...

Added by Kia on Tue, 04 Jan 2022 13:15:42 +0200

C++|C++ Primer Chapter 10 generic algorithm

Sequential containers define only a few operations: in most cases, we can add and delete elements, access the first and last elements, determine whether the container is empty, and obtain an iterator pointing to the position after the first or last element. We can imagine that users may also want to do many other useful operations: find a spec ...

Added by XxDeadmanxX on Tue, 04 Jan 2022 12:13:55 +0200

Codeup1000000634 question B: P2 count words

Title Description: Count the number of words (stat.cpp/c/pas) General text editors have the function of finding words. This function can quickly locate the position of specific words in the article, and some can count the times of specific words in the article. Now, please program to realize this function. The specific requirements are: given ...

Added by Lars Berg on Tue, 04 Jan 2022 11:56:05 +0200

[small Y learning algorithm] ⚡ Daily LeetCode punch in ⚡ ️——3. Longest substring without duplicate characters

📢 preface 🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌻🌲 Punching out an algorithm problem every day is not only a learning process, but also a sharing process 😜🌲 Tip: the problem-solving programming languages in this column are C# and Java🌲 To maintain a state of learning every day, let's wo ...

Added by thines on Tue, 04 Jan 2022 11:55:47 +0200

Search algorithm (first blog in 2022)

Sequential search algorithm Sequential search, also known as linear search, is the most basic search technology. Its search process is: start from the first (or last) record in the table, compare the keyword of the record with the given value one by one. If the keyword of a record is equal to the given value, the search is successful and t ...

Added by PhpMachine on Tue, 04 Jan 2022 08:24:57 +0200

String A - > string B example: shortest editing distance, optimal inclusion (linear DP)

AcWing 902. Minimum edit distance Given the two strings A and B, now you want to change A into B through several operations. The available operations are: Delete – deletes A character from string A. Insert – inserts A character somewhere in string A. Replace – replaces one character in string A with another. Now please find ...

Added by planetsim on Tue, 04 Jan 2022 07:24:26 +0200