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

c1 capital one OA codesignal, 2025/Jan

全局:

2025(1-3月) 码农类General 硕士 全职@Capital One - 网上海投 - 在线笔试  | 😃 Positive 😣 Hard | WaitList | 在职跳槽
  • given a list of int, return number of int where: (1) contain at least two '7' (3) can be divided by 3; e.g., 777 or 771
  • give a text (a list of strings/lines), output the branch name with most unique files (guarantee no tie)
    for example,
    switch branch1
    push file1
    push file2
    switch branch 2
    push file1
    push file2
    ==> parse the text, dict {branch_name:  a set of unique file names}
  • input a 2D matrix of a terrain, and a starting coordinate (row idx, col idx) of water to flood the area, output a matrix of same size. of the "time" when each spot get wet.
    ==> BFS, layer by layer diffuse out, time++ in the while loop, dedup the BFS queue
  • 我只做出N^2暴力解 跪求更快的解法 maybe sort then sweep line??!!
    In a distant univ
    您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    使用VIP即刻解锁阅读权限或查看其他获取积分的方式
    游客,您好!
    本帖隐藏的内容需要积分高于 188 才可浏览
    您当前积分为 0。
    VIP即刻解锁阅读权限 或 查看其他获取积分的方式
    Unlock interview details and practice with AI
    Popular Interview Questions from Top Companies
    nting coordinates of the crystals. It is guaranteed that:
    Guaranteed constraints:
    1. 1 ≤ centers.length ≤ 4⋅10
    复制代码
    1. 4
    复制代码
    ,
    1. centers[i].length = 2
    复制代码
    ,
    1. -10
    复制代码
    1. 5
    复制代码
    1. ≤ centers[i][j] ≤ 10
    复制代码
    1. 5
    复制代码
    .
    • The maximum absolute value of coordinates is
      1. 10
      复制代码
      1. 4
      复制代码
      .
    • The number of crystals does not exceed
      1. 4⋅10
      复制代码
      1. 4
      复制代码
      .
    • Different crystals may occupy the same coordinates.
  • [output] integer
    The number of intersecting crystal pairs.

本帖子中包含更多资源

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

x

评分

参与人数 3大米 +13 收起 理由
elee234 + 1 给你点个赞!
诗意地栖息 + 2 很有用的信息!
匿名用户-WFWMY + 10 欢迎分享你知道的情况,会给更多大米奖励!

查看全部评分


上一篇:Snap VO 挂经
下一篇:Bloomberg 新鲜挂经
推荐
jtaeric 2025-3-7 14:23:32 | 只看该作者
全局:
根据各点的地址,创建一个[Max(x),Max(y)]的2D array,fill(0)。每个点在2dArray[x,y]上+1。然后按照二楼的思路,每个点周围25个candidate检查一遍,得到临近点的个数。所有点都查找完后总数/2。就是O(25N)了。不过这样空间占用大
回复

使用道具 举报

🔗
vincent_great 2025-1-24 11:50:40 | 只看该作者
全局:
最后一题直接从答案入手就行吧。。。
对于(x, y),直接从(x-2, y-2) check 到(x+2, y+2),一共有25个candidate。。。
这样就是 O(25N) ~ O(N)
回复

使用道具 举报

🔗
 楼主| york5566 2025-1-24 14:04:48 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限 或 查看其他获取积分的方式
Unlock interview details and practice with AI
Popular Interview Questions from Top Companies
回复

使用道具 举报

🔗
icetree 2025-6-1 04:05:14 | 只看该作者
全局:
Was this for SDE intern role?
回复

使用道具 举报

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

本版积分规则

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