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

东京谷歌云TSE电面过经

全局:

2021(4-6月) 码农类General 硕士 全职@google - 网上海投 - HR筛选 Onsite  | | Pass | 在职跳槽

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

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

x
5月中旬投了google云的TSE(Technical Support Engineer)岗位,base在东京,本来想找纯engineer的岗位投的,无奈东京google根本没有open的HC。
投递完简历不到1周的样子,google的recruiter发来消息,邀请面试。

HR面会问一些general的问题,自我介绍,为什么跳槽?为什么来选择TSE?还会问一些基本的技术问题:
1. 给了一段代码,问你这个是干什么的?答案是冒泡排序;
2. http返回码都有啥?http method的都有啥?
3. Shell执行命令时在哪个路径下找command
4. 插入排序的worst time complexity

HR面完没过几天就是TSE的manager的technical screen,主要问一些Linux系统和troubleshoot相关的问题:
1. 客户那边ssh登录不上,error msg是connection timeout。回答iptables,security group,一些网络联通性探测工具,ping,telnet,nmap就差不多了
2. Linux下在哪看device相关信息,USB插入不成功,在哪debug。答:lsdev,dmesg
3. top命令输出都是什么意思?load average那3个数字都表示什么?答:CPU/MEM usage,process信息,load average表示running和uninterruptable sleeping的进程在1,5,15分钟内的平均数量
4. 给了一段java代码,让你解释这个代码是干什么的?并且找出其中潜在问题给出修正方案,第一轮面试的时候的java code(修改bug后的版本)放在本文最后


6月11
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
过一个project,你怎么去建立流程,拆分工作。

终面完大概不到1周,recruiter过来联系我做catch up,说hiring committee认为coding部分的面试不够全,需要追加一轮面试,得知我这边有pending offer之后,追加面试之间放到了catch up的第二天。

追加面试很简单,主要考察你读code的能力,不考虑写。面试过程中碰到的coding题目我直接贴下面了。形式就是在一个shared doc上,面试官给你贴一段代码,让你脑编译执行出来结果。

面完没几天,recuriter邀请了我做offer call,package各项加起来大约1100 ~ 1200w日元一年。但考虑到工作性质偏support,技术成长性方面较差的因素,最后拒掉了这个offer

第一轮面试的时候的java code(修改bug后的版本)
  1. TSE code

  2. Java code review

  3. @ProcessElement
  4. public int processElement(DoFn<String, Integer>.ProcessContext context) throws Exception {
  5.   String variantId = context.element();
  6.   ExponentialBackOff backoff = new ExponentialBackOff.Builder().build();
  7.   while (true) {
  8.     try {
  9.       genomics.variants().delete(variantId).execute();
  10.       Metrics.counter(DeleteVariantFn.class, "Number of variants deleted").inc();
  11.       context.output(1);
  12.       return 0;
  13.     } catch (Exception e) {
  14.       if (e.getMessage().startsWith("429 Too Many Requests")) {
  15.         LOG.warn("Backing-off per: ", e);
  16.         long backOffMillis = backoff.nextBackOffMillis();
  17.         if (backOffMillis == BackOff.STOP) {
  18.           throw e;
  19.         } else {
  20.           return backOffMillis;
  21.         }
  22.       } else {
  23.         throw e;
  24.       }
  25.     }
  26.   }
  27. }


  28. -------
  29. try {
  30.         Int backOffMillis = processElement(xxx);
  31.         If (backOffMillis > 0) {
  32.                 sleep(backOffMillis);
  33.         }
  34.         dotask();
  35. } catch (Exception e) {
  36.   processException(e);
  37. }
复制代码



