"Thanks for the question.
I would like to start off by asking some clarifying questions:
When we say a holiday season, are we referring to the 15 registered holidays in a year? or the holiday season on Mid November until January 15 for thanksgiving, Christmas, and New Year?
When we say a medium-sized company, are we referring to a US company or an international company?
When we say how much productivity is lost, is it in terms of revenue, production, hours, engagement?
I would like to g"
Yonatan G. - "Thanks for the question.
I would like to start off by asking some clarifying questions:
When we say a holiday season, are we referring to the 15 registered holidays in a year? or the holiday season on Mid November until January 15 for thanksgiving, Christmas, and New Year?
When we say a medium-sized company, are we referring to a US company or an international company?
When we say how much productivity is lost, is it in terms of revenue, production, hours, engagement?
I would like to g"See full answer
"This is another Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your"
Exponent - "This is another Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your"See full answer
"Asked clarifying questions
Thought through the motivation (came up with a mission and business model, modeled it on Safeway with agreement from the interviewer
User segmentation both by age groups and behavior, then prioritized user group
Went through user journey (both physical store and online) to identify pain points
Prioritized pain points
Came up with 5 solutions
Interviewer picked one for me to deep dive. I went into detail on that one.
"
Samya S. - "Asked clarifying questions
Thought through the motivation (came up with a mission and business model, modeled it on Safeway with agreement from the interviewer
User segmentation both by age groups and behavior, then prioritized user group
Went through user journey (both physical store and online) to identify pain points
Prioritized pain points
Came up with 5 solutions
Interviewer picked one for me to deep dive. I went into detail on that one.
"See full answer
"This is an Improve a Product question. Let's first go over the Improve a Product formula:
Ask clarifying questions
Identify users, behaviors, and pain points
State product goal
Brainstorm small improvements
Brainstorm bolder improvements
Measure success
Summarize
Now, let's begin!
Ask clarifying questions
Before we begin listing off recommendations, it's important you ask questions to ensure you and the interviewer are on the same page"
Exponent - "This is an Improve a Product question. Let's first go over the Improve a Product formula:
Ask clarifying questions
Identify users, behaviors, and pain points
State product goal
Brainstorm small improvements
Brainstorm bolder improvements
Measure success
Summarize
Now, let's begin!
Ask clarifying questions
Before we begin listing off recommendations, it's important you ask questions to ensure you and the interviewer are on the same page"See full answer
"This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"
Exponent - "This is a Design a Product question. For this, we'll want to follow the formula for success:
Ask clarifying questions
Identify user types, behaviors, and pain points
State the goal and use cases
List current solutions
Improvements / net new solutions
Evaluate and select solutions
Measure Success
Summarize
Ask clarifying questions
It's important to get clarity on anything unclear. Asking questions also helps us limit scope early on s"See full answer
"
import pandas as pd
from datetime import datetime
def findfastestlike(log: pd.DataFrame) -> pd.DataFrame:
log=log.sortvalues(['userid','timestamp'])
#get the prev event, time by user
log['prevevent'] = log.groupby('userid')['event'].shift(1)
log['prevtimestamp'] = log.groupby('userid')['timestamp'].shift(1)
True only on rows where the previous event was a login
and the current event is a like
log['loginlike'] = (log['prevevent'] == 'log"
Sean L. - "
import pandas as pd
from datetime import datetime
def findfastestlike(log: pd.DataFrame) -> pd.DataFrame:
log=log.sortvalues(['userid','timestamp'])
#get the prev event, time by user
log['prevevent'] = log.groupby('userid')['event'].shift(1)
log['prevtimestamp'] = log.groupby('userid')['timestamp'].shift(1)
True only on rows where the previous event was a login
and the current event is a like
log['loginlike'] = (log['prevevent'] == 'log"See full answer
"This is an interesting Improve a Product question!
Let's first go over the Improve a Product formula:
Ask clarifying questions
Identify users, behaviors, and pain points
State product goal
Brainstorm small improvements
Brainstorm bolder improvements
Measure success
Summarize
Okay great. Now that we have the formula, it's time to execute on it!
Ask clarifying questions
Before we start identifying possible solutions, it's important we ga"
Exponent - "This is an interesting Improve a Product question!
Let's first go over the Improve a Product formula:
Ask clarifying questions
Identify users, behaviors, and pain points
State product goal
Brainstorm small improvements
Brainstorm bolder improvements
Measure success
Summarize
Okay great. Now that we have the formula, it's time to execute on it!
Ask clarifying questions
Before we start identifying possible solutions, it's important we ga"See full answer
"This is a Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your equat"
Exponent - "This is a Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your equat"See full answer
"function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"
Ugo C. - "function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"See full answer
"let str = 'this is a test of programs';
let obj={};
for (let s of str )
obj[s]?(obj[s]=obj[s]+1):(obj[s]=1)
console.log(JSON.stringify(obj))"
Anonymous Emu - "let str = 'this is a test of programs';
let obj={};
for (let s of str )
obj[s]?(obj[s]=obj[s]+1):(obj[s]=1)
console.log(JSON.stringify(obj))"See full answer