查看: 16812|回复: 15

airbnb 面经 phone interview & onsite 附录题库呦

    [复制链接] |试试Instant~ |关注本帖
s442519769 发表于 2016-5-20 02:25:15 | 显示全部楼层 |阅读模式

2016(4-6月) 码农类 硕士 全职@Airbnb - 内推 - HR筛选 技术电面 Onsite |Fail在职跳槽


您需要 登录 才可以下载或查看,没有帐号?获取更多干活,快来注册


另外有两帖(面试经验谈(facebook,airbnb,google,linkedin,Amazon)). 1point3acres.com/bbs
http://www.1point3acres.com/bbs/ ... D311%26sortid%3D311

FB 面经 phone & onsite  攻略 附录题库呦

ab家,主力难点在算法 & coding。
算法 & coding
phone 一轮coding, 线上写code,然后compile 然后跑实例。
他家的难度一般都是在leetcode hard level。之前出面经题的概率挺大,但按lz最近的体会,他家新增了不少新题或者实战题目。
附录airbnb题库.  准备他家的coding, 要增加胜率就只能把能见的机经都刷到吐。. 1point 3acres 璁哄潧
leetcode 上hard的题目也要多练习。 lz结束leetcode 第四轮后, 基本hard的题目都可以12分钟左右,写完bug free的code。
lz非大牛,只发现出苦力这一条路了。 他家一轮面试45分钟。时间还是很紧的。遇到新题目,理解想思路要花5~10分钟。. more info on 1point3acres.com
和考官交流要5~10 分钟。 跑测试,至少要5分钟。所以只能努力提速了。 大家也加油。.鐣欏璁哄潧-涓浜-涓夊垎鍦

Design : 请参考fb的design区块和下面的题库

Culture fit:
通过只有一个技巧, 他家很有前景,你很喜欢他家的服务,他家的服务能让人更好的感受local的文化。

. 1point 3acres 璁哄潧

他家的面试难度,主要在coding,其他轮感觉还ok。lz最后fail在了design。 coding 倒是遇到两新题,都解完了,coding的feedback 也不错。
也没啥可惜的了。lz尽力了。 鏉ユ簮涓浜.涓夊垎鍦拌鍧.

From Glassdoor
1.      Given a list ofstrings, return all pairs of strings that can make a palindrome.  高频
2.      TextJustification, Alien Dictionary  
3.      How fast canyou parse strings?  
The problem I was giveninvolved a bunch of ugly string data parsing and using a heuristic to modifythe data in a certain way. It was an easy problem, but they wanted a fullyworking solution within the short time limit. I couldn't finish it in time.Pick a language that has as little verbosity as possible and don't botherengaging with the interviewer because they don't care to speak with you. Theyjust want to see how fast you can code.
4.       Write a CSV parser.  Parse an escaped string into csvformat. 高频
5.       Return the coins combination with the minimum number ofcoins.Time complexity O(MN), where M is the target value and N is the number ofdistinct coins. Space complexity O(M).  
6.       I had a phone screen question involving examination ofsubsets.  
7.       Check top 10 questions on leetcode  
8.       Implement a circular buffer using an array.
9.      Provide a set of positiveintegers (an array of integers). Each integer represent number of nights userrequest on Airbnb.com. If you are a host, you need to design and implement analgorithm to find out the maximum number a nights you can accommodate. Theconstrain is that you have to reserve at least one day between each request, sothat you have time to clean the room.

1) Input: [1, 2, 3]===> output: 4, because you will pick 1 and 3
2) input: [5,1, 2, 6] ===> output: 11, because you will pick 5 and 6
3) input: [5,1, 2, 6, 20, 2] ===> output: 27, because you will pick 5, 2, 20  
10.  Given a set of numbersin an array which represent number of consecutive days of AirBnB reservationrequested, as a host, pick the sequence which maximizes the number of days ofoccupancy, at the same time, leaving atleast 1 day gap in between bookings forcleaning. Problem reduces to finding max-sum of non-consecutive array elements.

// [5, 1, 1, 5] => 10
The above array would represent an examplebooking period as follows -
// Dec 1 - 5
// Dec 5 - 6
// Dec 6 - 7
// Dec 7 – 12
The answer would be to pick dec 1-5 (5 days)and then pick dec 7-12 for a total of 10 days of occupancy, at the same time,leaving atleast 1 day gap for cleaning between reservations.

// [3, 6, 4] => 7
// [4, 10, 3, 1, 5] => 15  
11.   Boggle implementation  (word search I, II)
12.   Given a dictionary, and a matrix of letters, find all thewords in the matrix that are in the dictionary. (Going across, down ordiagonally)  
  • What SQL columns you should index and how would you change     the indexing in different lookup scenarios?
  • What can you teach me in a few minutes?  
  • find all the     combinations of a string in lowercase and uppercase. For example, string     "ab" -> "ab", "Ab", "aB",     "AB". So, you will have 2^n (n = number of chars in the string)     output strings. The goal is for you to test each of these string and see     if it match a hidden string
  • Implement a     simple regex parser which, given a string and a pattern, returns a booleanindicating whether the     input matches the pattern. By simple, we mean that the regex can only     contain special character: * (star), . (dot), + (plus). The star means     what you'd expect, that there will be zero or more of previous character     in that place in the pattern. The dot means any character for that     position. The plus means one or more of previous character in that place     in the pattern.  
  • Tell me about why you want to work here.  
  • Find all words from a dictionary that are x edit     distance away.  
  • Store a set of sudden-death tournament results in a     compact format (eg. a bit array) and a set of predicted match results     (also in a bit array). Score the predictions, giving one point per     correctly guessed match, without unpacking the bit array into a more     convenient format (ie. you have to traverse the tree in-place).  
