"we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"
Kishor J. - "we can use two pointer + set like maintain i,j and also insert jth character to set like while set size is equal to our window j-i+1 then maximize our answer and increase jth pointer till last index"See full answer
"This is a great question! If you don't mind, I'd love to list 3 strengths and weaknesses then dive a little deeper on one of each of them.
I think my three greatest strengths are:
Empathy
Openness to feedback
Drive
And three weaknesses I have been working to strengthen are:
Sometimes my desire to achieve can put me at risk of overcommitting
Communicating status to the right stakeholders at the appropriate time
Creating detailed and strategic lists of priorities so I can meet th"
Adam M. - "This is a great question! If you don't mind, I'd love to list 3 strengths and weaknesses then dive a little deeper on one of each of them.
I think my three greatest strengths are:
Empathy
Openness to feedback
Drive
And three weaknesses I have been working to strengthen are:
Sometimes my desire to achieve can put me at risk of overcommitting
Communicating status to the right stakeholders at the appropriate time
Creating detailed and strategic lists of priorities so I can meet th"See full answer
"Arrays.sort(inputarray)
sliding window with a size of 2.
Check for the sum in the sliding window.
subtract the start when window moves"
Sridhar R. - "Arrays.sort(inputarray)
sliding window with a size of 2.
Check for the sum in the sliding window.
subtract the start when window moves"See full answer
"I've worked on projects not quite like this, but very similar, in the past - I'll borrow from that to answer this:
The Broader Context
this problem doesn't specify the type of data we're working with, or how it's being ingested
to align with my personal background, I'll assume a picture that lends this problem well to being a computer vision (abbreviated "CV") related question:
let's say we have a conveyor belt in a waste facility, which sequentially carries a stream of waste
w"
Zain R. - "I've worked on projects not quite like this, but very similar, in the past - I'll borrow from that to answer this:
The Broader Context
this problem doesn't specify the type of data we're working with, or how it's being ingested
to align with my personal background, I'll assume a picture that lends this problem well to being a computer vision (abbreviated "CV") related question:
let's say we have a conveyor belt in a waste facility, which sequentially carries a stream of waste
w"See full answer
Machine Learning Engineer
System Design
+1 more
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"
O(n) time, O(1) space
from typing import List
def maxsubarraysum(nums: List[int]) -> int:
if len(nums) == 0:
return 0
maxsum = currsum = nums[0]
for i in range(1, len(nums)):
currsum = max(currsum + nums[i], nums[i])
maxsum = max(currsum, max_sum)
return max_sum
debug your code below
print(maxsubarraysum([-1, 2, -3, 4]))
`"
Rick E. - "
O(n) time, O(1) space
from typing import List
def maxsubarraysum(nums: List[int]) -> int:
if len(nums) == 0:
return 0
maxsum = currsum = nums[0]
for i in range(1, len(nums)):
currsum = max(currsum + nums[i], nums[i])
maxsum = max(currsum, max_sum)
return max_sum
debug your code below
print(maxsubarraysum([-1, 2, -3, 4]))
`"See full answer
"This happened in my previous job in [company X]. I was the Single threaded Owner for a new business growth initiative from this company to launch a new eCommerce supply chain solution that X was planning to experiment.
Being the single threaded owner, I was accountable for researching the customer problems and coming up with business goals and requirements, including identifying the engineering headcount needed to solve the customer pain point and eventually execute it across 11 different produ"
VictorSage - "This happened in my previous job in [company X]. I was the Single threaded Owner for a new business growth initiative from this company to launch a new eCommerce supply chain solution that X was planning to experiment.
Being the single threaded owner, I was accountable for researching the customer problems and coming up with business goals and requirements, including identifying the engineering headcount needed to solve the customer pain point and eventually execute it across 11 different produ"See full answer
"We've identified the problem as a Design a Product question. Use the following framework for tackling these types of questions:
Ask Clarifying Questions
Identify users, behaviors, and pain points
State product goal
Identify current solutions
Brainstorm new solutions
Evaluate solutions
Measure success
Summarize
We'll go through each of these step by step.
Ask Clarifying Questions
The PM interview isn't about your ability to come up w"
Exponent - "We've identified the problem as a Design a Product question. Use the following framework for tackling these types of questions:
Ask Clarifying Questions
Identify users, behaviors, and pain points
State product goal
Identify current solutions
Brainstorm new solutions
Evaluate solutions
Measure success
Summarize
We'll go through each of these step by step.
Ask Clarifying Questions
The PM interview isn't about your ability to come up w"See full answer
"The product the user bought
The category the product belongs to
The name of the customer
The address of the customer
The payment option selected by the customer
The delivery option
The date and time of purchase
Did the customer use the search filter or scan through different pages before they could find the product they want to buy"
Olawale F. - "The product the user bought
The category the product belongs to
The name of the customer
The address of the customer
The payment option selected by the customer
The delivery option
The date and time of purchase
Did the customer use the search filter or scan through different pages before they could find the product they want to buy"See full answer
"This is a Diagnosis problem. To answer this question, we suggest you use our framework (along with the TROPIC method) to be as thorough as possible. The framework is as follows:
Ask clarifying questions
List potential high level reasons
Gather Context (TROPIC)Time
Region
Other features / products (internal)
Platform
Industry / Competition
Cannibalization
Establish a theory of probable cause
Test theories
Propose solutions
Summarize
As"
Exponent - "This is a Diagnosis problem. To answer this question, we suggest you use our framework (along with the TROPIC method) to be as thorough as possible. The framework is as follows:
Ask clarifying questions
List potential high level reasons
Gather Context (TROPIC)Time
Region
Other features / products (internal)
Platform
Industry / Competition
Cannibalization
Establish a theory of probable cause
Test theories
Propose solutions
Summarize
As"See full answer
"We can use a pool of memory where each index we can store the parent of current index then we can use same lca approach for array instead of pointers."
Sourav K. - "We can use a pool of memory where each index we can store the parent of current index then we can use same lca approach for array instead of pointers."See full answer