总结从10/2015到02/2016 面试的公司附代码

1. Amplitude: Reverse Linked List Follow up, 判断是否有cycle; Two Sum 变型题


2. yelp: iOS 内容: frame and size difference, Group Anagram

3. health tap: find closet node in the binary tree; IOS high level questions: weak, retain, strong, NSAlert, AutoLayout wtf 表现逊毙了

4. robin hood: iOS Skype interview for progress view

5. tile: some cs fundamental knowledge 也不靠谱啊

6. bina technology: no technique 不靠谱啊

7. A9:climbing stairs, word break2

8. Spunk from end role: hiring manager 电话主要讲简历,而且,问了我知道slunk 是干嘛的吗?我竟然回答了不清楚!!!关于js 的职位,我也觉得自己的并不是很match ,也就没有回音了。

9. apple safari:一面:itoa 二面: group anagram 及iOS high level question: 1. arc, 2,mm in oc, 3.GCD dispatch 这个当时一着急,没回答好,估计挂在这了,唉 一度给了我最大的动力,期待与紧张不安的两次面试。

10. apple performance:一段拿C 写的roman to integer 的代码,要你找出四个运行error,c 都忘光了。接着让我写个方程,1 和0 inverter follow up: don’t use if or while, 其实就是用moduler 

11. ixl learning: return the first duplicate element.

12. Pandora:HR Screening: 一堆iOS high level question  记得有一道没有答出来:where is the version number is stored:config/environment.rb,config/application.rb,config/initializers/version.rb电话面试:find the first duplicate element in the array force me to use c language!!!

13. Nutanix: map two array and string. Follow up: if the length of two array is not identical.

希望经验攒到这里,应该了解自己的问题了吧。 此处省略五个字。。。。。

14. Antra: oop question

15. apple maps:iOS debugging tools:https://developer.apple.com/support/debugging/

how to debug other’s code

apple test: 主要问了itoa 这道题的思路,如果遇到maxint 和min int 怎么处理

16. apple power:construct a tree with node equals to 两个树的各个node 之差

17. apple watch 一轮电面

问了好多iOS 内容,setter, getter, mvc 的好处,process 和thread 差别,

coding :

fibonacci with and without recursion

把一个list 里各个数及其occurrence 拿dictionary 的形式print 出来

18. Facebook: 分别是merge two array 和vertical level order traversal

19. uber: add and deter server on database

// This is the text editor interface.

// Anything you type or change here will be seen by the other person in real time.

typedef void (^Observer)(NSString *name, id data);

@interface UBNotificationCenter : NSObject

- (void)addObserverForName:(NSString *)name block:(Observer)block;

- (void)removeObserverForName:(NSString *)name block:(Observer)block;

- (void)postNotification:(NSString *)name data:(id)data;

@property NSDictionary *inventory;

@end

@implementation UBNotificationCenter

-(id) init {

self = [super init];

if (self) {

}

_inventory = [NSMutableDictionary dictionaryWithDictionary:@{

}]

return self;

}

// https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableDictionary_Class/

// [NSMutableDictionary setObject:forKey:]

- (void)addObserverForName:(NSString *)name block:(Observer)block {

[inventory setObject:block forKey:name];

}

- (void)removeObserverForName:(NSString *)name block:(Observer)block {

}

- (void)postNotification:(NSString *)name data:(id)data {

Observer obersver = [ inventory objectForKey:name];

observer(name, data);

}

@end

int main (int argc, const char * argv[]) {

NSLog(@"start");

UBNotificationCenter *center = [[UBNotificationCenter alloc] init];

[center addObserverForName@"test" block: ^(NSString *name, id data){

NSLog(@"%@ %@", name, data);

}];

[center postNotification:@"test" data:@[1,2,3]];

// addObserver: "abc" block {}

// postNotification:"abc" data: {}

// removeObserverForName:"abc" block: {}

// postNotification:"abc" data: {}

NSLog(@"end");

}

20. Amazon onsite:

1) container service 是干嘛的,如果一个server down 了,怎么办,distribute system 的内容, 不同的query 如何增加速度,方法是parallel 

2) 印度manager:db project, valid paranthethis

3) word ladder II 

4) merge inverval 类似题

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,607评论 5 6
  • 概述 在多数移动应用中任何时候都只能有一个应用程序处于活跃状态,如果其他应用此刻发生了一些用户感兴趣的那么通过通知...
    莫离_焱阅读 11,624评论 1 8
  • *面试心声:其实这些题本人都没怎么背,但是在上海 两周半 面了大约10家 收到差不多3个offer,总结起来就是把...
    Dove_iOS阅读 27,484评论 30 472
  • 鸡鸡复鸡鸡, 主人不恋鸡。 彩鸡倪红下 不如自家鸡。 世道...
    尘缘1227阅读 1,832评论 1 2
  • 我为何爱上你 滑稽而愚笨的问题 闭上眼睛 我点着哪里,哪里就是我爱的道理 指尖撩过你的发 滑过你的唇 爬上你脸颊 ...
    巧遇XxX阅读 3,161评论 4 3

友情链接更多精彩内容