27

iOS重做轮子,写一个NSDictionary(二)

 5 years ago
source link: http://www.cocoachina.com/ios/20180814/24555.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
树结构是一种很常见的数据结构,比如我们的文件目录,数据库的索引,以及我们现在将要讲述的字典。在第一篇文章中,我们用hashtable实现了一个字典,这种结构的字典也是 apple NSDictionary 或 CFDictionary 所采用的方案。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK