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

Walmart - Karat面试

全局:

2022(4-6月) 码农类General 硕士 全职@walmartlabs - Other - 技术电面 视频面试  | 😐 Neutral 😐 Average | Pass | 在职跳槽

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

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

x
求大米求大米~~ 感谢大家求大米!!
Karat 总共60分钟,全程开摄像头。
1.自我介绍

2. 10分钟cs知识快问快答,5个领域选2个回答,
我选
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
度。
  1. You're developing a system for scheduling advising meetings with students in a Computer Science program. Each meeting should be scheduled when a student has completed 50% of their academic program.

  2. Each course at our university has at most one prerequisite that must be taken first. No two courses share a prerequisite. There is only one path through the program.

  3. Write a function that takes a list of (prerequisite, course) pairs, and returns the name of the course that the student will be taking when they are halfway through their program. (If a track has an even number of courses, and therefore has two "middle" courses, you should return the first one.)

  4. Sample input 1: (arbitrarily ordered)
  5. pairs1 = [
  6.     ["Foundations of Computer Science", "Operating Systems"],
  7.     ["Data Structures", "Algorithms"],
  8.     ["Computer Networks", "Computer Architecture"],
  9.     ["Algorithms", "Foundations of Computer Science"],
  10.     ["Computer Architecture", "Data Structures"],
  11.     ["Software Design", "Computer Networks"]
  12. ]

  13. In this case, the order of the courses in the program is:
  14.     Software Design
  15.     Computer Networks
  16.     Computer Architecture
  17.     Data Structures
  18.     Algorithms
  19.     Foundations of Computer Science
  20.     Operating Systems

  21. Sample output 1:
  22.     "Data Structures"

  23. Sample input 2:
  24. pairs2 = [
  25.     ["Algorithms", "Foundations of Computer Science"],
  26.     ["Data Structures", "Algorithms"],
  27.     ["Foundations of Computer Science", "Logic"],
  28.     ["Logic", "Compilers"],
  29.     ["Compilers", "Distributed Systems"],
  30. ]

  31. Sample output 2:
  32.     "Foundations of Computer Science"

  33. Sample input 3:
  34. pairs3 = [
  35.     ["Data Structures", "Algorithms"],
  36. ]

  37. Sample output 3:
  38.     "Data Structures"

  39. All Test Cases:
  40. halfway_course(pairs1) => "Data Structures"
  41. halfway_course(pairs2) => "Foundations of Computer Science"
  42. halfway_course(pairs3) => "Data Structures"

  43. Complexity analysis variables:

  44. <div>n: number of pairs in the input</div>
复制代码
求大米求大米~~ 感谢大家!求大米!!



评分

参与人数 4大米 +15 收起 理由
lele + 1 赞一个
Falldawn + 1 给你点个赞!
匿名用户-RCZGQ + 12
mad_air + 1 很有用的信息!

查看全部评分


上一篇:灵应店面极佳体验
下一篇:快乐退货VO挂经
全局:
匿名用户 发表于 2025-04-05 09:31:29
请问redo是什么意思?和karat没面好重面吗?怎么要求redo?谢谢!
redo就是可以request再做一次,我当时是可以的,给帮你schedule的那个人发邮件就行,这个面试出结果很快你可以问问过没过,没过的话可以申请redo一次
回复

使用道具 举报

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

使用道具 举报

全局:
想问一下楼主是什么时间参加的karat 面试呀? 我刚刚面完觉得coding 好难啊,第一道题还行,第二题查了一下竟然是leetcoe hard,我怀疑跟面试官有关。我想redo面试, 问问看约什么时间面试或许能遇到比较简单的面试官。感谢楼主!
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-X5Q5A  2022-5-29 11:49:08
这个题目就是把一个linkelist build出来 然后找中间点的意思嘛
回复

使用道具 举报

🔗
 楼主| 铅笔小娜 2022-6-2 02:59:51 | 只看该作者
全局:
匿名者 发表于 2022-5-28 20:49
这个题目就是把一个linkelist build出来 然后找中间点的意思嘛

嗯嗯是的呢
回复

使用道具 举报

🔗
Leslie412413 2022-6-10 14:43:55 | 只看该作者
全局:
楼主这题有什么好办法吧头节点一下子找到么?
回复

使用道具 举报

🔗
454400098 2022-6-16 07:22:00 | 只看该作者
全局:
需要建linked list吗,感觉把所有课pair都存hashmap也可以
回复

使用道具 举报

🔗
louisgogogo 2022-7-16 14:37:23 | 只看该作者
全局:
楼主ON SITE了吗? 2轮面些什么?
回复

使用道具 举报

🔗
zw14769 2022-8-1 23:39:06 | 只看该作者
全局:
我做了两道半,希望有后续
回复

使用道具 举报

🔗
zw14769 2022-8-12 01:35:39 | 只看该作者
全局:
微信用户_9c1385b 发表于 2022-8-10 16:36
想问一下你是什么时间参加的karat 面试呀? 我刚刚面完觉得coding 好难啊,第一道题还行,第二题查了一下 ...

我上上周,就是地理出现过的题目,可以redo,问题不大
回复

使用道具 举报

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

本版积分规则

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