"const ops = {
'+': (a, b) => a+b,
'-': (a, b) => a-b,
'/': (a, b) => a/b,
'': (a, b) => ab,
};
function calc(expr) {
// Search for + or -
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if (['+', '-'].includes(char)) {
return opschar), calc(expr.slice(i+1)));
}
}
// Search for / or *
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if"
Tiago R. - "const ops = {
'+': (a, b) => a+b,
'-': (a, b) => a-b,
'/': (a, b) => a/b,
'': (a, b) => ab,
};
function calc(expr) {
// Search for + or -
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if (['+', '-'].includes(char)) {
return opschar), calc(expr.slice(i+1)));
}
}
// Search for / or *
for (let i=expr.length-1; i >= 0; i--) {
const char = expr.charAt(i);
if"See full answer
"Thanks for the question! This is one of my favourite topics because it’s at the core of what we do as PMs DAILY: making the complex simple to drive alignment. I’ve got a structured way to approach this, and I’ll use it to explain payment aggregators - like Plaid - and how they enable Open Banking, with a twist about a technical hiccup I’ve seen in practice. Let’s dive in.
I start by assessing the audience. Say I’m talking to a marketing manager at Transak - someone sharp but not techni"
Adarsh S. - "Thanks for the question! This is one of my favourite topics because it’s at the core of what we do as PMs DAILY: making the complex simple to drive alignment. I’ve got a structured way to approach this, and I’ll use it to explain payment aggregators - like Plaid - and how they enable Open Banking, with a twist about a technical hiccup I’ve seen in practice. Let’s dive in.
I start by assessing the audience. Say I’m talking to a marketing manager at Transak - someone sharp but not techni"See full answer
"Candidate: Before we go ahead I have a few clarifying questions, I’d like to ask.
Interviewer: Sure.
Candidate: Just to clarify, we would like to improve WhatsApp and our goal is to earn revenue from it. Is that true?
Interviewer: Yes, that is true.
Candidate: Great, WhatsApp currently has 3 different plans.
1) Private WhatsApp
2) WhatsApp Business for small B2C businesses
3) WhatsApp Business API, for medium and large B2C businesses.
I know that the 3’rd category"
Jasmin R. - "Candidate: Before we go ahead I have a few clarifying questions, I’d like to ask.
Interviewer: Sure.
Candidate: Just to clarify, we would like to improve WhatsApp and our goal is to earn revenue from it. Is that true?
Interviewer: Yes, that is true.
Candidate: Great, WhatsApp currently has 3 different plans.
1) Private WhatsApp
2) WhatsApp Business for small B2C businesses
3) WhatsApp Business API, for medium and large B2C businesses.
I know that the 3’rd category"See full answer
"Clarifying Questions:
What age range are we looking at between 13-19? Any specific range we need to target? - Assume all teens
Any demography we would target? - Worldwide
Do they have access to phones/laptops or do we need to build an offline product? - Assume they have access to phones and laptops
Are there any constraints around privacy or content moderation? - Yes
What platform (Facebook core, Messenger, or another product) is this for? - Assume faceb"
Kartik D. - "Clarifying Questions:
What age range are we looking at between 13-19? Any specific range we need to target? - Assume all teens
Any demography we would target? - Worldwide
Do they have access to phones/laptops or do we need to build an offline product? - Assume they have access to phones and laptops
Are there any constraints around privacy or content moderation? - Yes
What platform (Facebook core, Messenger, or another product) is this for? - Assume faceb"See full answer
Product Manager
Product Design
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"WITH ActiveUsersYesterday AS (
SELECT DISTINCT user_id
FROM user_activity
WHERE activity_date = CAST(GETDATE() - 1 AS DATE)
),
VideoCallUsersYesterday AS (
SELECT DISTINCT user_id
FROM video_calls
WHERE call_date = CAST(GETDATE() - 1 AS DATE)
)
SELECT
(CAST(COUNT(DISTINCT v.userid) AS FLOAT) / NULLIF(COUNT(DISTINCT a.userid), 0)) * 100 AS percentagevideocall_users
FROM
ActiveUsersYesterday a
LEFT JOIN
VideoCallUsersYesterday v ON a.userid = v.userid;"
Bala G. - "WITH ActiveUsersYesterday AS (
SELECT DISTINCT user_id
FROM user_activity
WHERE activity_date = CAST(GETDATE() - 1 AS DATE)
),
VideoCallUsersYesterday AS (
SELECT DISTINCT user_id
FROM video_calls
WHERE call_date = CAST(GETDATE() - 1 AS DATE)
)
SELECT
(CAST(COUNT(DISTINCT v.userid) AS FLOAT) / NULLIF(COUNT(DISTINCT a.userid), 0)) * 100 AS percentagevideocall_users
FROM
ActiveUsersYesterday a
LEFT JOIN
VideoCallUsersYesterday v ON a.userid = v.userid;"See full answer
"SELECT
s.Sale_Date,
SUM(si.Quantity * si.SalePrice) AS TotalRevenue
FROM Sales s
JOIN SaleItems si ON s.SaleID = si.Sale_ID
GROUP BY s.Sale_Date
ORDER BY s.Sale_Date;
"
Bala G. - "SELECT
s.Sale_Date,
SUM(si.Quantity * si.SalePrice) AS TotalRevenue
FROM Sales s
JOIN SaleItems si ON s.SaleID = si.Sale_ID
GROUP BY s.Sale_Date
ORDER BY s.Sale_Date;
"See full answer
"Clarifying questions:
What is a roofer?
A: A person who constructs and repairs roofs.
Should this include construction companies or the actual people who construct it, like masons, labourers?
A. you can define the segment
Any specific geography to operate in? No, any geography or worldwide can be chosen
Does the company have a goal in mind? New product creation to capture a market.
Can the product be a physical product? Yes.
In terms of constructing roofs, there is generally no separate company"
Upasana S. - "Clarifying questions:
What is a roofer?
A: A person who constructs and repairs roofs.
Should this include construction companies or the actual people who construct it, like masons, labourers?
A. you can define the segment
Any specific geography to operate in? No, any geography or worldwide can be chosen
Does the company have a goal in mind? New product creation to capture a market.
Can the product be a physical product? Yes.
In terms of constructing roofs, there is generally no separate company"See full answer
"Clarifying Questions
Are we an EdTech company adding this as a new arm, or building a new product? → New product
Is the learning mode online or offline? → User can choose
Are we focusing on any specific instruments? → No, any instrument
Does our product include a marketplace for purchasing instruments? → No
Are we building a mobile app or web platform? → Both, for India location
User Personas
Music Enthusiasts – Full-time learners aim"
Preetham m P. - "Clarifying Questions
Are we an EdTech company adding this as a new arm, or building a new product? → New product
Is the learning mode online or offline? → User can choose
Are we focusing on any specific instruments? → No, any instrument
Does our product include a marketplace for purchasing instruments? → No
Are we building a mobile app or web platform? → Both, for India location
User Personas
Music Enthusiasts – Full-time learners aim"See full answer
"Clarifying questions:
· Is there a specific scenario we are building before? Example: urgent need for a specific type of blood vs building up blood banks proactively. You decide
· This would be for mobile/web and integrate into the existing facebook product? Yes
Ok before we get started I wanted to discuss the facebook mission: to give people the power to build community and bring the world closer together.
I can see how blood donation fits directly into this, enabling blood donation helps"
Anonymous Hummingbird - "Clarifying questions:
· Is there a specific scenario we are building before? Example: urgent need for a specific type of blood vs building up blood banks proactively. You decide
· This would be for mobile/web and integrate into the existing facebook product? Yes
Ok before we get started I wanted to discuss the facebook mission: to give people the power to build community and bring the world closer together.
I can see how blood donation fits directly into this, enabling blood donation helps"See full answer
"Clarification questions:
1) Is this a physical or digital product?
2) Are we enhancing an existing product or designing a brand new product?
3) Is this a product in the physical world or in the Metaverse? (I know Meta has recently expanded in virtual fashion space with partnerships with designer brands)
4) Competition with other fashion products [Depop, Nuuly, Rent the Runway, Pickle, Poshmark, Instagram Shopping)
5) Are there any time constraints on when MVP should be launched?
6) What market"
Sanjanaa S. - "Clarification questions:
1) Is this a physical or digital product?
2) Are we enhancing an existing product or designing a brand new product?
3) Is this a product in the physical world or in the Metaverse? (I know Meta has recently expanded in virtual fashion space with partnerships with designer brands)
4) Competition with other fashion products [Depop, Nuuly, Rent the Runway, Pickle, Poshmark, Instagram Shopping)
5) Are there any time constraints on when MVP should be launched?
6) What market"See full answer
"
The Situation
A few months ago, our trading platform started experiencing significant latency issues during peak trading hours. This latency was affecting our ability to process real-time market data and execute trades efficiently, potentially leading to substantial financial losses and missed opportunities.
Identifying the Problem
The first step was to identify the root cause of the latency. I organized a team meeting with our data engineers, DevOps, and network specialists to gather"
Scott S. - "
The Situation
A few months ago, our trading platform started experiencing significant latency issues during peak trading hours. This latency was affecting our ability to process real-time market data and execute trades efficiently, potentially leading to substantial financial losses and missed opportunities.
Identifying the Problem
The first step was to identify the root cause of the latency. I organized a team meeting with our data engineers, DevOps, and network specialists to gather"See full answer
"A much better solution than the one in the article, below:
It looks like the ones writing articles here in Javascript do not understand the time/space complexity of javascript methods.
shift, splice, sort, etc... In the solution article you have a shift and a sort being done inside a while, that is, the multiplication of Ns.
My solution, below, iterates through the list once and then sorts it, separately. It´s O(N+Log(N))
class ListNode {
constructor(val = 0, next = null) {
th"
Guilherme F. - "A much better solution than the one in the article, below:
It looks like the ones writing articles here in Javascript do not understand the time/space complexity of javascript methods.
shift, splice, sort, etc... In the solution article you have a shift and a sort being done inside a while, that is, the multiplication of Ns.
My solution, below, iterates through the list once and then sorts it, separately. It´s O(N+Log(N))
class ListNode {
constructor(val = 0, next = null) {
th"See full answer
"My answer-
A. Clarifying questions-
External factors- Timelines, Geography, Competition
Internal factors- Meta's goals for entering into fitness space, full-fledged app or part of any existing Meta app
Goals- Will go after engagement, since it is a new app.
B. Identifying users-
Heavily/ Professionally into fitness
Casual fitness enthusiasts
Not interested in fitness
C. Prioritizing user segments-
I will prioritize #2. Segment #1 does not really need external motivati"
Aakanksha R. - "My answer-
A. Clarifying questions-
External factors- Timelines, Geography, Competition
Internal factors- Meta's goals for entering into fitness space, full-fledged app or part of any existing Meta app
Goals- Will go after engagement, since it is a new app.
B. Identifying users-
Heavily/ Professionally into fitness
Casual fitness enthusiasts
Not interested in fitness
C. Prioritizing user segments-
I will prioritize #2. Segment #1 does not really need external motivati"See full answer
"Clarifying question:
Is there a goal that we have in mind?
Fb mission: empower people to create community and bring the world closer together
IG shops as I understand are the marketplace on IG, where users can view items listed for sale by creators/businesses and also search for specific items or categories. Users can actually buy through shops instead of getting navigated to the original business website.
IG shop goals: Businesses continue to face the challenges of selling onli"
Aimable - "Clarifying question:
Is there a goal that we have in mind?
Fb mission: empower people to create community and bring the world closer together
IG shops as I understand are the marketplace on IG, where users can view items listed for sale by creators/businesses and also search for specific items or categories. Users can actually buy through shops instead of getting navigated to the original business website.
IG shop goals: Businesses continue to face the challenges of selling onli"See full answer
"Assumptions and clarifying Questions
1 - This will be a feature within the existing FB App and would utilize existing features - YES
2 - What is the goal of this new feature - User acquisition & increase engagement
3 -Is this feature around playing sports or watching sports - Playing
4 - Any specific geography to target - US
5 - Both mobile and desktop platforms - YES
6 - Any specific demographic to target - You choose
7 - Any constraints around go to market - 6 months
8 - Any other"
R K. - "Assumptions and clarifying Questions
1 - This will be a feature within the existing FB App and would utilize existing features - YES
2 - What is the goal of this new feature - User acquisition & increase engagement
3 -Is this feature around playing sports or watching sports - Playing
4 - Any specific geography to target - US
5 - Both mobile and desktop platforms - YES
6 - Any specific demographic to target - You choose
7 - Any constraints around go to market - 6 months
8 - Any other"See full answer
"Clarification Questions
What does it mean by Next Gen Elevator? → Next Gen Elevator means Elevator using new technologies.
Where is this Elevator situated? → Skyscrapers, Commercial Buildings, Residential Buildings or Elevators to Space? Assuming it’s Commercial Buildings.
What is the Goal of Making Next Gen Elevators? Is it improving Safety? User Experience? Assuming it’s User Experience
_Goal: To design an elevator using emerging technologies to improve user experience in a C"
Anonymous Muskox - "Clarification Questions
What does it mean by Next Gen Elevator? → Next Gen Elevator means Elevator using new technologies.
Where is this Elevator situated? → Skyscrapers, Commercial Buildings, Residential Buildings or Elevators to Space? Assuming it’s Commercial Buildings.
What is the Goal of Making Next Gen Elevators? Is it improving Safety? User Experience? Assuming it’s User Experience
_Goal: To design an elevator using emerging technologies to improve user experience in a C"See full answer
"Clarifying questions:
Will this be within the facebook blue app or will this interface/app sit separately?
Volunteering can be of a few types- say for social causes or volunteering in college fest/ music fest etc. Is there a specific type of volunteering we need to consider?
Let's start by revisiting company's mission statement and see if this gels with the mission-
Meta's mission- To give power to build community and bring the world closer together.
Volunteering is basically a way for hu"
Jagriti C. - "Clarifying questions:
Will this be within the facebook blue app or will this interface/app sit separately?
Volunteering can be of a few types- say for social causes or volunteering in college fest/ music fest etc. Is there a specific type of volunteering we need to consider?
Let's start by revisiting company's mission statement and see if this gels with the mission-
Meta's mission- To give power to build community and bring the world closer together.
Volunteering is basically a way for hu"See full answer
"As a PM i received a feedback from my program manager on my style of verbal communication. It is about me speaking faster when i wanted to get away with a topic that i wasn't confident (may be not backed up with data, or still in process of getting detailed insight of a problem etc.). Whereas when I'm confident I tend to speak slowly or more assertively that made people to follow easily.
I welcomed that feedback so from then on when I'm not confident in a topic I became more assertive to let pe"
Rajesh V. - "As a PM i received a feedback from my program manager on my style of verbal communication. It is about me speaking faster when i wanted to get away with a topic that i wasn't confident (may be not backed up with data, or still in process of getting detailed insight of a problem etc.). Whereas when I'm confident I tend to speak slowly or more assertively that made people to follow easily.
I welcomed that feedback so from then on when I'm not confident in a topic I became more assertive to let pe"See full answer