回复: 3
跳转到指定楼层
上一主题 下一主题
收起左侧

[Google Intern 面经] 3/11/2016 两轮

全局:

2016(7-9月) 码农类General 硕士 实习@google - 内推 - 技术电面  | | Other | 应届毕业生

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

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

x
面之前一晚,看到这位同学的更新()就知道Google已经没什么坑了。


楼主EE背景转专业,水平还比较差,并没有报太高期望。2月初托人内推,2月26号收到确认邮件,3月3日收到questionnaire,3月11日下午两轮背靠背。


第一轮:


听口音应该是国人姐姐,在Google工作了一年多,自我介绍说是shopping department的人,主要做computer vision方面的工作,像是通过一张商品照片来寻找类似商品,给customer推荐。


首先warmup的题是问C++中 public, protected, private都有什么区别,proteced我没怎么见过,瞎说成不能被更改,- -||。感觉对方应该一脸黑线。


第二题,把输入字符串中所有元音字母的顺序翻转一下。举个例子,  "united states" -> "enated stitus" 。输入中元音字母依次是[u, i, e, a, e], 翻转后是[e, a, e, i, u],放回原位置便得到 "enated stitus"。我上来有点儿懵,用了两个vector分别存元音字母的position,和元音字母char。然后按照position vector把char vector从后往前依次归位。中间写出了bug,也都被姐
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
ont face="Arial">两场下来,筋疲力竭。看到另一个同学的帖子,非常赞同:"不要纠结于自己本来就得不到的东西,努力提高才是!Move ON!"



祝大家顺利!








补充内容 (2016-3-23 02:49):
3.21 收到拒信。继续努力提高自己吧~

上一篇:面试assignment:从txt文件里读取2百万行double数字。
下一篇:Dropbox 电面一面,经典题hit count
🔗
leo817 2016-3-13 04:11:16 | 只看该作者
全局:
楼主很棒 加油
回复

使用道具 举报

🔗
 楼主| Jimmy_Zhao 2016-3-13 05:23:53 | 只看该作者
全局:
leo817 发表于 2016-3-13 04:11
楼主很棒 加油

谢谢,这祝你顺利~
回复

使用道具 举报

🔗
bobzhang2004 2016-4-1 10:56:42 | 只看该作者
全局:
写了下第一题,其实和word break 和palindrome partition基本一样
  1. public class LotteryTicket {

  2.         public static void main(String[] args) {
  3.                 List<List<Integer>> res = getValidLotteryTickets("1223434567", 1, 59, 7);
  4.                 for (List<Integer> list : res) {
  5.                         for (int i : list) {
  6.                                 System.out.print(i + " ");
  7.                         }
  8.                         System.out.println();
  9.                 }
  10.         }

  11.         public static List<List<Integer>> getValidLotteryTickets(String str,
  12.                         int min, int max, int num) {
  13.                 List<List<Integer>> res = new ArrayList<List<Integer>>();
  14.                 if (str == null || str.length() == 0) {
  15.                         return res;
  16.                 }

  17.                 helper(res, str, new ArrayList<Integer>(), min, max, 0, num);
  18.                 return res;
  19.         }

  20.         private static void helper(List<List<Integer>> res, String str,
  21.                         ArrayList<Integer> list, int min, int max, int pos, int num) {
  22.                 if (pos == str.length()) {
  23.                         if (list.size() == num) {
  24.                                 res.add(new ArrayList<Integer>(list));
  25.                         }
  26.                         return;
  27.                 }

  28.                 for (int i = pos; i < str.length(); i++) {
  29.                         String part = str.substring(pos, i + 1);
  30.                         int val = Integer.valueOf(part);
  31.                         if (part.charAt(0) == '0' && part.length() > 1 || val > max) {
  32.                                 break;
  33.                         }
  34.                         if (val >= min && val <= max) {
  35.                                 list.add(val);
  36.                                 helper(res, str, list, min, max, i + 1, num);
  37.                                 list.remove(list.size() - 1);
  38.                         }
  39.                 }
  40.         }
  41. }
复制代码
回复

使用道具 举报

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

本版积分规则

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