阿里国际笔试
今天的笔试大家感觉怎么样,有没有佬分享一下思路
全部评论
过了2.6 中午约的面试,但是为啥就30分钟
第一题超时,第二题10%,第三题没做出来😫
2.25 第三题写完了发现题目看错了 dp应该能写
第三题直接print(n),能过13%
第一题前缀全a,第三题dp过90%,第二题有人有思路吗
过了 1.16,第一题 O(n)做法,Java 还卡常😅用 cpp 写了一遍才 ac
第一题暴力循环,第三题背包dp,第二题没时间了
1.5有希望吗
测试用例过了 结果一提交就不行
第一题java输入输出好坑..
1.44
a出来1.5道能过么😅
相关推荐
11-02 23:28
National University of Singapore 风控 点赞 评论 收藏
分享
球球与墩墩:这不是前端常考的对象扁平化吗,面试官像是前端出来的
const flattern = (obj) => {
const res = {};
const dfs = (curr, path) => {
if(typeof curr === 'object' && curr !== null) {
const isArray = Array.isArray(curr);
for(let key in curr) {
const newPath = path ? isArray ? `${path}[${key}]` : `${path}.${key}` : key;
dfs(curr[key], newPath);
}
} else {
res[path] = curr
}
}
dfs(obj);
return res;
}
查看3道真题和解析 点赞 评论 收藏
分享