📣 黑五价提前开抢|VIP一年通行证5折,蓝莓、Offer多多同步特惠
回复: 35
跳转到指定楼层
上一主题 下一主题
收起左侧

狗狗上门面经

全局:

2019(1-3月) 码农类General 本科 全职@google - 猎头 - Onsite  | | Other | 在职跳槽

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

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
去年10月被recruiter在领英上联系,一直拖到了1月份才电面,过了电面约了3月的Onsite。地点:Sunnyvale
您好!
本帖隐藏的内容需要积分高于 200 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 200 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies


发个面经攒人品,希望能帮助到后面要面谷歌的朋友。


补充内容 (2019-3-12 02:46):
今早收到recruiter电话 挂了,有一轮阿三给了一个非常negative的feedback。 哎 心塞,从开始刷题到现在也快半年了,还没有拿到一个offer…真的是一分钟都不想在现在的公司多呆了。希望好运快快降临吧

评分

参与人数 7大米 +44 收起 理由
一个豆沙的粽子 + 3 给你点个赞!
simpleg + 3 给你点个赞!
匿名用户-ZUOB0 + 30
bdhmwzfa + 3 给你点个赞!
mewx + 3 给你点个赞!

查看全部评分


上一篇:Amazon亚马逊 intern OA1 + OA2 + timeline
下一篇:VMware 电面

本帖被以下淘专辑推荐:

推荐
umialpha 2019-3-7 14:43:56 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

推荐
visa 2019-3-7 15:15:06 | 只看该作者
全局:
umialpha 发表于 2019-3-7 14:43
这一题我后来仔细写了一下,终于理解了烙印给的提示, 最下面最左边的点,可以保证其余点在这个点的一侧, ...

层主你好,我觉得是不是任意一点都可以找到一点把平面上的点分成两等分啊,下面是我用c++写的一份代码
  1. Skip to content

  2. Search or jump to…

  3. Pull requests
  4. Issues
  5. Marketplace
  6. Explore
  7. @xczhang07 Sign out
  8. 1
  9. 0 0 xczhang07/leetcode
  10. Code  Issues 0  Pull requests 0  Projects 0  Wiki  Insights  Settings
  11. leetcode/google_interview/divide_points_in_matrix.cpp
  12. @xczhang07 xczhang07 Create divide_points_in_matrix.cpp
  13. 4a363ec  a day ago
  14. 59 lines (53 sloc)  1.38 KB
  15.    

  16. int dividePoint(pair<int, int> p1, pair<int, int> p2, pair<int, int> p)
  17. {
  18.         int d = (p.first - p1.first)*(p2.second - p1.second) - (p.second - p1.second)*(p2.first-p1.first);
  19.         return d;
  20. }

  21. pair<vector<pair<int,int>>, vector<pair<int,int>>> dividePoints(vector<pair<int, int>>& points)
  22. {
  23.         pair<vector<pair<int,int>>, vector<pair<int,int>>> ret;
  24.         if (points.size() <= 2)
  25.                 return ret;
  26.         auto point1 = points[0];
  27.         vector<pair<int, int>> up;
  28.         vector<pair<int, int>> bottom;
  29.         for (int i = 1; i < points.size(); ++i)
  30.         {
  31.                 auto point2 = points[i];
  32.                 for (int i = 0; i < points.size(); ++i)
  33.                 {
  34.                         auto t = points[i];
  35.                         if ((t.first == point1.first && t.second == point1.second) || (t.first == point2.first && t.second == point2.second))
  36.                                 continue;
  37.                         int d = dividePoint(point1, point2, t);
  38.                         if (d > 0)
  39.                                 up.push_back(t);
  40.                         else
  41.                                 bottom.push_back(t);
  42.                 }
  43.                 if (up.size() == bottom.size())
  44.                         return make_pair(up, bottom);
  45.                 else
  46.                 {
  47.                         up.clear();
  48.                         bottom.clear();
  49.                 }
  50.         }
  51.         return ret;
  52. }

  53. int main()
  54. {
  55. vector<pair<int, int>> points = { {1,1}, {2,2}, {2,3},{2,4},{-1,0},{-3,-4} };

  56.         pair < vector<pair<int,int>>, vector<pair<int, int>> > partition = dividePoints(points);
  57.         for (auto e : partition.first)
  58.         {
  59.                 cout << "(" << e.first << "," << e.second << ")" << " ";
  60.         }
  61.         cout << endl;

  62.         for (auto e : partition.second)
  63.         {
  64.                 cout << "(" << e.first << "," << e.second << ")" << " ";
  65.         }
  66.         cout << endl;
  67. return 0;
  68. }
