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

citadel oa 总结

全局:

2023(7-9月) 码农类General 硕士 全职@citadel - 网上海投 - 技术电面  | 😐 Neutral 😐 Average | Fail | 应届毕业生

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

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

x
本帖最后由 一只卷毛猫 于 2022-9-3 22:53 编辑

总结了一下citadel 的oa题目,我抽到的题都在期中,求加米!
1. Sprint Training (力口伞气领)**

Imagine there are n points along a straight trail, while a runner run sprints of intervals between those point.The training plan is an array a[], which implies the runner should run from point a to point a[i+1].

`For example, given n = 10, a = [2, 4, 1, 2].
The runner should run from point 2 to point 4,
then turn back from point 4 to point 1,
and then from point 1 to point 2.`

Find the point that visited the most by runner after he finished training, i.e. in above example, point 2 is the most visited.If more than one point are visited the most, find the point with minimum index.

2. visiting cities
[img]https://s3.us-west-2.amazonaws.com/secure.notion-static.com/1c4b4d42-1370-4352-8d33-c5d6bfd068c3/Untitled.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45EIPT3X45%2F20220904%2Fus-
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies

**So you need to compute the odd count**
even ^ any number  = even
odd ^ any number =odd
even * even = even
odd * odd = odd
5. Shrink Number Line (俐抠久要林)
6. Subarray sum divisible by k(俐抠久起司)
7. longest subarray with sum <= k 滑动窗口
8. Do the belong

Given three corner points of a triangle, and one more point P. Write a function to check whether P lies within the triangle or not.
For example, consider the following program, the function should return true for P(10, 15) and false for P'(30, 15)
[/i]

评分

参与人数 15大米 +48 收起 理由
Liujy + 1 很有用的信息!
tomatohh + 1 很有用的信息!
bryanjhy + 15 给你点个赞!
小亩_9643714 + 1 很有用的信息!
fsywudi4 + 1 很有用的信息!

查看全部评分


上一篇:9/3 数学能行 oa
下一篇:citadel intern oa
本楼:
全局:
omg多谢!
回复

使用道具 举报

🔗
得得Pen 2022-9-10 07:23:48 | 只看该作者
全局:
2的图好像挂了,可以重新上传一下吗
回复

使用道具 举报

🔗
 楼主| 一只卷毛猫 2022-9-11 04:53:11 | 只看该作者
全局:
回复

使用道具 举报

🔗
 楼主| 一只卷毛猫 2022-9-11 04:53:36 | 只看该作者
全局:
得得Pen 发表于 2022-9-9 19:23
2的图好像挂了,可以重新上传一下吗

已发,你看看能不能看到
回复

使用道具 举报

🔗
peanutbutterZ 2023-7-27 16:27:45 | 只看该作者
全局:
话说直接发利口题号会被封杀吗2333
回复

使用道具 举报

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

本版积分规则

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