回复: 4
收起左侧

Point72 SDE OA

本楼:   👍  0
0%
0%
0   👎
全局:   197
96%
4%
8

2025(7-9月) 码农类General 硕士 全职@point72 - 网上海投 - 在线笔试  | 😐 Neutral 😫 Hardest | WaitList | 在职跳槽

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

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

x
本帖最后由 zyyymsfd
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
,但是我没想出来。
  1. **Beauty of Array**

  2. The beauty of an array `a` of length `m` is defined as the number of integers `i` (0 ≤ i < m) such that a[i] = i.

  3. Given an array `arr` of n integers, find the maximum possible beauty of the array after performing the following operation any number of times:

  4. * Choose some i (0 ≤ i < length of the array) and delete arr[i], without changing the order of the remaining elements.

  5. ---

  6. ### **Function Description**

  7. Complete the function `maximizeBeauty` in the editor below.

  8. `maximizeBeauty` has the following parameter:

  9. * `int arr[n]`: the given array

  10. **Returns**

  11. * `int`: the maximum possible beauty of the array

  12. ---

  13. ### **Constraints**

  14. * 1 ≤ n ≤ 2000
  15. * 1 ≤ arr[i] ≤ 10^9

  16. ---

  17. ### **Example**

  18. ```
  19. arr = [1,3,2,5,4,5,3]

  20. One optimal sequence of operations is:

  21. 1. Choose i = 2, delete arr[2] = 3 → arr = [1,3,2,5,4,5,3]
  22. 2. Choose i = 6, delete arr[6] = 3 → arr = [1,2,5,4,5]

  23. The beauty of arr is 4 since arr[0]=1, arr[1]=2, arr[3]=4, arr[4]=5.

  24. Return 4.
  25. ```

  26. Note that there can be more than one final array with maximum beauty.
复制代码

评分

参与人数 2大米 +6 收起 理由
清道神君 + 5 欢迎分享你知道的情况,会给更多大米奖励!
buzz + 1 赞一个

查看全部评分


上一篇:Amazon DE OA 面经
下一篇:IBM General SDE OA
地里匿名用户
匿名用户-LIUJD  2025-7-6 05:51:18
本楼:   👍  0
0%
0%
0   👎
请问这是hackerrank的take home OA还是电面呀?
回复

使用道具 举报

 楼主| zyyymsfd 2025-7-7 14:16:19 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   197
96%
4%
8
匿名用户 发表于 2025-7-5 14:51
请问这是hackerrank的take home OA还是电面呀?

这个是OA
回复

使用道具 举报

地里匿名用户
匿名用户-GLWPC  5 天前
本楼:   👍  0
0%
0%
0   👎
你好lz, 我也收到他家的OA.

请问你是申请哪个岗位?
总共也是3题吗? 你对其他题还有印象不

谢谢
回复

使用道具 举报

 楼主| zyyymsfd 5 天前 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   197
96%
4%
8
我申的是一个general SDE。总共也是3题。第一题很简单,五分钟以内搞定,我已经忘了具体是啥了,反正是leetcode easy。第二题是一堆选择题。
回复

使用道具 举报

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

本版积分规则

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