Just wondering what the culture and morale is looking like, as well as interview prep.
System Design: - Design a real-time pizza delivery tracker. Coding: Dominino's offers n pizzas along with m toppings. A customer plans to spend around x coins. The customer should order exactly one pizza, and may order zero, one or two toppings. Each topping may be ordered only once. Given the lists of prices of available pizzas and toppings, what is the price closest to x of possible orders? Here, a price said closer to x when the difference from x is the smaller. Note the customer is allowed to make an order that costs more than x. Input: pizzas = [800, 850, 900], toppings = [100, 150], x = 1000 Output: 1000 Input: pizzas = [850, 900], toppings = [200, 250], x = 1000 Output: 1050 Input: pizzas = [1100, 900], toppings = [200], x = 1000 Output: 900 Input: pizzas = [800, 800, 800, 800], toppings = [100], x = 1000 Output: 900
Sounds great, you didn't happen to have any more front-end based questions, did you? I believe they're going to ask me some CSS as well.
I can solve it in ((1e9 + 7) ** (m * n)) ** x time. Is that good enough?
How do you center 100 pepperoni slices on a 12 inch square pizza?
Is this for a frontend position?
Tech Industry
Yesterday
1938
Amazon ruined my mental health
AMA
Yesterday
4993
Cheated on husband
2024 Presidential Election
8h
351
ALERT: House Dems just voted UNANIMOUSLY to give illegals representation in Congress AND the Electoral College.
Tech Industry
Yesterday
2516
Tech is dead. Choose a different career
Ask Blinders
10h
877
Why don’t India and Pakistan like each other? I am white and don’t understand
Not as elite as Albertsons.
Not sure. I know an Albertsons guy who got rejected from dominoes on phone screen