- Hands-On Data Structures and Algorithms with Rust
- Claus Matzinger
- 137字
- 2021-07-02 14:11:52
Wrap up
A (transaction) log is a great use case for a linked list: They often grow to unexpected sizes, and indexing is not required. While a linked list is often a very simple type in other languages, it harbors a surprising amount of challenges in Rust. This is mostly due to the borrowing and ownership concepts which require a programmer to think about what goes where in great detail. For real-world use cases, however, it's better to use Rust's standard library linked list (std::collections::LinkedList). From a performance perspective, finding a particular item in the singly linked list requires looking at the entire list in the worst case, resulting in a runtime complexity of O(n), with n being the number of items in the list (more on the topic of runtime complexity in Chapter 8, Algorithm Evaluation).
- Redis使用手冊(cè)
- Building Computer Vision Projects with OpenCV 4 and C++
- 使用GitOps實(shí)現(xiàn)Kubernetes的持續(xù)部署:模式、流程及工具
- App+軟件+游戲+網(wǎng)站界面設(shè)計(jì)教程
- 卷積神經(jīng)網(wǎng)絡(luò)的Python實(shí)現(xiàn)
- MySQL基礎(chǔ)教程
- Creating Dynamic UIs with Android Fragments(Second Edition)
- 數(shù)據(jù)驅(qū)動(dòng):從方法到實(shí)踐
- 深度剖析Hadoop HDFS
- MySQL 8.x從入門到精通(視頻教學(xué)版)
- Construct 2 Game Development by Example
- MySQL技術(shù)內(nèi)幕:SQL編程
- 貫通SQL Server 2008數(shù)據(jù)庫(kù)系統(tǒng)開(kāi)發(fā)
- Oracle 11g數(shù)據(jù)庫(kù)管理員指南
- 大數(shù)據(jù)技術(shù)體系詳解:原理、架構(gòu)與實(shí)踐