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

Flexport | Senior

🔗
匿名用户-EKGVL  2023-3-20 06:40:43 |倒序浏览

2022(10-12月) 工程类 本科 全职@flexport - 猎头 - Onsite 视频面试  | 🙁 Negative 😐 Average | Fail | 在职跳槽

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

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

x
Phone:

"""
Part 1: can_purchase()
In this game players will have a set of colored tokens (Red, Blue, Green, Black, White). Their objective is to purchase cards using those
tokens.

Cards will have a cost of some number of the above listed colored tokens.
For example a card can cost 2 blue tokens and 1 green token.

If a player has 2 blue tokens and 1 red token they cannot buy the card because they do not have the necessary green currency.
The goal for this part is to implement a function that determines if a card can be purchased by a particular player given the current
state.
How you choose to represent the purchase, state, and function signature is completely up to you.


Part 2: purchase()
Given a “Card” and a “Player” as modeled in part 1, implement a function that is called when a player tries to purchase a card.
This function should update the state of the game to reflect what happens when the card is purchased by the given player.


Part 3: Discounts
Now that we have the ability to purchase cards we want to add value to them. Cards now have a color associated with them.
When attempting to purchase a new card the player can use the cards they have previously bought to count as 1 unit of currency matching
the color of the card. You can use a card once per purchase and it does not consume the card.
For example if you have previously bought two green colored cards and have three green tokens in your wallet you would be able to buy a
card that costs three green and still have two green tokens in your wallet.
Update your current implementation to account for these discounts.


Part 4: Gold Tokens
Let's introduce a new color to our game. Now we have the ability to use Gold tokens.
These tokens are special in that they can be used as any color.
For example if you have 2 blue tokens and 1 gold token you can buy a card that costs 1 blue
and 1 red, or you could buy a card that costs 3 blue by spending this gold token.

Update your current implementation to account for this new token type.
"""

Onsite:

Coding:


"""
Task 1: Direct Flights
Instruction
To begin implementing our booki
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
t need a table for tracking the reservations. So I said if you don't track who owns the reservation, then people could claim each other's reservations and it wouldn't t truly be a reservation. He seemed ticked off.

I know he failed me. I have no idea why he bothered interviewing me.

If you get CK as your interviewer, just reschedule until you get someone else.

The interviewer was a jerk.


Behavioral:

Talk about a project you're proud of.

Discuss 1 large deliverable in this work.

Where was I starting from, what was the tech like, what was the goal.

The group I was working with. Responsibilities.

Engineers I was working with.

First steps to approaching the project.

High level design proposal and review.

How did I get feedback during the design? What was the challenge during design?

Tradeoffs. How much did tradeoffs disrupt the project?

How do I plan and execute the rest of the rollout.

How did I rally other engineers in the face of a challenge.

A project that I worked on that didn't go well.

How do I make a diverse and inclusive workplace?

How do I onboard to a new engineering system?

Example of conflict during a project.

A time where I created a process change.

A time I got constructive feedback.


What do you hope to learn by working at Flexport?

评分

参与人数 3大米 +27 收起 理由
ahenry015 + 1 很有用的信息!
whatevername + 1 给你点个赞!
匿名用户-NNXDF + 25

查看全部评分


上一篇:Entry level backend 22-23 / Intern OA
下一篇:西格玛店面
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-XH3C0  2023-3-20 07:55:33
thanks, can you briefly tell us how you design the Open table system design question?
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-XH3C0  2023-3-20 08:00:35
looks like the Flight booking system can be a OOD Coding question or System Design Question
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-EKGVL  2023-3-20 09:33:59
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-EKGVL  2023-3-20 09:38:08
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-BJCOL  2023-3-20 18:01:16
you copied my post from blind XD
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-EKGVL  2023-3-21 02:32:42
匿名用户 发表于 2023-3-20 03:01
you copied my post from blind XD

? This is OC.
回复

使用道具 举报

🔗
sssphon 2023-3-23 01:37:43 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

🔗
sssphon 2023-3-23 01:51:44 | 只看该作者
全局:
您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 100 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
回复

使用道具 举报

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

本版积分规则

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