📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
回复: 3
跳转到指定楼层
上一主题 下一主题
收起左侧

死磕OA

🔗
匿名用户-6Q4WH  2022-7-23 07:38:05 |倒序浏览

2022(7-9月) 码农类General 硕士 全职@cisco - 网上海投 - 在线笔试  | 😃 Positive 😣 Hard | Other | 在职跳槽

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

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

x
7月6日收到OA,7日完成,至今2周过去了没有任何结果,发邮件过去询问也不回复。
2个小时一共3题,第一题非常简单,以至于我现在怎么也想不起来了,反正即使从来不刷题也应该能做出来。
第二题力扣妻儿,稍有变化,去掉了replace,只考虑insert和delete。
第三题没见过,大概是这样的:
Approximate Matching
You are given 3 strings: text, pre_text and post_text. Let L be a substring of text.
For each substring L of text, we define pattern_score as follows:
* pre_text_pattern_score = highest n, such that first n characters of L are equal to the last n characters of pre_text and occur in the same exact order.
* post_text_pattern_score = highest n such that last n characters of L are equal to the first n characters of post_text and occur in the same exact order.
* pattern_score = pre_text_pattern_score + post_text_pattern_score
For example, if L = "nothing", pre_text = "bruno", and post_tex
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
t in mapScore:
                    mapScore[substring] = (patternScore, preScore)
                else:
                    if patternScore > mapScore[substring][0]:
                        mapScore[substring] = (patternScore, preScore)
                    elif patternScore == mapScore[substring][0] and preScore > mapScore[substring][1]:
                        mapScore[substring] = (patternScore, preScore)

        result = sorted(mapScore.items(), key = lambda x: (-x[1][0], -x[1][1], x[0]))
        return result[0][0]
感觉还是有点难度

评分

参与人数 2大米 +15 收起 理由
momo07 + 1 给你点个赞!
匿名用户-ZTD2M + 14

查看全部评分


上一篇:热带雨林SDE1社招VO过经
下一篇:Uber 电面 + VO
🔗
xiuyuan7 2022-7-25 13:25:30 | 只看该作者
全局:
一定要用java写吗?可以选择用Python吗?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-6Q4WH  2022-7-25 19:28:46
xiuyuan7 发表于 2022-7-25 02:25
一定要用java写吗?可以选择用Python吗?

随便啊,我不就是选的Python写的嘛
回复

使用道具 举报

🔗
hy950921 2022-8-6 11:08:52 | 只看该作者
全局:
看起来是白嫖OA,投了两个居然同时发了2个,不想做了
回复

使用道具 举报

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

本版积分规则

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