[string special session] can only use library functions? The interviewer asked me to go out and turn left
โญ Introduction โญ ๏ธ Hello, everyone. I'm an executive. Today we bring you a set of special training on string processing. No matter you are studying or working, you must have a lot of contact with string. If you deal with string at ordinary times, you must use library functions directly. After all, there are many library functions for strings. ...
Added by Ferdog on Sun, 02 Jan 2022 23:25:28 +0200
SDUT 2021 summer team contest 1st (for 20)
A - Amanda Lounges
Question meaning: there are n airports and m routes (the route is the side connecting two airports). For each airport, a waiting room may or may not be required. If you enter 2, both airports connected by the route need to be established, enter 1, one airport connected by the route is established (required), and enter 0, b ...
Added by heminfotech on Sun, 02 Jan 2022 22:42:12 +0200
Bubble sorting and its optimization
Bubble sorting
The size of two adjacent elements is compared. If the current element is larger than the element on the right, it will be exchanged, otherwise it will not be exchanged; A total of N-1 rounds are arranged, and the largest element in the disordered area is selected in each round; A round needs to be compared N-1 times, and there a ...
Added by kyllerj on Sun, 02 Jan 2022 21:31:47 +0200
[Leetcode]5970. Maximum number of employees attending the meeting
[Title Description]
Force bucklehttps://leetcode-cn.com/problems/maximum-employees-to-be-invited-to-a-meeting/
A company is going to organize a meeting with n# employees on the invitation list. The company has prepared a round table for any number of employees.
Employee numbers are 0} to n - 1. Each employee has an employee who likes ๏ผ and ...
Added by dhope on Sun, 02 Jan 2022 20:42:01 +0200
Common java algorithms -- continuous supplement
On the right side of the page, there is a directory index, which can jump to the content you want to see according to the titleIf not on the right, look for the left
1. Recognize time complexity
Constant time operation
If the execution time of an operation is not transferred by the specific sample size, each execution time is a fixed time. ...
Added by Digwood on Sun, 02 Jan 2022 19:45:39 +0200
[case of algorithm thousands of questions] daily LeetCode punch in - 99. 1
๐ข preface
๐ Algorithm problem ๐
๐ฒ 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 work together to become the great God of algorithm ...
Added by ade1982 on Sun, 02 Jan 2022 19:13:58 +0200
LeetCode brush notes sorting algorithm merge sorting
Introduction to merge sort
Algorithm idea:
The core idea of merge sort is to use divide and conquer strategy to classify the sort task of the whole array into two sub problems, the first half sort and the second half sort, and then integrate the two ordered parts to complete the overall sort. That is, the array is divided into several subsequ ...
Added by cursed on Sun, 02 Jan 2022 18:51:09 +0200
Linear tables -- stacks and queues
The column is used to write the basic code definitions and algorithm problems of each data structure, which is convenient for sorting out ideas.
The algorithm questions in this article are mainly encountered during personal learning. Because some of them correspond in LeetCode, the question number is attached for reference & only for pers ...
Added by Akito on Sun, 02 Jan 2022 15:26:05 +0200
Supplementary question record of the fifth session of Niuke multi school on July 31
B Boxes
Yes
n
n
n boxes, each box contains black ball, and the probability of white ball is
1
2
\displaystyle \frac{1}{2}
...
Added by mattcass on Sun, 02 Jan 2022 14:56:37 +0200
2 / 8 linear table of data structure and algorithm
catalogue
2.1 definition and characteristics of linear table
2.2 case introduction
2.3 type definition of linear table
2.4 sequential representation and implementation of linear table
2.4 supplement: parameter transfer in C + +
Implementation of basic operation of sequence table
Write after:
2.1 definition and characteristics of linear ...
Added by shumway on Sun, 02 Jan 2022 12:16:27 +0200