Get used to using STL, because what you are learning now is the data structure, not the STL source code. Your goal should be to understand the data structure, so don’t stick to these details, otherwise it will cost you a lot of time.
After reading the data structure, you can find a book on STL source code analysis.
It doesn’t matter, this just simplifies the operation based on language features. If you are really worried, you can look at the implementation in C language.
Hello, I am also a beginner. Although I first used c++ (without stl) to learn data structures, and then pure c to learn data structures, but I think there is no absolute difference between good and bad. Hide The details can be more focused on the representation of the algorithm. Displaying the details can provide a deeper understanding of its specific implementation. It is really difficult to define which one is better and which one is worse. It is like tossing a coin. In fact, it does not matter which side is up. Some masters are Top-down learning, some great masters learn from the bottom-up. I think the conclusion drawn from this is that all can lead to the end. Instead of worrying about these, it is better to choose one and start learning immediately. Hesitation is the most wasteful In terms of time. I personally think it’s more appropriate to go directly to Jisuanke to learn the knowledge points and then study the corresponding data structure questions to get started. I also have the book on the topic...
You must learn to use stl for implementation. After all, using stl can speed up development efficiency. For beginners, it is recommended not to use stl purely. stl is not omnipotent. In the end, you still need to understand the internal principles of the data structure, so that you can use stl to implement it more easily. In addition, it is better not to use it for school courses, otherwise the submitted homework will only include the relevant header files and almost no implementation of its own. You can also use simple stl to stack complex data structures.
Get used to using STL, because what you are learning now is the data structure, not the STL source code. Your goal should be to understand the data structure, so don’t stick to these details, otherwise it will cost you a lot of time.
After reading the data structure, you can find a book on STL source code analysis.
It doesn’t matter, this just simplifies the operation based on language features.
If you are really worried, you can look at the implementation in C language.
Hello, I am also a beginner. Although I first used c++ (without stl) to learn data structures, and then pure c to learn data structures, but I think there is no absolute difference between good and bad. Hide The details can be more focused on the representation of the algorithm. Displaying the details can provide a deeper understanding of its specific implementation. It is really difficult to define which one is better and which one is worse. It is like tossing a coin. In fact, it does not matter which side is up. Some masters are Top-down learning, some great masters learn from the bottom-up. I think the conclusion drawn from this is that all can lead to the end. Instead of worrying about these, it is better to choose one and start learning immediately. Hesitation is the most wasteful In terms of time. I personally think it’s more appropriate to go directly to Jisuanke to learn the knowledge points and then study the corresponding data structure questions to get started. I also have the book on the topic...
Personally think: If you have enough time to study, it is naturally better to be able to implement it yourself first and then use STL...
You must learn to use stl for implementation. After all, using stl can speed up development efficiency. For beginners, it is recommended not to use stl purely. stl is not omnipotent. In the end, you still need to understand the internal principles of the data structure, so that you can use stl to implement it more easily. In addition, it is better not to use it for school courses, otherwise the submitted homework will only include the relevant header files and almost no implementation of its own. You can also use simple stl to stack complex data structures.