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

黑车11月店面 L5a

🔗
匿名用户-MIYYH  2022-11-5 08:10:37 |倒序浏览

2022(10-12月) 码农类General 硕士 全职@uber - 内推 - 技术电面  | 😐 Neutral 🙂 Easy | Other | 在职跳槽

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

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

x
在地里面找的小伙伴内推,之后没多久就被recruiter联系,然后约了L5a的面试。

刷了一周tag和地里面经都没押中原题,还好题还算简单,给了很多个integer代表不同的版本,版本之间有的相容有的不相容。要求实现三个方
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
了,感觉有点慢啊,是我表现不好吗?然后uber居然要先提交immigration材料才肯给你继续面试,这么小心的吗?

评分

参与人数 1大米 +5 收起 理由
匿名用户-YXQWU + 5

查看全部评分


上一篇:hirevue面经+timeline
下一篇:雪花OA挂经
全局:
感觉应该是这个人的Interview 3 : Coding Interview:

https://leetcode.com/discuss/int ... or-Nov-2021/1198620

搬过来:
  1. The storage team is developing a version management system. Every night we built one or a few new releases. The versions could be compatible, which means the system could be upgraded without the data migration; otherwise, we have to upgrade the data before deploying the new release binaries (typically with a MapReduce job to rebuild the data). The compatibility is transitive, which means if version a is compatible with version b, version b is compatible with c, then a is compatible with c. If any of them are incompatible, it makes a to c incompatible. We already have a compatible check test (Jenkins job). After each release, we only run the compatible test against the previous version.

  2.    public void addNewVersion(int ver, boolean isCompatibleWithPrev)
  3.     {
  4.     }

  5.     public boolean isCompatible(int srcVer, int targetVer)
  6.     {
  7.     }
  8.    
  9. 1 -> 2 -> 3 -> 4 -> 5 -> 6
  10.    T    T    F    T    T

  11.         VersionCompatibilityManagement versions = new VersionCompatibilityManagement();
  12.         versions.addNewVersion(1, false);
  13.         versions.addNewVersion(2, true);
  14.         versions.addNewVersion(3, true);
  15.         versions.addNewVersion(4, false);
  16.         versions.addNewVersion(5, true);
  17.         versions.addNewVersion(6, true);
  18.         assert(versions.isCompatible(1, 3) == true);
  19.         assert(versions.isCompatible(3, 5) == false);
  20.         assert(versions.isCompatible(4, 2) == false); // downgrade
  21.         assert(versions.isCompatible(3, 3) == true); // upgrade to itself, always compatible
复制代码
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-XQ1GE  2022-11-5 19:13:26 来自APP
我也是这道题,我写了dfs但是被问怎么优化,一直没想到是union find,不过电面还是过了,还是你的解法更好
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-CNE2Y  2022-11-5 21:49:40 来自APP
多谢lz,能否给个例子呢
回复

使用道具 举报

🔗
wanzhu87 2022-11-18 16:12:38 | 只看该作者
全局:
请问有类似leetcode 题吗? 谢谢啦
回复

使用道具 举报

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

本版积分规则

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