code追加面试题目
  1. TSE coding part

  2. // Q1) What would be the output?
  3. public class Sample {
  4.     public static void main(String[] args) {
  5.         String str = "abc";
  6.         char chars[] = str.toCharArray();
  7.         for(int i= chars.length-1; i>=0; i--) {
  8.             System.out.print(chars[i]);
  9.         }
  10.     }
  11. }
  12. // A1) cba


  13. // Q2) What would be the output?
  14. public class Sample {
  15.           public static void main(String[] args) {
  16.                   String str = new String("aabcca");
  17.                   int count = 0;
  18.                   char[] chars = str.toCharArray();
  19.                   for (int i=0; i<str.length();i++) { // outer loop
  20.                               for(int j=i+1; j<str.length();j++) { // inner loop
  21.                                          if (chars[i] == chars[j]) {
  22.                                                     System.out.println(chars[j]);
  23.                                                     count++;
  24.                                                     break;
  25.                                           }
  26.                                }
  27.                    }
  28.            }
  29. }
  30. //
  31. // A2
  32. // # i=0 (outer loop)
  33. // a
  34. // a
  35. // # i = 1
  36. // a
  37. // # i = 2
  38. // # i = 3
  39. // c


  40. // Q3) What would be the output?

  41. class Parent {
  42.     public Parent()
  43.     {
  44.         System.out.println(“Parent class constructor called”);
  45.     }
  46. }

  47. public class Child extends Parent
  48. {
  49.     public Child()
  50.     {
  51.         System.out.println(“Child class constructor called”);
  52.     }
  53.     public static void main(String args[])
  54.     {
  55.         Child c = new Child();
  56.     }
  57. }

  58. // A3
  59. // Parent class constructor called
  60. // Child class constructor called


  61. // Q4) What would be the output?
  62. import java.util.*;
  63. public class Example {
  64.     public static void main(String args[]) {
  65.         Map<String, String> map = new HashMap<String, String>();
  66.         map.put("key1", "red");
  67.         map.put("key2", "blue");
  68.         map.put("key3", "green");
  69.         for (String key : map.keySet()) {
  70.             String value = map.get(key);
  71.             System.out.println(value);
  72.         }
  73.     }
  74. }

  75. // A4
  76. // # the order may not exactly the same
  77. // red
  78. // blue
  79. // green


  80. // Q5) What would be the output?
  81. public class Change
  82. {
  83.    public static int performSomething(int[] arrNumbers, int num)
  84.    {  
  85.       if(num == 0 || num == 1)
  86.       {  
  87.          return num;  
  88.       }  
  89.       int[] arrTemporary = new int[num];  
  90.       int b = 0;  
  91.       for(int a = 0; a < num - 1; a++)
  92.       {  
  93.          if(arrNumbers[a] != arrNumbers[a + 1])
  94.          {  
  95.             arrTemporary[b++] = arrNumbers[a];  
  96.          }  
  97.       }  
  98.       arrTemporary[b++] = arrNumbers[num - 1]; // b = arrTemporary.length, b = 8
  99.       for(int a = 0; a < b; a++)
  100.       {  
  101.          arrNumbers[a] = arrTemporary[a];  
  102.       }  
  103.       return b;  
  104.    }
  105.    public static void main(String[] args)
  106.    {
  107.       int[] arrInput = {1, 2, 3, 3, 4, 5, 5, 6, 7, 8};  
  108.       int len = arrInput.length;  // 10
  109.       len = performSomething(arrInput, len);  
  110.       // printing elements
  111.       for(int a = 0; a < len; a++)
  112.       {
  113.          System.out.print(arrInput[a] + "" "");
  114.       }
  115.    }
  116. }

  117. // A5
  118. // # ArraryTemporary = [1, 2, 3, 4, 5, 6, 7, 8]
  119. // 1 2 3 4 5 6 7 8


  120. // Q6) What would be the output?
  121. public class ExceptionTest {
  122.   public static void main(String[] args) {
  123.    System.out.println(exceptionTest());
  124.   }
  125.   public static int exceptionTest()
  126.   {
  127.    int i=6;
  128.    try{
  129.     throw new NullPointerException();
  130.    }
  131.    catch(NullPointerException e)
  132.    {
  133.     i=10;
  134.     throw e;
  135.    }
  136.    finally
  137.    {
  138.     i=20;
  139.     System.out.println("In finally block");
  140.     return i;
  141.    }   
  142.   }
  143. }

  144. // A6
  145. // In finally block
  146. // # 这里我答错了,面试后编译了跑了遍发现是i=20是会被return的

  147. // Q7) Please put comments to improve the readability.
  148. // this function will try to get the return value from the stopwatch thread until the following cases happen
  149. // 1) there is untriable execption happened during the execution of stopwatch thread
  150. // 2) the retry number exceed the maximum retry times
  151. // 3) the attempt number is greater then the minimum retry times but the execution of stopwatch thread is overtime
  152. // @return V output of stopwatch thread
  153. // @throw RetryHelperException

  154. private V doRetry() throws RetryHelperException {
  155.   // start a new thread to do something
  156.   stopwatch.start();
  157.   while (true) {
  158.     attemptNumber++;
  159.     Exception exception;
  160.     try {
  161.       // trying to get result from thread we just executed
  162.       V value = callable.call();
  163.       return value;
  164.     } catch (Exception e) {
  165.       // let the exceptionHandler check if the exception is retriable, if not, then throw NonRetriableException
  166.       if (!exceptionHandler.shouldRetry(e)) {
  167.         // check the type of the exception, if the exception of the 3 types, then we propagate it
  168.         if (e instanceof InterruptedException ||
  169.             e instanceof InterruptedIOException ||
  170.             e instanceof ClosedByInterruptException) {
  171.           RetryInterruptedException.propagate();
  172.         }
  173.         throw new NonRetriableException(e);
  174.       }
  175.       exception = e;
  176.     }
  177.    
  178.     // check if the attempt number exceed the maximum retry times
  179.     if (attemptNumber >= params.getRetryMaxAttempts() || (
  180.       // make sure the attempt number is greater then the minimum retry times, and if it is the case, then check if the exection of the
  181.       // stopwatch thread is overtime
  182.         attemptNumber >= params.getRetryMinAttempts()
  183.         && stopwatch.elapsed(MILLISECONDS) >= params.getTotalRetryPeriodMillis())) {
  184.       throw new RetriesExhaustedException(this + ": Too many failures, giving up", exception);
  185.     }
  186.    
  187.     // estimate the time to sleep, wait a moment and try again
  188.     long sleepDurationMillis = getSleepDuration(params, attemptNumber);
  189.     try {
  190.       Thread.sleep(sleepDurationMillis);
  191.     } catch (InterruptedException e) {
  192.       RetryInterruptedException.propagate();
  193.     }
  194.   }
  195. }
