"If 0's aren't a concern, couldn't we just
multiply all numbers.
and then divide product by each number in the list ?
if there's more than one zero, then we just return an array of 0s
if there's one zero, then we just replace 0 with product and rest 0s.
what am i missing?"
Sachin R. - "If 0's aren't a concern, couldn't we just
multiply all numbers.
and then divide product by each number in the list ?
if there's more than one zero, then we just return an array of 0s
if there's one zero, then we just replace 0 with product and rest 0s.
what am i missing?"See full answer
"\# Definition for a binary tree node.
class TreeNode:
def init(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def maxPathSum(self, root: TreeNode) -> int:
self.max_sum = float('-inf')"
Jerry O. - "\# Definition for a binary tree node.
class TreeNode:
def init(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def maxPathSum(self, root: TreeNode) -> int:
self.max_sum = float('-inf')"See full answer
"SELECT
items.item_category,
SUM(orders.orderquantity) AS totalunitsorderedlast7days
FROM orders
JOIN items
ON orders.itemid = items.itemid
WHERE orders.order_date BETWEEN DATE('now', '-6 days') AND DATE('now')
GROUP BY items.item_category
`"
Salome L. - "SELECT
items.item_category,
SUM(orders.orderquantity) AS totalunitsorderedlast7days
FROM orders
JOIN items
ON orders.itemid = items.itemid
WHERE orders.order_date BETWEEN DATE('now', '-6 days') AND DATE('now')
GROUP BY items.item_category
`"See full answer
"Amazon Prime will generally have a limited group of uploaders rather than a million of them. This should influence the design of the Uploader service as it doesn't need to scale that much. Also the Encoding service role was not too clear"
Nilanjan D. - "Amazon Prime will generally have a limited group of uploaders rather than a million of them. This should influence the design of the Uploader service as it doesn't need to scale that much. Also the Encoding service role was not too clear"See full answer
"I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question.
Clarifying Questions
Is this something we are looking to create Microsoft or are we a startup company etc? >
Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"
Rohan S. - "I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question.
Clarifying Questions
Is this something we are looking to create Microsoft or are we a startup company etc? >
Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"See full answer
"Adding to what Zoe already mentioned:
running a user study with existing customers to understand if they see the proposed design as favorable
running AB testing with users to compare two different designs and decide which one is more favorable (based on a previously determined metrics)"
Vlada J. - "Adding to what Zoe already mentioned:
running a user study with existing customers to understand if they see the proposed design as favorable
running AB testing with users to compare two different designs and decide which one is more favorable (based on a previously determined metrics)"See full answer
"For me the answer looks very broad and general. It would be good the reply is relevant and focus good examples using STAR format. Please let me know your views."
BePostive - "For me the answer looks very broad and general. It would be good the reply is relevant and focus good examples using STAR format. Please let me know your views."See full answer
"using a relational database isn't a good choice for this system! we need more availability here than consistency (CAP theorem)"
Anonymous Capybara - "using a relational database isn't a good choice for this system! we need more availability here than consistency (CAP theorem)"See full answer
"I studied Exponent's TinyURL system design video. My interviewer was asking many detailed questions on API design, schema, as well as data required to store. I found system design questions are bit high level instead of depth. I think should have detail design of API, schema and some additional flavors."
Yag S. - "I studied Exponent's TinyURL system design video. My interviewer was asking many detailed questions on API design, schema, as well as data required to store. I found system design questions are bit high level instead of depth. I think should have detail design of API, schema and some additional flavors."See full answer
"Clarifying Qs:
Design meaning - UI elements, front end requests and backend system architecture
GIFs = standard short animated videos of 1/2 seconds built either using images or videos
Make GIFs = generate gifs from images and videos
Do we want to build the system for a certain volume of requests? Do you want me to consider the scalability part?
I: Assumptions 1,2 & 3 are correct, ignore 3 for now
Users:
User b/w age 18-45 trying to generate GIFs using images(at least 3)"
Shwetang S. - "Clarifying Qs:
Design meaning - UI elements, front end requests and backend system architecture
GIFs = standard short animated videos of 1/2 seconds built either using images or videos
Make GIFs = generate gifs from images and videos
Do we want to build the system for a certain volume of requests? Do you want me to consider the scalability part?
I: Assumptions 1,2 & 3 are correct, ignore 3 for now
Users:
User b/w age 18-45 trying to generate GIFs using images(at least 3)"See full answer
"Would like to ask some clarifying questions:
Is it a digital product?
Yes? Application or website?
Geography we are targeting?
Assuming it is an app.
Are we a new company or startup?
Do we have any tie ups with other companies to reach a wider audience?
Assuming I am the product manager of this application – goal of the application is to encourage voting
more questions:
Are we in the election year? Nearing the voting phase?
If yes, then it will be easier for us to get users fo"
Prerak B. - "Would like to ask some clarifying questions:
Is it a digital product?
Yes? Application or website?
Geography we are targeting?
Assuming it is an app.
Are we a new company or startup?
Do we have any tie ups with other companies to reach a wider audience?
Assuming I am the product manager of this application – goal of the application is to encourage voting
more questions:
Are we in the election year? Nearing the voting phase?
If yes, then it will be easier for us to get users fo"See full answer