20.   Lots of treequestions (implement a BST, score sudden-death tournament results with a minimalbinary tree data structure, encode an alien dictionaryusing a tree and then produce a dictionary using topological traversal), and a"rebuild Twitter from the ground up" scaling/architecture question.
    . 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
  • Describe what happens when you enter a url in the web     browser  
  • Sort a list of numbers in which each number is at a     distance k from its actual position  
  • You have a plain with lots of rectangles on it, find out     how many of them intersect  . From 1point 3acres bbs
  • Binary search tree  
regexmatch, slightly complicated version of http://leetcode.com/2011/09/regular-expression-matching.html
find maxium square inside a sqaure, similar tohttp://stackoverflow.com/questio ... argest-square-block 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
. From 1point 3acres bbs
edit distance
alien dictionary,我还被问了两轮这题。。。
A, $ X.XX
B, $ Y.YY
C, $ Z.ZZ
D,  $ ...

问现在一个人有一定数额的钱,比如 $MM.MM,如何点菜才能把钱全部花完?
但是在比较 floatnumber的时候,细节没有处理好
直接比较 X.XX ==Y.YY 会出现错误,所以必须要做差来比较

From 一亩三分地
RT,白人面试官,感觉非常冷,啥都不问,上来直接做题。题目是2D iterator,加一个remove。我10min就写完了,但是面试官说能run,但是design不太好,让我换一种方法。提示利用iteratorremove方法,我对iteratorremove方法不是很熟,我说能不能查api,他说可以。
Text Justification
echoTCP client 向面试官的server发请求, 读回数据。地里比较少人说这种, 我来详细说一下, 情境是这样的: 想象你开车, 踩下油门,车会加速,放开油门,车会减速。 clientserver发的请求有以下2种: aSTATUS --表示查询现在车的速度和踩下踏板的压力; bTHROTTLE 50.1 --- 这条指令是“THROTTLE” 加上一个数字, 表示我现在将踩油门的压力调为50.1 .鐣欏?璁哄潧-





 楼主| s442519769 发表于 2016-5-20 10:01:02 | 显示全部楼层

lz 能说的都写在这个帖子里了  思密达。。。。. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
回复 支持 2 反对 0

使用道具 举报

 楼主| s442519769 发表于 2016-5-20 02:48:10 | 显示全部楼层
@woaibai  谢谢版主大人。。。。

自顶一下。 这些宝贝机经没人看么 汗 =。=
回复 支持 反对

使用道具 举报

woaibai 发表于 2016-5-20 02:51:19 | 显示全部楼层
回复 支持 反对

使用道具 举报

wtcupup 发表于 2016-5-20 09:54:17 | 显示全部楼层
楼主Airbnb onsite遇到的新题(算法题)能大概说说嘛?
回复 支持 反对

使用道具 举报

 楼主| s442519769 发表于 2016-5-20 10:01:34 | 显示全部楼层
wtcupup 发表于 2016-5-20 09:54
楼主Airbnb onsite遇到的新题(算法题)能大概说说嘛?

lz 能说的都写在这个帖子里了  思密达。。。。
http://www.1point3acres.com/bbs/ ... p;page=1#pid2448418
回复 支持 反对

使用道具 举报

xu8431 发表于 2016-6-1 22:34:58 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| s442519769 发表于 2016-6-6 22:29:41 | 显示全部楼层
=. = 看样子 airbnb的关注度还是别其他几家低一些。
回复 支持 反对

使用道具 举报

yh1213 发表于 2016-6-18 11:46:06 | 显示全部楼层
ab 的题库太赞了,谢谢。
回复 支持 反对

使用道具 举报

jennyEternal 发表于 2016-9-29 19:00:50 | 显示全部楼层
回复 支持 反对

使用道具 举报

helloworldw 发表于 2016-10-2 11:42:30 | 显示全部楼层
回复 支持 反对

使用道具 举报

小码婆 发表于 2016-10-29 06:36:44 | 显示全部楼层
给lz 一个大大的赞
回复 支持 反对

使用道具 举报

yystats 发表于 2017-1-25 01:05:21 | 显示全部楼层
mark, thanks!
回复 支持 反对

使用道具 举报

Weiyu3052 发表于 2017-4-25 02:13:52 | 显示全部楼层
回复 支持 反对

使用道具 举报



一亩三分地推荐上一条 /5 下一条


custom counter

GMT+8, 2017-7-23 22:59

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

快速回复 返回顶部 返回列表