一亩三分地论坛

 找回密码
 获取更多干货,去instant注册!

扫码关注一亩三分地公众号
查看: 8603|回复: 13
收起左侧

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

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

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

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看,没有帐号?获取更多干货,去instant注册!

x
本帖专精airbnb了

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


FB 面经 phone & onsite  攻略 附录题库呦
http://www.1point3acres.com/bbs/thread-191077-1-1.html
. 涓浜-涓夊垎-鍦帮紝鐙鍙戝竷
ab家,主力难点在算法 & coding。.1point3acres缃
算法 & coding
phone 一轮coding, 线上写code,然后compile 然后跑实例。
写不完code或者实例结果不对,都很可能挂掉。
他家的难度一般都是在leetcode hard level。之前出面经题的概率挺大,但按lz最近的体会,他家新增了不少新题或者实战题目。
附录airbnb题库.  准备他家的coding, 要增加胜率就只能把能见的机经都刷到吐。
leetcode 上hard的题目也要多练习。 lz结束leetcode 第四轮后, 基本hard的题目都可以12分钟左右,写完bug free的code。
lz非大牛,只发现出苦力这一条路了。 他家一轮面试45分钟。时间还是很紧的。遇到新题目,理解想思路要花5~10分钟。
和考官交流要5~10 分钟。 跑测试,至少要5分钟。所以只能努力提速了。 大家也加油。

Design : 请参考fb的design区块和下面的题库
基本相通
http://www.1point3acres.com/bbs/thread-191077-1-1.html. From 1point 3acres bbs


Culture fit:. From 1point 3acres bbs
他家这个很有意思,会有两轮。
通过只有一个技巧, 他家很有前景,你很喜欢他家的服务,他家的服务能让人更好的感受local的文化。
常见问题多练习,参考附录题库。. 1point3acres.com/bbs

Backgroud:
这个也没啥,自己的project和经验要准备好,常见问题多看看。

.鐣欏璁哄潧-涓浜-涓夊垎鍦
他家的面试难度,主要在coding,其他轮感觉还ok。lz最后fail在了design。 coding 倒是遇到两新题,都解完了,coding的feedback 也不错。
也没啥可惜的了。lz尽力了。. from: 1point3acres.com/bbs

=============================题库了=============================. Waral 鍗氬鏈夋洿澶氭枃绔,
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.

Example:
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. Waral 鍗氬鏈夋洿澶氭枃绔,
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.
. visit 1point3acres.com for more.
// [5, 1, 1, 5] => 10
. From 1point 3acres bbsThe 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.

Similarly,
// [3, 6, 4] => 7-google 1point3acres
// [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. 1point 3acres 璁哄潧
  • 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).  . From 1point 3acres bbs
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  
  • Binary search tree  
From MITBBS
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

edit distance
alien dictionary,我还被问了两轮这题。。。
还有meetingroom2
电面二话不说上来就做题
一个餐馆,菜单上各种食物价格如下. more info on 1point3acres.com
A, $ X.XX
B, $ Y.YY. From 1point 3acres bbs
C, $ Z.ZZ
D,  $ ...

问现在一个人有一定数额的钱,比如 $MM.MM,如何点菜才能把钱全部花完?
面试官要求列出所有可能的组合
我用了recursive的方法,写出来了
但是在比较 floatnumber的时候,细节没有处理好
直接比较 X.XX ==Y.YY 会出现错误,所以必须要做差来比较
经面试官提醒改了过来. From 1point 3acres bbs
然后周一被通知挂了

这题除了用recursive方法,有更好的解法吗?DP?
From 一亩三分地
RT,白人面试官,感觉非常冷,啥都不问,上来直接做题。题目是2D iterator,加一个remove。我10min就写完了,但是面试官说能run,但是design不太好,让我换一种方法。提示利用iteratorremove方法,我对iteratorremove方法不是很熟,我说能不能查api,他说可以。
然后我就查api,然后lzapi里说的看不大懂,然后面试官帮忙run了一个case,然后我懂了,然后就改,然后又出了几个很傻逼的bug,最后面试官说再给你1min调,然后lz终于调出来。然后面试官说great。(感觉安慰我)。然后我就问问题,但是很傻逼的是,我问的问题和那个面试官做的东西不一样,面试官不懂怎么回答,然后我就让他讲了一下他的工作,然后我又问了2个。然后就Bye
首先是三个技术面:
1
AlienDictionary
2
Text Justification
3
echoTCP client 向面试官的server发请求, 读回数据。地里比较少人说这种, 我来详细说一下, 情境是这样的: 想象你开车, 踩下油门,车会加速,放开油门,车会减速。 clientserver发的请求有以下2种: aSTATUS --表示查询现在车的速度和踩下踏板的压力; bTHROTTLE 50.1 --- 这条指令是“THROTTLE” 加上一个数字, 表示我现在将踩油门的压力调为50.1 .鐣欏璁哄潧-

评分

12

查看全部评分

本帖被以下淘专辑推荐:

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

lz 能说的都写在这个帖子里了  思密达。。。。 鏉ユ簮涓浜.涓夊垎鍦拌鍧.
http://www.1point3acres.com/bbs/forum.php?mod=viewthread&tid=191064&page=1#pid2448418
回复 支持 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遇到的新题(算法题)能大概说说嘛?
. 1point3acres.com/bbs


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 一个大大的赞
回复 支持 反对

使用道具 举报

本版积分规则

请点这里访问我们的新网站:一亩三分地Instant.

Instant搜索更强大,不扣积分,内容组织的更好更整洁!目前仍在beta版本,努力完善中!反馈请点这里

关闭

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

手机版|小黑屋|一亩三分地论坛声明 ( 沪ICP备11015994号 )

custom counter

GMT+8, 2016-12-11 22:12

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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