2023 Huawei OD Unified Examination (Paper B) question bank list (categorized by algorithm), if you are pressed for time, click here to scan

Insert image description here

Column introduction

This column is included in "Huawei OD Computer Test (JAVA) Real Questions (Paper A + Paper B)" .
The more you brush, the greater the probability of winning . Each question has detailed answer ideas, detailed code comments, and sample tests. After subscribing, you can read all the articles in the column, and you can join the Huawei OD question brushing group ( Just send a private message), find new questions, update at any time, CSDN online Q&A all day long.

Before May, if you take the Huawei OD test, you should receive 2022Q4 or 2023Q1, both of which are A papers.

After May 10, many friends received Volume B, so congratulations on reading this article, hurry up and finish the questions. The new question bank for Paper B is being updated .

There are three questions in Huawei's computer test. The first and second questions are easy questions and are worth 100 points. The third question is difficult questions and are worth 200 points. The total score is 400 points and the test time is 150 minutes .

Huawei's exam platform is Niuke.com. You can go to Niuke.com in advance to find Huawei's computer-based exam thresholds and practice. The main purpose is to familiarize yourself with the platform operation and practice how to handle input and output! Later I also shared a lot of Huawei OD test questions on Niuke.com.

The score of Huawei's computer-based exam is determined based on the proportion of test cases that pass. For example, the first question has a perfect score of 100. If you submit the code and it shows that the test case pass rate is 80%, then you can only get 80 points for this question, so In fact, you already know the results when you take the exam!

150 points is Huawei’s unified passing score. However, the requirements of each department are different. Usually, the score requirements of non-target colleges are higher. 300+ is a high score, and 260+ is a safer score. In short, the higher the score, the better, which will be beneficial to subsequent grading, comprehensive interview, and HR approval.

Generally speaking, the HR contact you will ask you when you can take the written test. If you think you are ready, they will send you a computer-based test link. The computer-based test link is valid for 7 days. You can find a time to take it within these seven days. Just take the exam! Huawei's OD computer-based test will affect your salary. The prices for scores above 300 and below 300 are different, so I suggest you prepare well and strive for more than 300 points. If you can get high scores, get high scores.

If you fail the computer-based exam, there will be a half-year freeze period.

Why do I say that Huawei's computer-based exam is not difficult? The reason is very simple, because this exam has a question bank ! When you enter the computer-based test page, it will show that the test is being composed. In fact, you just go to the question bank to find two simple questions and one complex question. Since this is an exam with a question bank, the most important thing for us is of course to obtain the most comprehensive question bank, right? Don’t worry, I have sorted it out for you and will continue to update it in the future!

I think the first thing before preparing for the computer-based exam is to choose a suitable programming language. Huawei’s computer-based exam has no restrictions on programming languages. You can choose your favorite programming language. Considering that most Huawei OD applicants are students with weak technical foundation or even non-majors, I still strongly recommend that you use Java to cope with the computer-based exam and the subsequent hand-written code. Of course, if you can JS, Python, C++ It can also be used for exams.

If you start answering the questions seriously based on the question bank I provided, you are sure to encounter the original question without joking. Under normal circumstances, it is not difficult to encounter two original questions . Many students directly hit all three questions! Because the Huawei question bank will update some new questions every three months, you should try not to do it when the new questions are just updated. It is recommended to take the test one month after the new questions are released. I feel that it is normal to hit two questions!

Below, Nezha categorizes the real questions of the Huawei OD machine test so that everyone can understand them at a glance.

Follow-up questions about subscribing to Huawei OD machine test questions

  1. After subscribing to the column, you can read all the articles in the column, and new topics will continue to be updated in the future ;
  2. Each question includes the title, problem-solving ideas, detailed code explanation (key lines include detailed comments), and code running screenshots (to ensure that the code is 100% correct and the pass rate is 100%);
  3. Friends who have already subscribed can enjoy 20% off by recommending new people to subscribe, just send me a private message;

During the exam, it is best not to use the source code in the CSDN column to answer questions, because Huawei OD computer exams are checked for plagiarism, so you must pay attention to this! It is best to change the variable names, add comments, change the logical order, and master the answer ideas. I have added detailed answer ideas to the following questions . There are also detailed comments in the code . When the code runs It is 100% correct, and each question has a sample test, which is the only one on the entire network .

