查看: 2404| 回复: 1
跳转到指定楼层
上一主题 下一主题
收起左侧

[找工就业] 数据砖OA

全局:

2021(10-12月)-CE硕士+fresh grad 无实习或全职 | 网上海投| 码农类General全职@databricks
1.        Reverse digits in pairs输入一个integer,里面的digit两两reverse,如果长度为奇数则最后一位保持不变。第二位数保证不为0
比如:76859 - > 67589. 1point3acres
2.        Palindrome cutting
You are given a string s, consider the following algorithm applied to this string:
1.        Take all the prefixes of the string, and choose the longest palindrome between them.
2.        If this chosen prefix contains at least 2 characters, cut this prefix from s and go back to the first step with the updated string. Otherwise, end the algorithm with the current string s as a result.
Your task is to implement the above algorithm and return its result when applied to string s.. 1point 3acres



3. figure under gravity
4. Min difference of arrays
题目见图片
.

有没有大佬知道第三题怎么做呀😢
以及求好心人加米谢.google  и
. ----

本帖子中包含更多资源

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

x

上一篇:JP Morgan AI intern 面经
下一篇:美国也还是有年龄或者资历bias的
🔗
ai322 2021-1-23 04:11:07 | 只看该作者
全局:
本帖最后由 ai322 于 2021-1-23 04:15 编辑

同求第三题
回复

使用道具 举报

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

本版积分规则

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