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

confluent VO面经

🔗
匿名用户-XMDVD  2021-11-9 22:42:43 |倒序浏览

2021(10-12月) 码农类General 本科 全职@confluent - 猎头 - Onsite  | 😐 Neutral 😐 Average | Other | 在职跳槽

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

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

x
本帖最后由 匿名 于 2021-11-9 10:36 编辑

车轮战一天之内面掉的 team是cloud traffic 所以内容可能和其他组不大一样。。

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


感觉engineer的氛围真的非常浓厚 进去不知道为什么觉得找到了一个study group的感觉 面试官都可可爱爱的
今天下午出offer结果 大概率会挂吧
system那一轮的时候脑子没了 算错了几个参数 说错了几个细节 可能会大扣分 不过是很好的公司

以及 人生苦短 求加点儿米~



补充内容 (2021-11-10 04:15 +8:00):
结果出了 果然挂在system轮
大家面的话多准备一些吧

评分

参与人数 5大米 +7 收起 理由
juliaxx + 1 很有用的信息!
catxiaot + 1 给你点个赞!
bryanjhy + 3 给你点个赞!
conover + 1 给你点个赞!
LXU + 1 赞一个

查看全部评分


上一篇:AWS SDE I VO 面筋
下一篇:德意志银行2022 GSA quant intern面经+ offer!!!
推荐
瀚子帝 2024-4-29 05:44:30 | 只看该作者
全局:
匿名用户 发表于 2024-4-28 16:16
谢谢!但是代码还是自己写一遍再去面试吧

对的 我自己写了一遍 只是没有参考不知道写的怎么样
  1. class Task:
  2.     def __init__(self, runnable, run_time):
  3.         self.runnable = runnable  # Function to be executed
  4.         self.run_time = run_time  # Scheduled time for the task to run

  5.     def __lt__(self, other):
  6.         # Defines the less than operator for priority queue, tasks compare based on run_time
  7.         return self.run_time < other.run_time

  8. class DelayBlockingQueue:
  9.     def __init__(self):
  10.         self.pq = []  # The priority queue (min-heap) to store tasks
  11.         self.lock = threading.Condition()  # Condition variable to synchronize access to the queue

  12.     def add(self, runnable, delay_time):
  13.         run_time = time.time() + delay_time  # Calculate future run time for the task
  14.         task = Task(runnable, run_time)
  15.         with self.lock:
  16.             heapq.heappush(self.pq, task)  # Add the task to the priority queue
  17.             # Notify one waiting thread if the new task is the next to run
  18.             if self.pq[0] == task:
  19.                 self.lock.notify()

  20.     def take(self):
  21.         with self.lock:
  22.             while True:
  23.                 while not self.pq or self.pq[0].run_time > time.time():
  24.                     # Calculate time to wait for the next task to be ready or wait indefinitely
  25.                     next_timeout = None if not self.pq else self.pq[0].run_time - time.time()
  26.                     if next_timeout and next_timeout > 0:
  27.                         print(f"{threading.current_thread().name} waiting {next_timeout} seconds")
  28.                     self.lock.wait(timeout=next_timeout)  # Wait for the specified timeout or until notified
  29.                 task = heapq.heappop(self.pq)  # Remove and return the task at the head of the priority queue
  30.                 return task
复制代码
回复

使用道具 举报

全局:
应该是这种吧?
https://leetcode.com/discuss/int ... t-onsite-telephonic好心人给加个米。。。
回复

使用道具 举报

🔗
catxiaot 2022-2-10 12:54:44 | 只看该作者
全局:
3. linux domain deep dive - 去leetcode discuss搜索一下 都在上面

想请问下这个在leetcode discuss里应该怎么搜呀? 感谢分享!
回复

使用道具 举报

🔗
瀚子帝 2024-4-28 05:13:51 | 只看该作者
全局:
楼主可以分享一下task scheduler的code嘛 感谢!已点赞
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-XMDVD  2024-4-29 04:16:37
瀚子帝 发表于 2024-4-27 14:13
楼主可以分享一下task scheduler的code嘛 感谢!已点赞

谢谢!但是代码还是自己写一遍再去面试吧
回复

使用道具 举报

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

本版积分规则

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