If you have just taken the computer-based test, you are welcome to submit your real questions to Nezha and receive the questions directly by transferring the red envelope.

Many friends who have passed the exam have summed up their valuable experience. They practice more questions, easy questions first and then difficult questions. They accumulate confidence in the early stage and break through one by one in the later stage, which will achieve the best results.

There are too many algorithm questions in the Huawei OD machine test, and the knowledge points are complicated. How can I answer the questions more efficiently?

I think we can follow the "algorithms and data structures" and list the "algorithms and data structures" involved in the Huawei OD computer test. If we answer 10 questions on one algorithm, wouldn't I be invincible?

First of all, understand the knowledge points of algorithms and data structures, and have an overall view in the following questions.

Below is the knowledge structure of algorithms and data structures that I spent a day sorting out. You can take a look.

Insert image description here
The following is a carefully selected Huawei OD machine test question sheet for everyone, and it is divided into categories according to the types of knowledge points. You can conduct targeted questions based on each knowledge point.

1. Logical analysis

Huawei OD Computer Test - Find the minimum sum of all integers in a string - Logical Analysis (Java 2023 Paper B 100 points)

Huawei OD computer test-Sheep, wolf, and farmer crossing the river-Logical analysis (Java 2022 Q4 100 points)

Huawei OD Computer Test-ABR Vehicle-Road Collaboration Scenario- (Java 2023 Volume B 100 points)

Huawei OD Computer Test - The Longest Completely Alternating Continuous Square Wave Signal - Logic Analysis (Java 2023 Volume B 200 points)

Huawei OD computer test - Calculating the number of concerts watched - Logical analysis (Java 2023 B paper 200 points)

2. Data structure

1. Linear table

① Array

Huawei OD machine test real question Java implementation [Convert IPv4 address to integer] [2023 B paper 100 points]

