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

数据砖 VO

全局:

2023(1-3月) 码农类General 硕士 全职@databricks - 内推 - Onsite  | 🙁 Negative 😐 Average | Fail | 在职跳槽

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

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

x
电话面试
---
SnapshotSet Interface,能够用iterator()取某一时刻这个set的所有元素,
在调用iterator()和使用Iterator<T>之间,可以对SnapshotSet进行修改,不考虑多线程,所有操作都是顺序执行。

虚拟现场
---
1. 算法和数据结构
Given a list of firewall rules, such as
[{"192.168.1.22/24": allow}, {"192.168.122.126/20": deny}, ...]
Write a function to determine if an IP is allowed to pass the firewall.
Something like:
boolean canPass(List<Rule> firewall, String ip) {}
2. 编码
Assume we have some static, globally available reference string
// ref_string = ['a', 'b', 'c', '1', '2', '3', '4', 'a', 'b', 'c', 'd', '!'] == "abc1234abcd!"
//    (index) =   0    1    2    3    4    5    6    7    8    9    10   11
// Using the reference string, we want to compress a source string
// src_string = ['a', 'b', 'c', 'd', '1', '2', '3'] == "abcd123"
//    (index) =   0    1    2    3    4    5    6
// A cover represents a compression of src_string relative to ref_string and is
// comprised of (inclusive, exlcusive) indicies-pairs called "blocks". For example,
// block1 = (7, 11) => "abcd"
// For example, one valid cover for src_string:
// cov1 = [(7, 11), (3, 6)] => ["abcd", "123"]
// Another valid cover for src_string:
// cov2 = [(7, 10), (10, 11), (3, 6)] => ["abc", "d", "123"]
// Implement delete(cover, index)
// Given a valid cover and index of S, return a valid cover for S[:index] + S[index+1:]
// Array[Array[Int]] delete(Array[Array[Int]] cover, Int index)
// cov1 = [(7, 11), (3, 6)]
// abc123
// abcd13
// delete(cov1, 3) = [(7,10), (3,6)}]
// delete(cov1, 5)
// delete(cov1, 0)
// delete(cover1, 3) -> (7,10), (3,6)
/*
*  Follow- up,  delete(cover, index, ref_str); but you need to return maxim cover
*/
// A "maximal" cover is one in which concatenating any consecutive pair of blocks
// yields a corresponding substring that is not in the reference string.
// cov1 is maximal since ("abcd" + "123") or "abcd123" is not in ref_string
//cov1 = [(7, 11), (3, 6)] => ["a‍‍‌‍‌‍‌‌‌‌‌‌‌‍‍‌‌bcd", "123"]
// cov2 is NOT maximal since ("abc" + "d") or "abcd" is in ref_string
// cov2 = [(7, 10), (10, 11), (3, 6)] => ["abc", "d", "123"]
// delete(cov1, 3) = [(7,10), (3,6)}] = "abc""123" = (0,6)


3. 系统结构

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



4. 系统设计
In memory kv store, how to handle multi thread, how to recover from failure.5. 交叉职能,比较基础的Behavior Question

编码第二题followup不会做,高人指点
最后吐槽一句,onsite走大运碰着全国人面试官,在当前市场环境下还以为多少有点帮助,结果系统结构面试官大哥一路各种刨根问底trade off问题,加上楼主自己读太多blog,上来给自己挖太多坑,结果被国人大哥无情问倒,最后给了weak no hire。我真谢了。

评分

参与人数 4大米 +18 收起 理由
黑发披肩的绿豆 + 1 请问楼主 kv 要写码吗
blakesen + 1 给你点个赞!
frank11118 + 1 很有用的信息!
匿名用户-TOAFQ + 15

查看全部评分


上一篇:2023 很新的亚麻summer intern oa
下一篇:Citadel SWE 挂经 个别round体验非常差
地里匿名用户
推荐
匿名用户-FN2IK  2023-6-22 03:14:30 来自APP
国人大哥真tm有毒
回复

使用道具 举报

🔗
罗大宝 2023-3-23 03:38:15 | 只看该作者
全局:
感谢lz分享!
回复

使用道具 举报

🔗
Syndra 2023-3-29 13:04:27 | 只看该作者
全局:
楼主知道现在onsite过后还有take home assignment和referal流程吗
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-7RU7Z  2023-4-16 07:14:14
请问面试官会提前告诉是system design 还是coding吗? 谢谢
我看之前的面经有人 KV store 是mocked hashmap来计算 TPS, 有的人却是 system design.
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-9DVRG  2023-6-25 08:12:09
请问一下这个题,我们需要实现iterator interface么?
回复

使用道具 举报

全局:
请问楼主 kv 要写码吗
回复

使用道具 举报

全局:
请问楼主kv要写代码吗
回复

使用道具 举报

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

本版积分规则

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