当前位置:网站首页>Total score of [Huawei machine test] (how to deal with the wrong answer? Go back once to represent one wrong answer)
Total score of [Huawei machine test] (how to deal with the wrong answer? Go back once to represent one wrong answer)
2022-04-23 05:38:00 【CashAp】
Employees take exams , Judgment questions X10( Every 2 branch ), Single topic selection X10( Every 4 branch ), Multiple choice X5( Eight points for each ).
You can only answer in sequence , Correct score , Wrong answer, no score . Three wrong answers , Suspend the exam .
Enter the test result score ,
Output the number of possible answers .
1 to flash back ( Show the right questions 、 Number of questions )
How to deal with wrong answers ?
When backtracking recursively traverses a binary tree , After traversing the leaf node , Need to trace back to the parent node , Traverse the next node of the parent node , It can be understood as , The leaf node just traversed is Wrong answer The situation of , Therefore, we do not count the topics represented by the leaf node to Answer A collection of topics (path) in .
One answer , It is equivalent to traversing the branches of a binary tree once .
namely , Go back once , The representative answered a wrong question .
package com.huawei;
import java.util
版权声明
本文为[CashAp]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230536356796.html
边栏推荐
- 转置卷积(Transposed Convolution)
- Three methods of list rendering
- 创建进程内存管理copy_mm - 进程与线程(九)
- 弘玑|数字化时代下,HR如何进行自我变革和组织变革?
- 提升独立站转化率攻略 | 挽回弃购用户
- Cmake basic tutorial (39) pkgconfig
- [the background color changes after clicking a line]
- Breadth first search topics (BFS)
- STL learning notes 0x0001 (container classification)
- 引航成长·匠心赋能——YonMaster开发者培训领航计划全面开启
猜你喜欢

Find the number of "blocks" in the matrix (BFS)

QT displays the specified position and size of the picture

Three methods of list rendering

SQL statement simple optimization

Necessity of selenium preloading cookies

Hongji micro classroom | cyclone RPA's "flexible digital employee" actuator

Frequently asked interview questions - 2 (computer network)

QT drawpixmap and DrawImage blur problem

deep learning object detection

Cross platform packaging of QT packaging program
随机推荐
Necessity of selenium preloading cookies
Pavlov and hobbies
Executable program execution process
refused connection
acwing854. Floyd finds the shortest path
Some pits used by uni
Note: unordered_ Understanding and use of map
Multiple mainstream SQL queries only take the latest one of the data
QSslSocket::connectToHostEncrypted: TLS initialization failed
If I am PM's performance, movie VR ticket purchase display
College entrance examination volunteer filling reference
STL function library
可执行程序执行流程
Quick app bottom navigation bar
提升Facebook触及率和互动率攻略 | 智能客服帮您抓住用户的心
JSON.
Branch and loop statements
uni使用的一些坑
The main difference between pointer and reference
SQL statement simple optimization