2022-01-19 swipe questions and punch in every day
1, Question 6: classified counting (15 points)
(1) Title Description
Input a string, please output how many uppercase letters, lowercase letters and numbers the string contains. [input format] The input line contains a string. [output format] Output three lines, one integer per line, representing the number of uppercase letters, lowercase let ...
Posted by adige72 on Wed, 26 Jan 2022 00:30:35 +0100
LeetCode sword finger Offer II retrospective summary
📚 Blog home page: ⭐ This is a little Yibai blog duck~ ⭐ ️👉 Welcome to pay attention ❤️ give the thumbs-up 👍 Collection ⭐ Comments 📝😜 Xiaoyibai is preparing for his internship. He often updates the interview questions and LeetCode solutions. Friends with similar interests are welcome to communicate with each other~ 💙 If you have any ...
Posted by Loryman on Wed, 26 Jan 2022 00:21:48 +0100
Data structure - circular queue
4.2. Implementation of circular queue function
Cyclic queue characteristics
In order to make full use of vector space and overcome the phenomenon of "false overflow", the method is to imagine vector space as a ring with head and tail connected, and call this vector cyclic vector. The queue stored in it is called Circular Queue. C ...
Posted by imamferianto on Tue, 25 Jan 2022 22:30:49 +0100
Force buckle - Sword finger Offer II 111 Calculate division (Figure + BFS)
Given a variable pair array equations and a real value array values as known conditions, where equations[i] = [Ai, Bi] and values[i] jointly represent the equation Ai / Bi = values[i]. Each Ai or Bi is a string representing a single variable.
There are also some problems represented by array queries, where queries[j] = [Cj, Dj] represents the ...
Posted by Joe689 on Tue, 25 Jan 2022 21:57:16 +0100
luogu_1690 (greedy copy)
This is a very good shortest path + deep search exercise
Question surface:
Copy heard from Lu Niu that there are many treasures buried in a god field called yz, so copy came to this God land divided into regions. Lu Niu told me that there are treasures here, which are placed in the PI (1 < = Pi < = n) area. Copy also knows the distance ...
Posted by mark_18 on Tue, 25 Jan 2022 21:53:19 +0100
Implement high-performance HashMap in specific scenarios
Efficiency problems in some scenarios of C + + standard library
In the following scenario, the C + + standard library is unordered_map,map,multiset,unordered_multiset is not efficient.
Group repetition count
There are 100 million records with two columns: group_id, attribute, and the record has been recorded according to group_id is in order ...
Posted by vumpler on Tue, 25 Jan 2022 17:35:11 +0100
Linear discrete storage linked list in data structure
In the previous section, we have learned about continuous storage in linear storage. We also call this storage structure sequential table or array. We also know that linear continuous storage has the following advantages and disadvantages:
Advantages: it can quickly add and access elementsDisadvantages: inserting or deleting elements will mo ...
Posted by JustinMs66 on Tue, 25 Jan 2022 15:39:16 +0100
[Capriccio 10 Fan Wai] prefix and array
Prefix and array
Learn from Small and beautiful algorithm skills: prefix and array
303. Region and retrieval - array immutable 304. Two dimensional area and retrieval - the matrix is immutable 560. Subarray with sum K 1314. Matrix areas and
The key to distinguish between prefix and sliding window is whether the element has a negative number ...
Posted by Malkavbug on Tue, 25 Jan 2022 14:54:21 +0100
[a daily question with a little insight] simulation question - three in one (number of matches, diagonal experience, life game)
⭐ New pit in winter vacation -- daily question notes of code Fox
1688. Number of matches in the competition
Give you an integer n to represent the number of teams in the game. The competition follows a unique competition system:
If the current number of teams is even, each team will be paired with another team. A total of n / 2 games were ...
Posted by mindspin311 on Tue, 25 Jan 2022 13:42:41 +0100
R language uses self-organizing mapping neural network (SOM) to segment customers
Original link: http://tecdat.cn/?p=18726 Original source: Tuo end data tribal official account_ Self organization_ Mapped neural network (SOM) is an unsupervised data visualization technology, which can be used to visualize high-dimensional data sets in low-dimensional (usually 2-dimensional) representation. In this article, we studied how to u ...
Posted by nystateofmind27 on Tue, 25 Jan 2022 12:52:28 +0100