Python learning variables, strings, numbers, comments
Python learning (I) variables
Since the postgraduate study mainly uses Python and C + +, and has been busy with graduation design recently, the learning and sorting of Java language is the first step, and the next step is to complete the study of Python. In fact, most of the language specifications are interlinked. They are written here fo ...
Posted by mgelinas on Wed, 09 Feb 2022 21:46:44 +0100
#Does the string on the fourth day of C language practice contain supplementary questions
Does the string on the fourth day of C language practice contain supplementary questions
Title Description: Suppose there is A string A composed of various letters and another string B. the number of letters of B in the string is relatively small. What is the fastest way to find all the letters in small string B in large string A?
For ...
Posted by filch on Wed, 09 Feb 2022 17:41:33 +0100
NOI 1805: shredder DFS depth first search / map record answer / string to int
subject
Origin link
describe
You are now in charge of designing a new paper shredder. The general shredder cuts the paper into small pieces and becomes difficult to read. The new shredder you designed has the following characteristics:
1. Before each cutting, a target number of shredders should be given first, and a number should also be in ...
Posted by CoderGoblin on Wed, 09 Feb 2022 04:20:52 +0100
Java IO stream summary
Java I/O flow
1, Classification of flow
According to different operation data units, it is divided into byte stream (8 bit) and character stream (16 bit)According to the flow direction of data, it can be divided into input flow and output flow
Abstract base classByte streamCharacter streamInput streamInputStreamReaderOutput streamOutputStrea ...
Posted by fingerprn on Tue, 08 Feb 2022 21:55:44 +0100
LeetCode C++ 1881. Maximum Value after Insertion
You are given a very large integer n, represented as a string, and an integer digit x. The digits in n and the digit x are in the inclusive range [1, 9], and n may represent a negative number.
You want to maximize n's numerical value by inserting x anywhere in the decimal representation of n. You cannot insert x to the left of the ...
Posted by curioadmin on Sat, 05 Feb 2022 11:34:33 +0100
[C + +] string of STL container
preface
C + + introduces the idea of object-oriented. Compared with C language, a class can better manage and operate some data structures.
In C language, we use character array and string The library function in H is used to maintain a string. The data is separated from the method. Because the underlying space is maintained by itself, it may ...
Posted by docmattman on Wed, 02 Feb 2022 06:51:42 +0100
Golang:JSON, int64 and interface
Let's take a look first: About JSON number
Cross reference relationship between golang data type and json type:
bool, for JSON booleans
float64, for JSON numbers
string, for JSON strings
[]interface{}, for JSON arrays
map[string]interface{}, for JSON objects
nil for JSON null
There is no int64 type in json. When deserializing, if you dire ...
Posted by Toby on Tue, 01 Feb 2022 23:43:28 +0100
In depth understanding of two ways of creating objects by String
Introduction: as we all know, there are two ways to create string objects: String name1 = "jack"; String name2 = new String("jack");
1. String name1 = “jack”; Interpretation of
"jack" is a string constant, also known as a string literal, which is located in the string constant poolname1 is a stack variable that points to ...
Posted by twigletmac on Tue, 01 Feb 2022 12:59:45 +0100
Python true · 45 selected interview questions (recommended collection, when crouching in the pit)
👉 Write in front 👈
The origin of this article is that when I searched the Python interview questions of major websites, I found that some of the interview questions in most articles are too basic (not installed by the author) 🍺 Ha), if you don't believe it, look below.
Others are even more powerful. I don't know where to copy. They of ...
Posted by tzuriel on Mon, 31 Jan 2022 08:59:41 +0100
LeetCode132. Segmented palindrome string II - string dynamic programming
Topic overview
Title Link: Ask me to do the problem
Problem solution
1, General dynamic programming
in that sentence, the dynamic programming of string class can consider the state of the response problem of the first i characters, such as this problem and definition
f
...
Posted by fred_belanger on Sun, 30 Jan 2022 23:46:04 +0100