Huawei OD computer test real question Java implementation [Array Binary Tree] [2023 B Paper 200 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [Epidemic Spread Time Calculation] [2023 B Paper 200 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [array deduplication and sorting] [2023 B paper 100 points]

single pointer

Java implementation of Huawei OD machine test real questions [Alibaba Finds the Golden Treasure Chest (I)] [2023 B Paper 100 points], with detailed problem-solving ideas

②Double pointer

Huawei OD Computer Test - Longest Continuous Subsequence - Double Pointer (Java 2023 Volume B 100 points)

Huawei OD Computer Test - Attendance Information - Dual Pointers (Java 2023 Paper B 100 points)

Huawei OD Computer Test - Find the length of the longest substring that meets the conditions - double pointer (Java 2023 Volume B 100 points)

Huawei OD Computer Test - VLAN Resource Pool - Backtracking, Double Pointers (Java 2023 Volume B 100 points)

Huawei OD Computer Test Paper B Java Implementation [Calculating the Minimum Number of Groups for Gift Distribution], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [non-strictly increasing continuous number sequence] [2022Q4 100 points]

Huawei OD machine test real question Java implementation [Maximum area of ​​solar panel] [2022Q4 100 points], with detailed problem solving ideas

2. map and list

Java implementation of Huawei OD machine test real questions [Simple memory pool] [2023 Paper B 200 points selected candidates' questions]

Huawei OD machine test real question Java implementation [street lighting problem] [2022Q4 100 points], thank flychen for discovering this problem and providing a better algorithm

Huawei OD computer test - the sum of the maximum N number and the minimum N number - data structure Set and TreeSet (Java 2023 Volume B 100 points)

Huawei OD computer test - full and occupied character sets - data structure map (Java 2022 Q4 100 points)

Huawei OD Computer Test - Alarm Suppression - Data Structure Map (Java 2023 Volume B 100 points)

Huawei OD machine test real question Java implementation [urban agglomeration] [2023 B paper 200 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [message loop] [2023 B paper 100 points], commonly known as "reciprocity"

Huawei OD machine test real question Java implementation [abnormal punch-in record] [2023Q1 100 points]

3. Priority queue

Huawei OD machine test real question Java implementation [unified minimum number of limited cargo] [2023Q1 200 points]

4. Sliding window

Huawei OD machine test real question Java implementation [maximum cost] [2023Q1 100 points]

Huawei OD machine test real question Java implementation [Calculate the closest number] [2023 B paper 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Tall and short people queue] [2023Q2 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation of [Associated Substring] [2023Q1 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Worst Product Award] [2023Q1 200 points]

5. Binary tree

Huawei OD Computer Test - Minimum Number of Line Segments Coverage - Binary Tree (Java 2023 Paper B 100-point exam winning question)

Huawei OD machine test real question Java implementation [Raindrop effect of two-dimensional umbrella] [2023 B paper 100 points], with detailed problem solving ideas

6. Combined search

Huawei OD machine test real question Java implementation [Happy Xiaoxiaole] [2023 B Paper 100 points]

7. Stack

Huawei OD machine test real question Java implementation [bonus points] [2022Q4 100 points]

Huawei OD Computer Test-Desolate Island Survival-Stack (Java 2023 B Volume 100 points)

Huawei OD machine test real question Java implementation [Alibaba’s Search for the Golden Treasure Chest (IV)] [2023 B Paper 100 points], with detailed problem-solving ideas

3. Algorithm

1. Basic algorithm

① Greedy algorithm

Huawei OD machine test real question Java implementation [digit sequence ratio] [2023 B volume 100 points], Tian Ji horse racing, will always be bigger than you, do you accept it?

Huawei OD machine test real question Java implementation [Rent a car and ride the greenway] [2023Q1 100 points]

Huawei OD machine test real question Java implementation [minimum board length] [2022Q4 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Greedy Businessman] [2023Q1 100 points]

② Binary search

Huawei OD machine test Java implements [batch processing tasks] [2023 B volume 200 points], binary search

Huawei OD computer test-optimal tree planting distance-binary search (Java 2023 B volume 100 points)

Java implementation of Huawei OD machine test real questions [canteen serving] [2023 B paper candidates selected questions], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [Birthday gift] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [Service center location selection] [2023Q1 100 points]

Huawei OD machine test real question Java implementation [Little Bu who doesn’t like to fertilize] [2023Q1 100 points]

Huawei OD computer test - the most economical data backup method - binary search (Java 2023 B volume 100 points)

③ Divide and conquer recursion

Huawei OD machine test real question Java implementation [Comment conversion output] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [Monkey climbing] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [Hopscotch II] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [distribute candy] [2022Q2 200 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Integration test of microservices] [2023Q1 100 points]

④Search algorithm

Backtracking method (width optimization algorithm)

Huawei OD Computer Test - BOSS's Income - Backtracking (Java 2023 Volume B 100 points)

Huawei OD Computer Test - Execution Time - Backtrace (Java 2023 Volume B 100 points)

Huawei OD Computer Test - Finding the Optimum Time Period for Interface Success Rate - Backtracking (Java 2023 Volume B 100 points)

Huawei OD Computer Test-Cloud SMS Platform Promotion-Retrospective (Java 2023 B Volume 200 points)

Huawei OD machine test real question Java implementation [Number of tuples that meet the requirements] [2023 Paper B 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [up to a few right triangles] [2023Q1 100 points]

Huawei OD machine test real question Java implementation [red and black picture] [2023Q1 200 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [hardware product sales plan] [2023Q1 200 points]

⑤ Sorting algorithm

Huawei OD machine test real question Java implementation [Champion, second and third place in the competition] [2023 B paper 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Tug of War Competition] [2023 B Paper 100 points], with detailed problem-solving ideas

2. String

① KMP

Huawei OD machine test real question Java implementation [minimum loop subarray] [2023 B paper 100 points], with detailed problem solving ideas

② String processing

Huawei OD Computer Test - Secret Key Formatting - String Processing (Java 2023 Volume B 100 points)

Huawei OD Computer Test - Continuous Letter Length - String (Java 2023 Volume B 100 points)

Huawei OD computer test - String filtering and sorting - Array (Java 2022 Q4 100 points)

Huawei OD machine test - flipping article fragments by index range - string (Java 2022 Q4 100 points)

Huawei OD computer test paper B paper Java implementation [message reordering], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [relative open syllable] [2022Q4 100 points], with detailed problem-solving ideas

Huawei OD Computer Test-Sensitive Field Encryption (Java 2023 Volume B 100 points)

Huawei OD Computer Test-String Segmentation (Java 2023 Volume B 100 points)

Huawei OD Computer Test - Flip the article content according to the word subscript interval - (Java 2023 Volume B 100 points)

Huawei OD machine test real question Java implementation [Finding the same substring] [2023 B paper 100 points], with detailed problem-solving ideas

Huawei OD Computer Test - Determining String Subsequences - Reverse Order Traversal (Java 2023 Volume B 100 points)

③ Regular expression

Huawei OD Computer Test - The longest vowel substring with a specified defective degree - Regular Expression (Java 2023 Volume B 200 points)

Huawei OD Computer Test-Number String Combination Reverse Order-Regular Expression (Java 2023 Volume B 100 points)

3. Depth-first search

Huawei OD computer test - lattice jumping game - depth first search dfs algorithm (Java 2023 B volume 200 points)

Huawei OD machine test - Happy weekend - Depth first search dfs algorithm (Java 2023 B volume 200 points)

Huawei OD Computer Test - Filtering Combination Strings - Depth First Search DFS Algorithm (Java 2023 Volume B 100 points)

Huawei OD machine test real question Java implementation [File directory size] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD computer test-finding enemies on the battlefield-depth first search dfs algorithm (Java 2023 B volume 100 points)

Huawei OD machine test real question Java implementation [Livable Planet Transformation Plan] [2023 Q2 200 points], with detailed problem solving ideas

Huawei OD computer test real questions Java implements [Guess Password] [Niuke Practice Questions], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Finding single-entry free area] [2022 Q4 100 points], with detailed problem-solving ideas

Huawei OD computer test - Minimum sum of equal and subarrays - Depth first search (Java 2022 Q4 100 points)

① Breadth-first search

Huawei OD machine test real question Java implementation [Number of elements other than 1 in the matrix] [2023 B paper 200 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [calculating network signals] [2023Q2 200 points]

② Shortest route

Dijkstra Dijkstra

Huawei OD machine test real question Java implementation [minimum transmission delay] [2023 B paper 100 points], with detailed problem solving ideas

③ Topological sorting

Huawei OD machine test real question Java implementation [quick rental and website building] [2023Q1 200 points], with detailed problem-solving ideas

4. Dynamic programming

① Basic dp

Huawei OD Computer Test - Copying files through floppy disks - Dynamic Programming (Java 2023 Volume B 200 points)

Huawei OD machine test real question Java implementation [MELON's problem] [2023 B paper 100 points], using dynamic programming algorithm, with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Jumping grid 2] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [String Encryption] [2023Q1 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [Number Sequence Description] [2023 B Paper 100 points], with detailed problem-solving ideas

Huawei OD machine test real question Java implementation [card player] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [character matching] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation [number excluding 101] [2023Q2 200 points]

Huawei OD machine test real question Java implementation [Finding duplicate codes] [2023Q1 100 points]

Huawei OD machine test real question Java implementation [increment string] [2023Q1 200 points], with detailed problem-solving ideas

② Backpack dp

Huawei OD machine test real question JavaScript implementation [Maximum number of text messages obtained] [2023Q1 100 points], with detailed problem-solving ideas

5. Mathematics

Huawei OD Computer Test - Error OR Circuit - Binary - (Java 2023 Volume B 100 points)

Huawei OD Computer Test-Complete Number Calculation (Java 2023 Paper B 100 points)

Java implementation of Huawei OD machine test real questions [Data classification] [2023 B paper 100 points], with detailed problem solving ideas

Huawei OD machine test real question Java implementation of [Classic Screen Saver] [2023 B Volume 100 points], with detailed problem-solving ideas

Huawei OD computer test-finding mode and median (Java 2023 B paper 100 points)

Guess you like

Origin blog.csdn.net/guorui_java/article/details/132683473