"Build a counter using queue, one queue per service ("a", "b") and one with just timestamps to get the overall load.
Build rate limiter service using the counter and interviewer asked if there rate limiter might use a different instance of a counter"
Chethan N. - "Build a counter using queue, one queue per service ("a", "b") and one with just timestamps to get the overall load.
Build rate limiter service using the counter and interviewer asked if there rate limiter might use a different instance of a counter"See full answer
"What is the goal of this product? If its engagement for the people in a flight, can other options be explored?
If there is a particular business insistence for hangman for engagement, the following can be the features of the game:
Pain point: Typing might be hard Feature: Connect with phone keyboard to enable typing
Pain point: These games do not engage multiple people simultaneously. Have leaderboards and multiplayer duels where the game is designed to hang the other player in case of a"
Ranjani M. - "What is the goal of this product? If its engagement for the people in a flight, can other options be explored?
If there is a particular business insistence for hangman for engagement, the following can be the features of the game:
Pain point: Typing might be hard Feature: Connect with phone keyboard to enable typing
Pain point: These games do not engage multiple people simultaneously. Have leaderboards and multiplayer duels where the game is designed to hang the other player in case of a"See full answer
"BETWEEN and HAVING clauses in SQL serve different purposes:
1. BETWEEN Clause
Used to filter rows based on a range of values.
Works with numeric, date, or text values.
Can be used with WHERE or HAVING clauses.
The range includes both lower and upper bounds.
Example: Filtering employees with salaries between 30,000 and 50,000
`SELECT * FROM Employees
WHERE salary BETWEEN 30000 AND 50000;`
2. HAVING Clause
Used to filter **groups"
Meenakshi D. - "BETWEEN and HAVING clauses in SQL serve different purposes:
1. BETWEEN Clause
Used to filter rows based on a range of values.
Works with numeric, date, or text values.
Can be used with WHERE or HAVING clauses.
The range includes both lower and upper bounds.
Example: Filtering employees with salaries between 30,000 and 50,000
`SELECT * FROM Employees
WHERE salary BETWEEN 30000 AND 50000;`
2. HAVING Clause
Used to filter **groups"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
Technical Program Manager
Behavioral
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Let’s say the matrix is m x n (i.e., m rows and n columns).
Start from the top-right corner of the matrix.
Move left if you see a 1.
Move down if you see a 0.
Keep track of the row index where you last saw the leftmost 1 — that row has the most 1s.
public class MaxOnesRow {
public static int rowWithMostOnes(int matrix) {
int rows = matrix.length;
int cols = matrix[0].length;
int maxRowIndex = -1;
int j = cols - 1; /"
Khushbu R. - "Let’s say the matrix is m x n (i.e., m rows and n columns).
Start from the top-right corner of the matrix.
Move left if you see a 1.
Move down if you see a 0.
Keep track of the row index where you last saw the leftmost 1 — that row has the most 1s.
public class MaxOnesRow {
public static int rowWithMostOnes(int matrix) {
int rows = matrix.length;
int cols = matrix[0].length;
int maxRowIndex = -1;
int j = cols - 1; /"See full answer
"Asked clarifying questions, this was similar to box. Took a minute to gather thoughts. Came up with a structured approach. Focused on use cases, prioritized it. They wanted to focus on security aspects, MFA, simultaneous read/write operations, etc."
Shahid K. - "Asked clarifying questions, this was similar to box. Took a minute to gather thoughts. Came up with a structured approach. Focused on use cases, prioritized it. They wanted to focus on security aspects, MFA, simultaneous read/write operations, etc."See full answer
"Although it's not totally obvious, this is a Strategy Question, which asks you to justify business decisions at a high level. First, let's provide a few reasons why Display Ads are bad, and then propose an alternative solution.
> There are a few reasons why display ads are a bad idea. I'll go into them in-depth shortly, but in summary, display ads degrade the user experience and monetize poorly, which has all sorts of cascading effects.
Loss of control
> Typically, display ads are run thr"
Exponent - "Although it's not totally obvious, this is a Strategy Question, which asks you to justify business decisions at a high level. First, let's provide a few reasons why Display Ads are bad, and then propose an alternative solution.
> There are a few reasons why display ads are a bad idea. I'll go into them in-depth shortly, but in summary, display ads degrade the user experience and monetize poorly, which has all sorts of cascading effects.
Loss of control
> Typically, display ads are run thr"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 if things are unclear. Since this ask is quite straightforward"
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 if things are unclear. Since this ask is quite straightforward"See full answer