复制代码
回复

使用道具 举报

推荐
visa 2019-3-7 15:16:32 | 只看该作者
全局:
  1. int dividePoint(pair<int, int> p1, pair<int, int> p2, pair<int, int> p)
  2. {
  3.         int d = (p.first - p1.first)*(p2.second - p1.second) - (p.second - p1.second)*(p2.first-p1.first);
  4.         return d;
  5. }

  6. pair<vector<pair<int,int>>, vector<pair<int,int>>> dividePoints(vector<pair<int, int>>& points)
  7. {
  8.         pair<vector<pair<int,int>>, vector<pair<int,int>>> ret;
  9.         if (points.size() <= 2)
  10.                 return ret;
  11.         auto point1 = points[0];
  12.         vector<pair<int, int>> up;
  13.         vector<pair<int, int>> bottom;
  14.         for (int i = 1; i < points.size(); ++i)
  15.         {
  16.                 auto point2 = points[i];
  17.                 for (int i = 0; i < points.size(); ++i)
  18.                 {
  19.                         auto t = points[i];
  20.                         if ((t.first == point1.first && t.second == point1.second) || (t.first == point2.first && t.second == point2.second))
  21.                                 continue;
  22.                         int d = dividePoint(point1, point2, t);
  23.                         if (d > 0)
  24.                                 up.push_back(t);
  25.                         else
  26.                                 bottom.push_back(t);
  27.                 }
  28.                 if (up.size() == bottom.size())
  29.                         return make_pair(up, bottom);
  30.                 else
  31.                 {
  32.                         up.clear();
  33.                         bottom.clear();
  34.                 }
  35.         }
  36.         return ret;
  37. }

  38. int main()
  39. {
  40. vector<pair<int, int>> points = { {1,1}, {2,2}, {2,3},{2,4},{-1,0},{-3,-4} };

  41.         pair < vector<pair<int,int>>, vector<pair<int, int>> > partition = dividePoints(points);
  42.         for (auto e : partition.first)
  43.         {
  44.                 cout << "(" << e.first << "," << e.second << ")" << " ";
  45.         }
  46.         cout << endl;

  47.         for (auto e : partition.second)
  48.         {
  49.                 cout << "(" << e.first << "," << e.second << ")" << " ";
  50.         }
  51.         cout << endl;
  52. return 0;
  53. }
复制代码
回复

使用道具 举报

全局:
第二轮是所有有一方win的结果吗?
回复

使用道具 举报

全局:
请问第一题怎么判断点在线的上部还是下部呢?
回复

使用道具 举报

🔗
 楼主| 小狗雪碧 2019-3-6 08:01:06 | 只看该作者
全局:
wtcupup 发表于 2019-3-6 05:37
第二轮是所有有一方win的结果吗?

是的,有win, 或者平局。invalid的局不考虑,比如说Player1已经赢了,Player2还在继续下
回复

使用道具 举报

🔗
 楼主| 小狗雪碧 2019-3-6 08:02:07 | 只看该作者
全局:
eggface 发表于 2019-3-6 05:37
请问第一题怎么判断点在线的上部还是下部呢?

我没写完,面试官说这个helper function可以不用写,估计是嫌我太慢了吧
回复

使用道具 举报

🔗
visa 2019-3-6 09:32:10 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
 楼主| 小狗雪碧 2019-3-6 09:35:22 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
visa 2019-3-6 10:29:39 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
NKwn 2019-3-6 10:44:52 | 只看该作者
全局:
请问一下第一题,会不会有多个点在一条线上的情况呀?
回复

使用道具 举报

全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

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