注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
最近Airbnb在面很多人但是面经不是很多,分享个我自己的吧+求人品哈哈。他家最近bar比较高,主要是申请人多,题不难但是要求短时间写working code。题在下面,先把codepad的直接贴上,之后附解释。1.
/*
John,Smith,,Los Angeles,1
Jane,Roberts,,"San Francisco, CA",0
"Alexandra ""Alex""",Menendez,,Miami,1
"""Alexandra Alex""" John|Smith||Los Angeles|1
Jane|Roberts||San Francisco, CA|0
of the targets that were 404ing.Given a method decode(testEncStr) which will return the decoded int id if testEncStr is decodeable or will throw an exception (or return null) if not, implement a new method decodeFind(String badEncStr) which takes a string and returns the decoded int id.
*/
|