美文网首页
iOS面试题

iOS面试题

作者: BoxDeng | 来源:发表于2017-11-14 05:48 被阅读0次

去哪儿网一面

自我介绍

  • atomic 和 nonatomic 的区别

  • 手写@property (nonatomic, strong, readonly) NSString *context 的get 方法。前提是线程安全,lazy load的方式

  • @property (atomic, strong) NSString *str; 如果重写了str的set方法,那atomic还有效吗?

  • 写一个method 能满足输入[6, 5, 4, 3, 2, 1]数组 输出 [1, 2, 3, 4, 5, 6]数组

em 什么的 反排序。
新建一个数组,倒序插入
红黑树
考点是, 空间复杂度

相关文章

网友评论

      本文标题:iOS面试题

      本文链接:https://www.haomeiwen.com/subject/nahvmxtx.html