复制代码


评分

参与人数 3大米 +7 收起 理由
vislx + 1 很有用的信息!
14417335 + 5 给你点个赞!
分割冬季 + 1 赞一个

查看全部评分


上一篇:亚麻aws面经
下一篇:Twitter ads virtual onsite DS/MLE
全局:
感恩楼主分享!恭喜楼主!你的脑子记忆里实在是太神奇太厉害了!

评分

参与人数 1大米 +1 收起 理由
分割冬季 + 1 赞一个

查看全部评分

回复

使用道具 举报

🔗
 楼主| yaochaoutokyo 2021-8-4 20:50:06 | 只看该作者
全局:
荷兰猪肥肥 发表于 2021-8-3 16:08
感恩楼主分享!恭喜楼主!你的脑子记忆里实在是太神奇太厉害了!

哈哈,没有那么厉害,好记性不如烂笔头🤦‍♂️
我每面完一轮就马上蹭着记忆清晰的时候记下来所有问题了
回复

使用道具 举报

🔗
Ruka 2021-9-4 08:07:38 来自APP | 只看该作者
全局:
问一下楼主是在北美投的Tokyo然后relocate去的吗?公司负责visa嘛?还是楼主本身就在Tokyo
回复

使用道具 举报

🔗
 楼主| yaochaoutokyo 2021-9-8 20:16:23 | 只看该作者
全局:
Ruka 发表于 2021-9-4 09:07
问一下楼主是在北美投的Tokyo然后relocate去的吗?公司负责visa嘛?还是楼主本身就在Tokyo

嗯,我在tokyo这边工作的
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-NYNMS  2021-10-19 01:32:28
yaochaoutokyo 发表于 2021-9-8 04:16
嗯,我在tokyo这边工作的

楼主最后offer的level是的L3还是L4呀?
回复

使用道具 举报

🔗
子曰星星 2022-1-27 12:32:11 | 只看该作者
全局:
请问楼主,楼主的Specialization-specific RRK这轮面试是面向Cloud Technical Support Engineer的哪个方向的?
回复

使用道具 举报

全局:
谢谢楼主!最近也收到面试邀请了,提供的信息非常有参考价值,再次感谢
回复

使用道具 举报

全局:
想问下楼主第一轮tse面试的代码,到底修改了啥内容。。。多谢高人
回复

使用道具 举报

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

本版积分规则

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