"Idea for solution:
Reverse the complete char array
Reverse the words separated by space. i.e. Find the space characters and the reverse the subarray between two space characters.
vector reverseSubarray(vector& arr, int s, int e)
{
while (s reverseWords(vector& arr )
{
int n = arr.size();
reverse(arr, 0, n - 1"
Rahul M. - "Idea for solution:
Reverse the complete char array
Reverse the words separated by space. i.e. Find the space characters and the reverse the subarray between two space characters.
vector reverseSubarray(vector& arr, int s, int e)
{
while (s reverseWords(vector& arr )
{
int n = arr.size();
reverse(arr, 0, n - 1"See full answer
"Started by asking clarification questions regarding design constraints and desired features.
Break down the into re-usable components - HeroImg and Carousel (with 3 images rendered)
Code the components and managed the state for both in the parent component."
Akshay J. - "Started by asking clarification questions regarding design constraints and desired features.
Break down the into re-usable components - HeroImg and Carousel (with 3 images rendered)
Code the components and managed the state for both in the parent component."See full answer
"google photos: edit, organize, search, and backup your photos.
both android and iOS users can use google photos. together with the google drive, users can have 15 gigabytes free storage.
photos market: main competitor, apple photos. this is a relatively mature market with two biggest players. when evaluating the acquisition, retention/engagement, rev, we would focus more on the retention. Higher retention and more usage are also strong signals of upgrading to larger storage and rev growth.
"
Tian H. - "google photos: edit, organize, search, and backup your photos.
both android and iOS users can use google photos. together with the google drive, users can have 15 gigabytes free storage.
photos market: main competitor, apple photos. this is a relatively mature market with two biggest players. when evaluating the acquisition, retention/engagement, rev, we would focus more on the retention. Higher retention and more usage are also strong signals of upgrading to larger storage and rev growth.
"See full answer
"Thanks Hozefa for your insights on this. I see that hozefa talks about giving used cases. It would be very helpful if there was an example provided with STAR framework."
Dheeraj D. - "Thanks Hozefa for your insights on this. I see that hozefa talks about giving used cases. It would be very helpful if there was an example provided with STAR framework."See full answer
"Designing a video streaming system like Netflix or Facebook Video involves addressing multiple aspects, such as scalability, availability, low latency, and high performance. Here's a high-level design:
System Requirements
Functional Requirements:
User Management:
User sign-up, login, and profile management.
Subscription plans and payment integration (for Netflix-like systems).
Content Management:
Upload, edit, and delete videos.
Categorize content (genres, recommendations).
Video Playback:
S"
Kamal .. - "Designing a video streaming system like Netflix or Facebook Video involves addressing multiple aspects, such as scalability, availability, low latency, and high performance. Here's a high-level design:
System Requirements
Functional Requirements:
User Management:
User sign-up, login, and profile management.
Subscription plans and payment integration (for Netflix-like systems).
Content Management:
Upload, edit, and delete videos.
Categorize content (genres, recommendations).
Video Playback:
S"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.
"Load Balancer, Multiple API Servers, game Service, pub-sub system, HTTP Long Polling for status updates, write-through cache. No SQL DB to store user, game, and move information."
gdecuri - "Load Balancer, Multiple API Servers, game Service, pub-sub system, HTTP Long Polling for status updates, write-through cache. No SQL DB to store user, game, and move information."See full answer
"Clarifying Questions (Noun, verb, and adjective)
Pixel
The Pixel Phone or are we talking about ore on the software?
Hardware or SoftwareINT: This can be applied to both areas
Best
Compared to other related phones on the market?
And do we have a specific time frame in mind?INT: we don’t really have a specific time frame maybe within the next couple of years.
Best means comparing to other phones out there.
Market
Best when it comes to a particular feature or overall the user experience within"
Kirubel D. - "Clarifying Questions (Noun, verb, and adjective)
Pixel
The Pixel Phone or are we talking about ore on the software?
Hardware or SoftwareINT: This can be applied to both areas
Best
Compared to other related phones on the market?
And do we have a specific time frame in mind?INT: we don’t really have a specific time frame maybe within the next couple of years.
Best means comparing to other phones out there.
Market
Best when it comes to a particular feature or overall the user experience within"See full answer
"Set Success metrics for Google Maps:
Assuming we are focusing on mobile experience…
Clarify the product:
Overall, it is a directions app:
Gets you from point a to point b
Allows for several methods of transportation - car, public transit, walking, biking, rideshare
After entering location, you click your transport method, and select get directions which leads you to steps to get to you location or if you are driving or walking it speaks to you giving youthe directions aloud based on sett"
Kiley S. - "Set Success metrics for Google Maps:
Assuming we are focusing on mobile experience…
Clarify the product:
Overall, it is a directions app:
Gets you from point a to point b
Allows for several methods of transportation - car, public transit, walking, biking, rideshare
After entering location, you click your transport method, and select get directions which leads you to steps to get to you location or if you are driving or walking it speaks to you giving youthe directions aloud based on sett"See full answer
"The key here is a) not to overreact to Sales bypassing me going straight to Engineering (while understanding every team acts according to their incentives), and b) communicate with all parties as much as possible to get everyone on the same page.
1) First, I'd speak to Sales and understand the feature being requested. I consider Sales to be one of the most important primary research funnels - they have direct, regular touchpoints with the client and are finely attuned to the lifeblood o"
Sachin P. - "The key here is a) not to overreact to Sales bypassing me going straight to Engineering (while understanding every team acts according to their incentives), and b) communicate with all parties as much as possible to get everyone on the same page.
1) First, I'd speak to Sales and understand the feature being requested. I consider Sales to be one of the most important primary research funnels - they have direct, regular touchpoints with the client and are finely attuned to the lifeblood o"See full answer
"I would want to start by asking a few clarifying questions?
What business goal are we trying to achieve with this feature?
What decisions will this feature help drive?
Is calling feature (audio/video) currently available on 1:1 chats?
Does the feature allow for cross-device switch?
Once I get some clarity, assuming the goal is to increase user engagement and help drive repeat messenger usage with its user base. I would want to evaluate a few motivation for this feature with looking at"
Aman M. - "I would want to start by asking a few clarifying questions?
What business goal are we trying to achieve with this feature?
What decisions will this feature help drive?
Is calling feature (audio/video) currently available on 1:1 chats?
Does the feature allow for cross-device switch?
Once I get some clarity, assuming the goal is to increase user engagement and help drive repeat messenger usage with its user base. I would want to evaluate a few motivation for this feature with looking at"See full answer
"Would consider the following factors:
Customer demographic and preferences
Location of the warehouse and what's the local product trends
Seasonality and time of the year for trendy products
Balance of volume and margin products
Supply chain consideration
Competition analysis
Inventory turn over rate
eCommerce aspects of the inventory
Plus the following types:
Essential and groceries
Electronic and entertainment
Apparel and footwear
Home and lifestyle
Seasonal and promo"
onering2ruleall - "Would consider the following factors:
Customer demographic and preferences
Location of the warehouse and what's the local product trends
Seasonality and time of the year for trendy products
Balance of volume and margin products
Supply chain consideration
Competition analysis
Inventory turn over rate
eCommerce aspects of the inventory
Plus the following types:
Essential and groceries
Electronic and entertainment
Apparel and footwear
Home and lifestyle
Seasonal and promo"See full answer
"
why do we want to improve the DMV? we’re a startup and we want to improve the experience at the DMV
what is the DMV? my assumption is that this is for the US only, and is the department of motor vehicles. and this is where folks go to get IDs, register their cars, etc. is that correct or am I missing anything about what the DMV is?
is there a timeframe to launch?
are there any other constraints that I should be aware of?
context:
what is the DMV - the DMV is a something of a"
Elle Z. - "
why do we want to improve the DMV? we’re a startup and we want to improve the experience at the DMV
what is the DMV? my assumption is that this is for the US only, and is the department of motor vehicles. and this is where folks go to get IDs, register their cars, etc. is that correct or am I missing anything about what the DMV is?
is there a timeframe to launch?
are there any other constraints that I should be aware of?
context:
what is the DMV - the DMV is a something of a"See full answer
"Very helpful! But I have a question: the location of drivers can be changing every minute, so won't reading from location cache returning stale data?"
Linying W. - "Very helpful! But I have a question: the location of drivers can be changing every minute, so won't reading from location cache returning stale data?"See full answer
"I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"
Jaison E. - "I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"See full answer
"When originally trying to launch XYZ product, a stakeholder wanted to rollout an additional requirement for agents that would have been redundant. I provided light pushback and context regarding the scale of the lift and technical resources required to initiate their request. Once I described the complexity of their request & potential strain on resources, we agreed to brainstorm alternative solutions. I collaborated with cross-functional teams to create an automated solution, leading to XYZ% in"
Katie O. - "When originally trying to launch XYZ product, a stakeholder wanted to rollout an additional requirement for agents that would have been redundant. I provided light pushback and context regarding the scale of the lift and technical resources required to initiate their request. Once I described the complexity of their request & potential strain on resources, we agreed to brainstorm alternative solutions. I collaborated with cross-functional teams to create an automated solution, leading to XYZ% in"See full answer