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

Indeed Karat Redo

🔗
匿名用户-HPIBB  2022-7-3 08:53:03 |倒序浏览

2022(4-6月) 码农类General 本科 全职@indeed - 猎头 - 技术电面  | 😐 Neutral 😐 Average | Other | 在职跳槽

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

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

x
本帖最后由 匿名 于 2022-7-2 18:03 编辑

2周前第一次Karat,第1题debug用太多时间以致于没时间做第2题,只好redo。
整个面试流程还是和第一次一样,1分钟自我介绍,接着10分钟是5选2,我选的System Internals and OOP:
System Internals:
  • What is context switch? What cause will trigger i
    您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    使用VIP即刻解锁阅读权限或查看其他获取积分的方式
    游客,您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    VIP即刻解锁阅读权限查看其他获取积分的方式
    Unlock interview details and practice with AI
    Curated Interview Questions from Top Companies
    return the list of the coordinates of each letter that found.
    1. /*
    2. After catching your classroom students cheating before, you realize your students are getting craftier and hiding words in 2D grids of letters. The word may start anywhere in the grid, and consecutive letters can be either immediately below or immediately to the right of the previous letter.

    3. Given a grid and a word, write a function that returns the location of the word in the grid as a list of coordinates. If there are multiple matches, return any one.

    4. grid1 = [
    5.     ['c', 'c', 't', 'n', 'a', 'x'],  
    6.     ['c', 'c', 'a', 't', 'n', 't'],  
    7.     ['a', 'c', 'n', 'n', 't', 't'],  
    8.     ['t', 'n', 'i', 'i', 'p', 'p'],  
    9.     ['a', 'o', 'o', 'o', 'a', 'a'],
    10.     ['s', 'a', 'a', 'a', 'o', 'o'],
    11.     ['k', 'a', 'i', 'o', 'k', 'i'],
    12. ]
    13. word1 = "catnip"
    14. word2 = "cccc"
    15. word3 = "s"
    16. word4 = "ant"
    17. word5 = "aoi"
    18. word6 = "ki"
    19. word7 = "aaoo"
    20. word8 = "ooo"

    21. grid2 = [['a']]
    22. word9 = "a"

    23. find_word_location(grid1, word1) => [ (1, 1), (1, 2), (1, 3), (2, 3), (3, 3), (3, 4) ]
    24. find_word_location(grid1, word2) =>
    25.        [(0, 0), (1, 0), (1, 1), (2, 1)]
    26.     OR [(0, 0), (0, 1), (1, 1), (2, 1)]
    27. find_word_location(grid1, word3) => [(5, 0)]
    28. find_word_location(grid1, word4) => [(0, 4), (1, 4), (2, 4)] OR [(0, 4), (1, 4), (1, 5)]
    29. find_word_location(grid1, word5) => [(4, 5), (5, 5), (6, 5)]
    30. find_word_location(grid1, word6) => [(6, 4), (6, 5)]
    31. find_word_location(grid1, word7) => [(5, 2), (5, 3), (5, 4), (5, 5)]
    32. find_word_location(grid1, word8) => [(4, 1), (4, 2), (4, 3)]
    33. find_word_location(grid2, word9) => [(0, 0)]

    34. Complexity analysis variables:

    35. r = number of rows
    36. c = number of columns
    37. w = length of the word
    38. */
    复制代码
    I came up a very close solution but unable to finish debugging before time ran out.

    Hope this helps :)

评分

参与人数 7大米 +22 收起 理由
dundun1990 + 1 赞一个
zxhfrombnu + 1 给你点个赞!
remexllee + 1 给你点个赞!
匿名用户-WK0L9 + 16
kyaniteneo + 1 很有用的信息!

查看全部评分


上一篇:Google L4 VO
下一篇:条纹VO面经 含repo

本帖被以下淘专辑推荐:

  • · Indeed|主题: 76, 订阅: 1
🔗
ivy9199 2022-8-2 08:53:39 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-HPIBB  2022-8-20 14:35:01
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

评分

参与人数 1大米 +1 收起 理由
ivy9199 + 1 很有用的信息!

查看全部评分

回复

使用道具 举报

🔗
hezitaohaha 2022-8-27 08:07:43 | 只看该作者
全局:
匿名用户 发表于 2022-8-20 01:35
回复晚了不好意思,原题的代码我可能有些记错了。
应该是Base obj = new Derived();
问这样initialize ...

感觉你答的是正确的。
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-HPIBB  2022-8-30 01:28:19
hezitaohaha 发表于 2022-8-26 17:07
感觉你答的是正确的。

哈哈是吗,那就好,面试结果也是pass!
回复

使用道具 举报

🔗
lareinaburning 2024-11-14 09:02:55 | 只看该作者
全局:
请问有面经吗
回复

使用道具 举报

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

本版积分规则

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