Vuex learning record~

1. Concept Vuex is designed for Vue JS application development state management mode. It uses centralized storage to manage the status (data) of all components of the application. Vuex is also integrated into Vue's official debugging tool devtools. In short, Vuex is a Vue plug-in that implements centralized state (data) management in Vue. ...

Posted by uproa on Mon, 28 Feb 2022 07:57:50 +0100

Yesterday's provisional solution

J1001 gcd Problem solution KaTeX parse error: Expected 'EOF', got '&' at position 253: ...d(k, t) = 1] &̲ \text{if }t = ... $\ phi (n) = n * \ prod (1 - \ frac {1} {p_i}) = n * \ prod {\ frac {p_i - 1} {p_i} & [\ text {if} n = \ prod {p_i ^ {a_i}}, p_i \ text {is the quality factor}] \ $ Time complexity: ...

Posted by benjam on Sun, 27 Feb 2022 05:50:36 +0100

Leetcode Brush Title Note - Backpack Problem in Dynamic Planning: 01 Backpack

Catalogue of Series Articles I. Array Type Solution Method I: Dichotomy 2. Array Type Solution Method 2: Double Pointer Method 3. Array Type Solution Method 3: Sliding Window IV. Array Type Solution Method 4: Simulation V. Basic Operation and Classical Title of Chain List in Chain Table Text 6. Classic Title of Hash Table 7. Classic Title ...

Posted by vbzoom.com on Sat, 26 Feb 2022 18:27:33 +0100

2022 Niuke winter vacation algorithm basic training camp 4

A.R thinking Suppose there is a string containing k k k r strings [L,R], the left and right first P is L,R, then the contribution of this paragraph is ( l − L ...

Posted by Eddie Fisher on Sat, 26 Feb 2022 13:00:50 +0100

Simple digit dp and understanding of leading 0

Essence of digital dp: A fast enumeration method, which satisfies the nature of dp, and then carries out memory search. Example: Niuke - Digital children Title Description: Jiufeng has been addicted to digital dp recently. On this day, he created another digital dp problem: Give an interval [l,r][l,r][l,r], find out how many numbers in this ...

Posted by nita on Sat, 26 Feb 2022 05:02:51 +0100

P2015 binary apple tree (tree DP)

Title Link: Binary apple tree - Luogu Analysis: This is a tree DP topic. It's not too difficult, but it's easy to grasp the details. Let's explain this topic directly below: Let f[i][j] represent the maximum number of apples that can be retained by retaining j branches in the subtree with I as the root. After knowing the state representatio ...

Posted by lobski on Sat, 26 Feb 2022 04:14:55 +0100

[ACNOI2022] the only thing to do

subject Topic background Write for two consecutive days LCT + ddp \texttt{LCT}+\texttt{ddp} LCT+ddp, I still feel it when I look at it today d d ...

Posted by oocuz on Fri, 25 Feb 2022 12:58:07 +0100

LeetCode1994. Number of good subsets - shape pressure DP

Number of good subsets   the data range of this question is relatively small, which determines that state compression dp can be used.    to split the product of all numbers in the subset into different prime factors, the subset must hold different prime factors, and each element subset cannot hold duplicate prime factors. &emsp ...

Posted by cdennste on Tue, 22 Feb 2022 09:55:32 +0100

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

2022-02-22 swipe questions and punch in every day All in one -- dynamic programming 1268: [example 9.12] complete knapsack problem [Title Description] There are n kinds of articles, each of which has a weight and a value. However, the number of each item is unlimited. At the same time, there is a backpack with a maximum carrying capacity of ...

Posted by remmy82 on Tue, 22 Feb 2022 08:08:44 +0100

Knapsack model of dynamic programming and its extended application

preface For the original knapsack problem and its optimization, please refer to this blog knapsack problem Initialization of knapsack problem There are three general problems Corresponding initialization method For volume up to j, f [ 0 ...

Posted by BobLennon on Mon, 21 Feb 2022 07:36:45 +0100