CF1286E-Fedya the Potter Strikes Back[KMP,RMQ]

Topics Title link: https://www.luogu.com.cn/problem/CF1286E Topic Essentials Define a string s s The weight of s is for each s L ∼ ...

Posted by stukov on Thu, 11 Aug 2022 21:26:50 +0300

day8 - sets and strings

aggregate A collection is a container data type; Take {} as the flag of the container, and multiple elements are separated by commas: {element 1, element 2...} the set is variable and unordered Element: immutable and unique Empty set: x = {} is a dictionary ​ y = set() is an empty set The collection has its own de duplication function set3 ...

Posted by dave_2008 on Wed, 25 May 2022 21:05:39 +0300

OMG, 12 exquisite Java string operation tips, learn it

String can be said to be the most representative class in Java. It seems that there is no one. Ha, it's like Li Jiaqi in the live broadcasting industry, Li birthday in the talk show, and the status of first-class big brother. I have to admit that I have been brushing too much at the recent roast conference. My mind is full of those passages. I ...

Posted by KirstyScott on Fri, 20 May 2022 08:38:27 +0300

Arthas realizes a CPU troubleshooting and code hot update

Author he Bo [the official community of Arthas is holding an essay solicitation activity. You will get a prize if you participate~ Click Submit] 1. Preface background Online code often takes up too much CPU. According to past experience, I will use the top instruction and further use jstack to check the specific information for problem troubles ...

Posted by tech0925 on Thu, 19 May 2022 22:04:54 +0300

C++ binary search tree encoding and decoding

Serialize and deserialize binary search trees Title [leetcode449] Serialization is the process of converting a data structure or object into a series of bits so that it can be stored in a file or memory buffer, or transmitted over a network connection link for later reconstruction in the same or another computer environment. Design an algorithm ...

Posted by idire on Wed, 18 May 2022 13:53:33 +0300

Problem Solving CF17E [Palisection]

Card space PAM, there is no PAM in 2010, so they are all horse-drawn carts As we all know, PAM has a very good time complexity, but the space complexity lj is not good But this question card space, so you have to use the adjacency list PAM Think first The title requires intersecting pairs of palindromic substrings, which is hard to do So we fin ...

Posted by karenn1 on Mon, 16 May 2022 18:22:47 +0300

Parser combiner for C + + meta programming

Absrtact: with the help of the constexpr capability of C + +, it is easy to construct parser combiner, which releases great potential for user-defined literal. ##Introduction Not long ago, I saw a Talk on CppCon: [constexpr all the things]( https://www.youtube.com/watch?v=PJwd4JLYJJY ), I was shocked by this speech technology. I parsed json str ...

Posted by Canadian on Mon, 16 May 2022 17:16:38 +0300

Using Java to realize the effect of code character drawing

Algorithm and idea As we all know, when our computer processes graphics, it actually divides the graphics into N pixels. For each pixel, it has its own pixel value. Countless pixels with their own specific pixel values are merged into the pictures we see. In Java, RGB value, pixel value and gray scale have the conversion relationship under cert ...

Posted by azunoman on Sat, 14 May 2022 19:40:41 +0300

String characteristics and string constant pool (use of intern() and detailed explanation of string splicing)

12. Characteristics of string 12.1 basic characteristics of string String is declared as final and cannot be inherited String s1 = "ILOVEYOU";// Definition of literal quantity String s2 = new String("ILOVEYOU"); String implements the serializable interface: it means that the string supports serialization (data transmiss ...

Posted by andremta on Mon, 09 May 2022 10:11:02 +0300

[Backtracking interview questions] facebook interview questions - letter combinations of phone numbers (two solutions)

content Topic description Backtracking solution Solve using queues Topic description Title address: https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/ Given a string containing only the numbers 2-9, return all letter combinations it can represent. The mapping of numbers to letters is given as follows (same as phone k ...

Posted by johnpaine on Sat, 07 May 2022 10:12:49 +0300