注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
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 bookit 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? |