"def flatten_dictionary(dictionary):
\# return a flattened dictionary - int/string/another dictionary values
\# if the key is empty, exclude from the output
\# concat using a "." btwn them
\# add to res which is { "key.a.b.etc": "value" }
\# iterate through the key value pairs
\# while there is a key value pair in the value
\# continue going through that, until the value is an int/string
flatDic = {}
flatDicHelper("", dictionary, flatDic)
print(flatDic)
return flatDic
def flatDicHelper(initialKey"
Anonymous Owl - "def flatten_dictionary(dictionary):
\# return a flattened dictionary - int/string/another dictionary values
\# if the key is empty, exclude from the output
\# concat using a "." btwn them
\# add to res which is { "key.a.b.etc": "value" }
\# iterate through the key value pairs
\# while there is a key value pair in the value
\# continue going through that, until the value is an int/string
flatDic = {}
flatDicHelper("", dictionary, flatDic)
print(flatDic)
return flatDic
def flatDicHelper(initialKey"See full answer
"The design review has three stages; In-draft, Review and Complete. I consider a design review completed when the problem statement has been clearly addressed via a feature or a solution and signed off on by all the key stakeholders along with engineerings."
Sam M. - "The design review has three stages; In-draft, Review and Complete. I consider a design review completed when the problem statement has been clearly addressed via a feature or a solution and signed off on by all the key stakeholders along with engineerings."See full answer
"Managing multiple demands within timelines requires effective prioritization, organization, and time management skills. My task is to assess priorities, set realistic timelines, and allocate resources efficiently to meet deadlines.
For instance, I've implemented project management tools and workflows to track tasks, monitor progress, and ensure timely delivery of deliverables.
By effectively managing multiple demands, I've been able to meet deadlines consistently and deliver high-quality work fo"
Celia F. - "Managing multiple demands within timelines requires effective prioritization, organization, and time management skills. My task is to assess priorities, set realistic timelines, and allocate resources efficiently to meet deadlines.
For instance, I've implemented project management tools and workflows to track tasks, monitor progress, and ensure timely delivery of deliverables.
By effectively managing multiple demands, I've been able to meet deadlines consistently and deliver high-quality work fo"See full answer
"Great. I’d like to break down this by discussing impacts of post investment decisions for the Pixel handset lines at two levels of micro and macro evaluation, which will be able to lead us to an evidence-based answer of what I think Google should continue to invest and ramp up their investment to hit their target ROI.
First, closely looking at micro aspects, Google’s business model is a so-called multisided platform, generating either free search engines and monetizing contents for Internet use"
Anna H. - "Great. I’d like to break down this by discussing impacts of post investment decisions for the Pixel handset lines at two levels of micro and macro evaluation, which will be able to lead us to an evidence-based answer of what I think Google should continue to invest and ramp up their investment to hit their target ROI.
First, closely looking at micro aspects, Google’s business model is a so-called multisided platform, generating either free search engines and monetizing contents for Internet use"See full answer
Product Manager
Product Strategy
+1 more
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"I said - I recently got promoted and mentioned yes.
Now that I realize - I didnot answer to the point. Should have just yes - it doesnt matter to her whether or not I got promoted or not"
Hmj V. - "I said - I recently got promoted and mentioned yes.
Now that I realize - I didnot answer to the point. Should have just yes - it doesnt matter to her whether or not I got promoted or not"See full answer
"WITH CTE AS (
SELECT *, ROWNUMBER()OVER(PARTITION BY utxoid ORDER BY transactionid) AS trxrk
FROM transactions
JOIN transaction_inputs
USING (transaction_id)
JOIN utxo
USING (utxo_id)
)
SELECT transaction_id AS InvalidTransactionId
FROM CTE
WHERE sender!=address OR trx_rk > 1
`"
E L. - "WITH CTE AS (
SELECT *, ROWNUMBER()OVER(PARTITION BY utxoid ORDER BY transactionid) AS trxrk
FROM transactions
JOIN transaction_inputs
USING (transaction_id)
JOIN utxo
USING (utxo_id)
)
SELECT transaction_id AS InvalidTransactionId
FROM CTE
WHERE sender!=address OR trx_rk > 1
`"See full answer
"What goals would you set for Reels recommendation engine?
Clarification:
Is this Reels on Instagram, FB?
Which ones do you mean? -Instagram
What does this feature cover- Reels recommendation engine- showcases a new video to the user
when tapped
User can Like, comment , add reel to the story, remix this reel, save,
report, not interested
Why is this done?
Competition from Tiktok : Make Reels appealing to Meta userbase so that Meta doesn't lose
users, creators, brands to TikTok
Mission
"
UoP - "What goals would you set for Reels recommendation engine?
Clarification:
Is this Reels on Instagram, FB?
Which ones do you mean? -Instagram
What does this feature cover- Reels recommendation engine- showcases a new video to the user
when tapped
User can Like, comment , add reel to the story, remix this reel, save,
report, not interested
Why is this done?
Competition from Tiktok : Make Reels appealing to Meta userbase so that Meta doesn't lose
users, creators, brands to TikTok
Mission
"See full answer
"Clarifying
Slack is a mature product in markets with millions of users B2B platform
Expand customer base to school boards
SWOT
Technology is mature and well reputed
Good privacy practices
Threats
Google school
Microsoft learning education
Zoom
Journeys User
Users for slack - for - school
School boards 12 school boards
Primary
Secondary
High
Universities -
Remote learning / Distant educations - Incumbents
MooCs - Existing platform
End Users:
Students
Teachers
Administrators
Ed"
Hl M. - "Clarifying
Slack is a mature product in markets with millions of users B2B platform
Expand customer base to school boards
SWOT
Technology is mature and well reputed
Good privacy practices
Threats
Google school
Microsoft learning education
Zoom
Journeys User
Users for slack - for - school
School boards 12 school boards
Primary
Secondary
High
Universities -
Remote learning / Distant educations - Incumbents
MooCs - Existing platform
End Users:
Students
Teachers
Administrators
Ed"See full answer
"Assuming that trades will have information like
trade_type buy or sell
trade_price
with these tuples, one can iterate over each trade while maintaining a stack which maintains all the open buy trades.
If we encounter a sell trade then we pop one element make it a buy/sell pair and calculate the profit/loss for that pair. Moreover, keep adding pair-wise profit/loss to calculate overall profit as we continue iterating over trades.
At the end print pairs and their profit/loss along with"
Parth S. - "Assuming that trades will have information like
trade_type buy or sell
trade_price
with these tuples, one can iterate over each trade while maintaining a stack which maintains all the open buy trades.
If we encounter a sell trade then we pop one element make it a buy/sell pair and calculate the profit/loss for that pair. Moreover, keep adding pair-wise profit/loss to calculate overall profit as we continue iterating over trades.
At the end print pairs and their profit/loss along with"See full answer
"There are many companies I’m excited about, but none captures my heart and imagination more than Lego. I have great memories of playing with Lego. I remember the thrill and happiness after completing a set and the excitement to show it to my family, relatives and friends. From a product standpoint, Lego offers a myriad of opportunities for growth in today’s context in which technology is ubiquitous.
**Lego has faced several challenges over the years from expanding their user base, tradi"
Carlos L. - "There are many companies I’m excited about, but none captures my heart and imagination more than Lego. I have great memories of playing with Lego. I remember the thrill and happiness after completing a set and the excitement to show it to my family, relatives and friends. From a product standpoint, Lego offers a myriad of opportunities for growth in today’s context in which technology is ubiquitous.
**Lego has faced several challenges over the years from expanding their user base, tradi"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
"This is a pretty straightforward 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 interviewe"
Exponent - "This is a pretty straightforward 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 interviewe"See full answer