注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
总共3轮技术面(视频+在线做题),平行面试,全程英文,有些面试官信息可以从其国内官网找到。每一轮基本流程是.google и
题目如下: 题目一:
- // Given N objects and a group of sorted locations on a one-dimensional line
- // write a function which returns true if it’s possible to place the objects
- // in the locations where the minimum distance between each location is
- // at least X (greater than or equal to X).
- // . Waral dи,
- // Example:
- //
- //
- // N = 3
- // Locations = [ 1, 4, 5, 7, 15 ]
- //
- // X = 4 Result = true // Two possible solutions [1, 5, 15] or [1, 7, 15]
- // X = 6 Result = true // [1, 7, 15]
- // X = 10 Result = false // No possible solutions [1, 15], [4, 15], [5, 15]
复制代码 -baidu 1point3acres
. 进阶:
给定N和数字,求最大X
题目二:
假设给定两个函数:
1. List<Person> getFriends(Person person), 输入一个用户,返回其朋友
2. Game getMostPlayGames(Person person), 输入一个用户,返回其玩得最多的游戏
要求实现查找一个用户其朋友玩最多而他自己本人没玩过的游戏
进阶:
要求实现查找一个用户其n度人脉朋友玩最多而他自己本人没玩过的游戏。用户A的朋友的朋友和A是2度人脉。. 1point3acres
PS. 面试官只给接口,不给实现,无法编译代码。 坑!-baidu 1point3acres
题目三:
输入一布尔表达式字符串,返回其解析后的结果。输入字符串中只包括true, false, AND, OR, ( 和 )。
例如. .и
"true" 返回 true;
"false" 返回false;
"true AND false" 返回false;
"true AND (false OR true)")) 返回 true
"(true OR false AND false OR true) AND (false OR true)") 返回true
.google и
|