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

JumpTrading SWE intern OA

全局:

2023(10-12月) 码农类General 硕士 实习@jumptrading - 网上海投 - 在线笔试  | 😐 Neutral 😐 Average | Other | 应届毕业生

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

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

x
无算法题,三道实际场景应用题,主要考察代码准确性
1. You are required to write a POST API endpoint that is responsible for creating users and saving them into
mocked-up database.
Requirements
In order to satisfy the task's requirements you must implement a POST /users API endpoint which will:
accept std: :string route and payload in JSON format;
accept two properties in the payload: name and age ;
return status code 400 if the route is incorrect (different from /users );
return status code 400 if either name or age is missing;
return status code 400 if either age is not a number or name is not a string;
return status code 400 if name is longer than 32 characters;
return status code 400 if age is less than 16
create a User object using validated data;
call the save function (provided in the header file) if none of the above conditions fail, which will save
the User object in the mocked-up database and return a 201 status code.

2. You are given a string containing a detailed list of files. Your task is to evaluate a simple query on a certain
subset of these files.
The string consists of N lines separated by end-of-line characters (ASCII code 10). Each line contains
information about one file, grouped in five columns: owner, perm, date, size and name (in that order). The
columns (except for the last one) have fixed lengths and are separated by one space. They have the
following formats and meanings:
Column perm has length 3 and contains information about permissions. It contains three
characters: they control respectively whether reading, writing and execution of the file is
permitted. The characters are respectively r, w and x if these operations are permitted;
otherwise they are -.
Column owner has length 6 and contains a string representing the name of the user who
created the file. The name is case sensitive and aligned to the left.
Column size has length 10 and contains the size of the file in bytes. The size is less than 231
bytes and is aligned to the right.
Column date has length 11 and contains the last modification date of the file in the format "dd
MMM yyy". The names of
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
t;,
"10S", "JC" ]
}
Set 5: suit
●Name: suit”
Description: Five cards sharing the same suit; the ranks do not matter. If there are multiple
ways to choose five cards with the same suit, choose any set with the highest suit. The order
of the suits (from the highest to the lowest)is S, H, D, C.
For example, for cards= ["2D", "4D", "6D", "8D","9D", "AC", "KC", "QC", "JC", "7C], one of the correct
results is:
{
set_ name
suit",
selected_ cards" = [ "2D" ,
"4D", ”6D"
"8D","9D" ]
}
Set 6: a triple and a pair
Name: "a triple and a pair"
Description: Five cards, consisting of a triple (three cards of the same rank) and a pair (two
cards of the same rank). If there are multiple ways to choose this set, choose one with the
highest rank of the triple, then one with the highest rank of the pair. The suits do not matter.
For example, for cards = ["10D", "10H", "10C" "2S", "2H", "2D", "JH", "JC"], one of the correct results is:
”set_ name”
= "a triple and a pair"
"selected_ cards" = [ "10D", "10H", "10C", ” JH",“ JC" ]
}

评分

参与人数 4大米 +28 收起 理由
Leslie_ + 1 很有用的信息!
自由的火龙果 + 1 给你点个赞!
liweiC + 1 给你点个赞!
匿名用户-EOTVB + 25 欢迎分享你知道的情况,会给更多大米奖励!

查看全部评分


上一篇:2024 Summer Intern 是不是快开了?
下一篇:Citadel SWE intern OA
地里匿名用户
推荐
匿名用户-O0X0F  2024-4-24 18:51:45
你有被要求只能用C++吗
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-UJAF0  2023-10-26 02:27:43
本帖最后由 匿名 于 2023-10-25 14:28 编辑

请问lz申请的是c++岗位吗? oa时间给的多少? 谢谢
回复

使用道具 举报

🔗
 楼主| why36 2023-10-26 13:36:52 来自APP | 只看该作者
全局:
匿名用户 发表于 2023-10-25 11:27:43
请问lz申请的是c++岗位吗? oa时间给的多少? 谢谢
是的,3题140分钟
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-UJAF0  2023-10-26 22:11:32
why36 发表于 2023-10-26 01:36
是的,3题140分钟

谢谢回复!请问有很多hidden cases吗?祝好运!
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-UJAF0  2023-10-26 22:18:45
请问lz申请的是哪里的岗位?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-Y5VYH  2023-10-27 09:23:37
感谢分享
回复

使用道具 举报

🔗
 楼主| why36 2023-10-27 12:23:35 来自APP | 只看该作者
全局:
匿名用户 发表于 2023-10-26 07:11:32
谢谢回复!请问有很多hidden cases吗?祝好运!
不知道啊,交上去就没了
回复

使用道具 举报

🔗
 楼主| why36 2023-10-29 14:55:05 | 只看该作者
全局:
匿名用户 发表于 2023-10-26 22:18
请问lz申请的是哪里的岗位?

上海zszszs
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-37O76  2025-8-28 04:35:20
你有被要求只能用C++吗
回复

使用道具 举报

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

本版积分规则

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