"Situation: COVID has impacted everyone's lives, especially small businesses. Earlier this year, during the second lockdown in Malaysia, it was estimated that 50%-70% of small businesses have closed.
It got me thinking, beyond the existing training programmes, what can my company do to support small businesses?
Task:
So, I took the initiative to gather our Comms and Government Affairs team, to work together and explore how we can:
1) meaningfully demonstrate our company's commitment in"
Judy W. - "Situation: COVID has impacted everyone's lives, especially small businesses. Earlier this year, during the second lockdown in Malaysia, it was estimated that 50%-70% of small businesses have closed.
It got me thinking, beyond the existing training programmes, what can my company do to support small businesses?
Task:
So, I took the initiative to gather our Comms and Government Affairs team, to work together and explore how we can:
1) meaningfully demonstrate our company's commitment in"See full answer
"I will use the following approach for this situation:
Understand Current Status of the Program: Program Goals, Schedule, How many teams, what are their deliverables, dependencies between teams
Team level view of progress: Through tools like Burn down charts, Gantt charts etc. Identify laggards (lagging teams).
Trend analysis for lagging teams: Understand at what point, the decline started.
If the decline has started around same time, then following may be the potential issues:
-"
Saket S. - "I will use the following approach for this situation:
Understand Current Status of the Program: Program Goals, Schedule, How many teams, what are their deliverables, dependencies between teams
Team level view of progress: Through tools like Burn down charts, Gantt charts etc. Identify laggards (lagging teams).
Trend analysis for lagging teams: Understand at what point, the decline started.
If the decline has started around same time, then following may be the potential issues:
-"See full answer
"I had multiple RCA to complete and each one had a deadline but the process to complete them wasn't streamlined which cause some of them to miss SLA and point of contact felt frustrated as she has no information to give to customer. I received feedback that what blocked me to move forward on those and how can I do better next time?"
Anjesh D. - "I had multiple RCA to complete and each one had a deadline but the process to complete them wasn't streamlined which cause some of them to miss SLA and point of contact felt frustrated as she has no information to give to customer. I received feedback that what blocked me to move forward on those and how can I do better next time?"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
Engineering Manager
System Design
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Even more faster and vectorized version, using np.linalg.norm - to avoid loop and np.argpartition to select lowest k. We dont need to sort whole array - we need to be sure that first k elements are lower than the rest.
import numpy as np
def knn(Xtrain, ytrain, X_new, k):
distances = np.linalg.norm(Xtrain - Xnew, axis=1)
k_indices = np.argpartition(distances, k)[:k] # O(N) selection instead of O(N log N) sort
return int(np.sum(ytrain[kindices]) > k / 2.0)
`"
Dinar M. - "Even more faster and vectorized version, using np.linalg.norm - to avoid loop and np.argpartition to select lowest k. We dont need to sort whole array - we need to be sure that first k elements are lower than the rest.
import numpy as np
def knn(Xtrain, ytrain, X_new, k):
distances = np.linalg.norm(Xtrain - Xnew, axis=1)
k_indices = np.argpartition(distances, k)[:k] # O(N) selection instead of O(N log N) sort
return int(np.sum(ytrain[kindices]) > k / 2.0)
`"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
"Which one I critical, is the erratic change in the delivery cycle is one you need to investigate and further deep dive into to find the root cause"
Vijay S. - "Which one I critical, is the erratic change in the delivery cycle is one you need to investigate and further deep dive into to find the root cause"See full answer
"My Answer. Please let me know your feedback.
I have led many projects throughout my career. So, whenever I lead the project, I first try to clarify the goals and values delivered. For example, I was in charge of Data Analytics projects at my employment at a Startup. The team’s goal was launching the MVP. First, I discussed with the CEO to define the clear goal and scope for each of the projects.
Next, I identified all the key stakeholders and received their inputs on the project's different a"
Balaji G. - "My Answer. Please let me know your feedback.
I have led many projects throughout my career. So, whenever I lead the project, I first try to clarify the goals and values delivered. For example, I was in charge of Data Analytics projects at my employment at a Startup. The team’s goal was launching the MVP. First, I discussed with the CEO to define the clear goal and scope for each of the projects.
Next, I identified all the key stakeholders and received their inputs on the project's different a"See full answer
"Clarification:
Are we talking of Amazon as an entity in whole (or) Amazon E-commerce ?
I would like to use overlap across following buckets with emphasis
on current product & markets, Future adjacencies and expansions, strengths
barrier to entry in the markets either way Amazon Intuit
Products - Considering Amazon as a whole - Devices - AWS - E-Commerce - Music - Video - E-Books - All other services, currently there is no overlap between the use-cases and services offered"
Pm P. - "Clarification:
Are we talking of Amazon as an entity in whole (or) Amazon E-commerce ?
I would like to use overlap across following buckets with emphasis
on current product & markets, Future adjacencies and expansions, strengths
barrier to entry in the markets either way Amazon Intuit
Products - Considering Amazon as a whole - Devices - AWS - E-Commerce - Music - Video - E-Books - All other services, currently there is no overlap between the use-cases and services offered"See full answer
"The user awakes Alexa by saying the "Alexa word"
Device starts recording audio from the user, and streaming it to the Alexa Cloud Service
The recorded audio stream is sent to the ASR (Automatic Speech Recognition) system
ASR returns the words and the order of the words in the audio stream, and sends this information to NLU (Natural Language Understanding)
NLU returns the intent of the audio stream, and sends it to Alexa Skill
If the intent triggers a "play" directive (e.g. turn"
Kai W. - "The user awakes Alexa by saying the "Alexa word"
Device starts recording audio from the user, and streaming it to the Alexa Cloud Service
The recorded audio stream is sent to the ASR (Automatic Speech Recognition) system
ASR returns the words and the order of the words in the audio stream, and sends this information to NLU (Natural Language Understanding)
NLU returns the intent of the audio stream, and sends it to Alexa Skill
If the intent triggers a "play" directive (e.g. turn"See full answer
"During my internship at Inceptra Analytics, our team was working on improving the monthly reporting process for the operations department. I proposed switching from manual Excel reports to a Power BI dashboard to automate and visualize key metrics. However, some team members were hesitant—they felt the current process, although tedious, was more familiar and controllable. My task was to get buy-in from the team to adopt a more efficient reporting method without causing disruption or resistance."
Dhruv M. - "During my internship at Inceptra Analytics, our team was working on improving the monthly reporting process for the operations department. I proposed switching from manual Excel reports to a Power BI dashboard to automate and visualize key metrics. However, some team members were hesitant—they felt the current process, although tedious, was more familiar and controllable. My task was to get buy-in from the team to adopt a more efficient reporting method without causing disruption or resistance."See full answer
"I think rapport with the team is key to deciding what one of these members can do that would bring more development capability to him, the team and the project.
Analyzing the skill and attitude of my team members in advance and putting them in the role where they are strongest and happiest has been an important factor in my success stories.
Taking care to identify a potential leader in the team will make it evolve faster as well.
So this is how I make decisions when forming a squad for a spec"
Sueudo G. - "I think rapport with the team is key to deciding what one of these members can do that would bring more development capability to him, the team and the project.
Analyzing the skill and attitude of my team members in advance and putting them in the role where they are strongest and happiest has been an important factor in my success stories.
Taking care to identify a potential leader in the team will make it evolve faster as well.
So this is how I make decisions when forming a squad for a spec"See full answer
"
from typing import List
def getnumberof_islands(binaryMatrix: List[List[int]]) -> int:
if not binaryMatrix: return 0
rows = len(binaryMatrix)
cols = len(binaryMatrix[0])
islands = 0
for r in range(rows):
for c in range(cols):
if binaryMatrixr == 1:
islands += 1
dfs(binaryMatrix, r, c)
return islands
def dfs(grid, r, c):
if (
r = len(grid)
"
Rick E. - "
from typing import List
def getnumberof_islands(binaryMatrix: List[List[int]]) -> int:
if not binaryMatrix: return 0
rows = len(binaryMatrix)
cols = len(binaryMatrix[0])
islands = 0
for r in range(rows):
for c in range(cols):
if binaryMatrixr == 1:
islands += 1
dfs(binaryMatrix, r, c)
return islands
def dfs(grid, r, c):
if (
r = len(grid)
"See full answer
"Questions to ask :
Are there negative values in the input array? Interview : YES
Will the product of two number fit into 32-bit Integer. If not, will it fit 64-bit Integer. If not, then is it safe to use Big Integer? Interview : let's worry only about 32 bit Integer
What should we return if the input array is null or size (size of input array) is less than 2? Return 0
From above Information:
General approach is as follows :
a) Track smallest 2 elements in the array -> p"
Rajendra D. - "Questions to ask :
Are there negative values in the input array? Interview : YES
Will the product of two number fit into 32-bit Integer. If not, will it fit 64-bit Integer. If not, then is it safe to use Big Integer? Interview : let's worry only about 32 bit Integer
What should we return if the input array is null or size (size of input array) is less than 2? Return 0
From above Information:
General approach is as follows :
a) Track smallest 2 elements in the array -> p"See full answer
"Why is it answered like a Product Design Question? Shouldn't this be a strategy type answer analyzing the pros/cons of the service etc.?"
Aditya O. - "Why is it answered like a Product Design Question? Shouldn't this be a strategy type answer analyzing the pros/cons of the service etc.?"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