As a general rule, avoid using a more complex data structure where a simpler one will suffice.
作为一条通用规则,在更简单的数据结构能满足需要的地方,应该避免使用更复杂的数据结构。
Whether a complex data structure is overkill for a plain resume depends on your needs and how often the data changes.
一个复杂数据结构对于一份简单的简历是否过度,要取决于您的需求和数据更改的频率。
When a new document is created, someone has to associate it with the right categories in this complex data structure.
在创建一个新的文档时,必须将其与这种复杂数据结构中合适的类别关联。
The thread in this image that has the mutex locked gets to access the complex data structure without worrying about having other threads mess with it at the same time.
图中,锁定了互斥对象的线程能够存取复杂的数据结构,而不必担心同时会有其它线程干扰。
This simple design, possible because the data obeys strict LIFO order, means that no complex data structure is needed to track stack contents - a simple pointer to the top of the stack will do.
这种简单的设计,很有可能是考虑到数据操作都符合后进先出(LIFO )规则,这意味着访问栈的内容并不需要复杂的数据结构,一个简单的栈顶指针就能搞定一切。
This simple design, possible because the data obeys strict LIFO order, means that no complex data structure is needed to track stack contents - a simple pointer to the top of the stack will do.
这种简单的设计,很有可能是考虑到数据操作都符合后进先出(LIFO )规则,这意味着访问栈的内容并不需要复杂的数据结构,一个简单的栈顶指针就能搞定一切。
应用推荐