L2-039 inventory code base (25 points)
The above picture is transferred from Sina Weibo: "there are hundreds of millions of lines of code in Alibaba code base, but there are many codes with repeated functions. For example, fast sorting alone has been rewritten hundreds of times. Please design a program that can find out all the codes wit ...
Posted by CoolAsCarlito on Fri, 18 Feb 2022 22:04:17 +0100
Wu Li school competition question A
Exploitation of ljw (thinking + map application)
Given a  and b  two arrays with the same length of n, after a series of operations, send
Posted by Perry Mason on Thu, 03 Feb 2022 00:32:28 +0100
L2-018 polynomial A divided by B (25 points)
This is still A question about A/B, but both A and B are replaced by polynomials. You need to calculate the quotient Q and remainder r of the division of two polynomials, where the order of R must be less than the order of B.
The input is divided into two lines. Each line gives ...
Posted by patmcv on Sat, 29 Jan 2022 07:35:06 +0100
🔒 Quick navigation and articles related to this article 🔒
Basic use of set and mapClick through to the articleRed black treeClick through to the article
Red black tree code
We want to encapsulate the red black tree of KV model and simulate the implementation of set and map. The code used is as follows
using nam ...
Posted by jeliot on Fri, 21 Jan 2022 16:49:36 +0100
Question 1 rotate arrayTopic informationGive you an array, rotate the elements in the array to the right K ， positions, where k ， is a non negative number. Example 1:Input: nums = [1,2,3,4,5,6,7], k = 3Output: [5,6,7,1,2,3,4]Explanation:Turn right for one step: [7,1,2,3,4,5,6]Turn right for 2 steps: [6,7,1,2,3,4,5]Rotate right for 3 steps: [5 ...
Posted by noiseusse on Mon, 17 Jan 2022 17:55:09 +0100
Basic data type
Specific details can be accessed directly Redis official website , here is only the command summary
String binary safe stringLists: a collection of string elements sorted by insertion order. They are basically linked lists.Sets: a collection of non repeating and unordered string elements.Sorted sets (ZSets), similar to Sets, b ...
Posted by Rushyo on Mon, 10 Jan 2022 23:01:27 +0100
The data structure course design at the end of this semester requires us to complete a simple small program. I chose a ticket sales system to realize some basic functions; Because the time is short and I make up lessons in the review week, there is nothing outstanding. I'll talk about my code implementation and what can be further ...
Posted by motofzr1000 on Tue, 04 Jan 2022 15:17:53 +0100
Overview and use of Map collections
Overview of Map Collections
Interface Map < K, V > K: Key type; V:Type of valueMap keys to objects of value; Cannot contain duplicate keys; Each key can be mapped to at most one valueExamples: student number and name 001 Small White 002 Small Black 003 Small Red
Objects that create a Map collect ...
Posted by lopes_andre on Wed, 29 Dec 2021 18:50:12 +0100
Sina Weibo can embed "topic" in the speech, that is, the topic text in the speech can be written between a pair of "#" to generate a topic link. Click the link to see how many people are discussing the same or similar topics with themselves. Sina Weibo will also update the list of hot topics at any time, and put t ...
Posted by Oaquasis on Mon, 27 Dec 2021 12:47:30 +0100
This figure is inaccurate for the underlying implementation method of some implementation classes, which has changed in the new version of JVM, such as HashMap, but the inheritance and implementation relationship has not changed. Solid white arrows are inheritance and blue dashed arrows are implementation.
Before ja ...
Posted by mwd2005 on Mon, 20 Dec 2021 16:51:52 +0100