"Here if we breakdown each dependency [A,B] , We need to check if there a cycle in Dependency Graph. If there is cycle installation is not possible, If there is no cycle installation is possible.
Steps :
1: Build the graph
2: Perform DFS based Cycle Detection
3: Check each package if those packages have cycle or not."
Venkata rakesh M. - "Here if we breakdown each dependency [A,B] , We need to check if there a cycle in Dependency Graph. If there is cycle installation is not possible, If there is no cycle installation is possible.
Steps :
1: Build the graph
2: Perform DFS based Cycle Detection
3: Check each package if those packages have cycle or not."See full answer
"To answer this question I am going to first clarify the product offering and what ti does, talk about the goals for IG reels for Facebook, go through user actions and then come up with some key metrics to measure success of the product based on the goals.
Product Overview
IG reel allows creators to build short-form video with a bunch of different editing features and post that to their followers or to the broader IG network. It allows regular IG users to create their own content and build"
stash - "To answer this question I am going to first clarify the product offering and what ti does, talk about the goals for IG reels for Facebook, go through user actions and then come up with some key metrics to measure success of the product based on the goals.
Product Overview
IG reel allows creators to build short-form video with a bunch of different editing features and post that to their followers or to the broader IG network. It allows regular IG users to create their own content and build"See full answer
"Clarification:
What types of jobs are we targeting? Are we talking about a broad market (like Indeed) or more focused—white-collar (LinkedIn-style) or blue-collar (gigs and tasks)?
Where are we launching the marketplace—U.S. or globally? Let’s assume U.S. for now.
Is this a standalone product or integrated within one of Meta’s existing platforms (Facebook, WhatsApp, Instagram)? Let’s assume it’s integrated into Facebook.
Overview:
Meta’s Mission: Why would Meta want to launch a"
Kat - "Clarification:
What types of jobs are we targeting? Are we talking about a broad market (like Indeed) or more focused—white-collar (LinkedIn-style) or blue-collar (gigs and tasks)?
Where are we launching the marketplace—U.S. or globally? Let’s assume U.S. for now.
Is this a standalone product or integrated within one of Meta’s existing platforms (Facebook, WhatsApp, Instagram)? Let’s assume it’s integrated into Facebook.
Overview:
Meta’s Mission: Why would Meta want to launch a"See full answer
"Artificial intelligence (AI) and machine learning. The increasing ability of machines to learn and act intelligently will absolutely transform our world. It is also the driving force behind many of the other trends on this list.
The Internet of Things (IoT). This refers to the ever-growing number of “smart” devices and objects that are connected to the internet. Such devices are constantly gathering and transmitting data, further fueling the growth in Big Data and AI.
**Blockchains and"
Ashish B. - "Artificial intelligence (AI) and machine learning. The increasing ability of machines to learn and act intelligently will absolutely transform our world. It is also the driving force behind many of the other trends on this list.
The Internet of Things (IoT). This refers to the ever-growing number of “smart” devices and objects that are connected to the internet. Such devices are constantly gathering and transmitting data, further fueling the growth in Big Data and AI.
**Blockchains and"See full answer
"To build a product using Generative AI (Gen AI), the process would involve multiple steps, from conceptualization to deployment. Here's a structured approach :
1. Identify the Problem or Opportunity
Start with the need or opportunity: What problem do you want to solve? Is it to automate tasks, generate content, enhance creativity, or improve user experience?
Example products:A content creation tool that generates blog posts or articles.
A personalized customer support chatbot"
Maulik S. - "To build a product using Generative AI (Gen AI), the process would involve multiple steps, from conceptualization to deployment. Here's a structured approach :
1. Identify the Problem or Opportunity
Start with the need or opportunity: What problem do you want to solve? Is it to automate tasks, generate content, enhance creativity, or improve user experience?
Example products:A content creation tool that generates blog posts or articles.
A personalized customer support chatbot"See full answer
Product Manager
Product Design
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Let me tell you about the time where I pivoted strategies and we launched a paid loyalty program Instead of a free one.
This was a time at Reddoorz when we were gearing up to launch a loyalty program to drive sustainable business by creating a loyal user base.
Initially , we had decided to launch a program where users can Opt-In for free. The idea was to get On-Board at least 40% of repeat user base into the loyalty program to drive retention. Competitive bench marking also led to our inclinat"
Vivek S. - "Let me tell you about the time where I pivoted strategies and we launched a paid loyalty program Instead of a free one.
This was a time at Reddoorz when we were gearing up to launch a loyalty program to drive sustainable business by creating a loyal user base.
Initially , we had decided to launch a program where users can Opt-In for free. The idea was to get On-Board at least 40% of repeat user base into the loyalty program to drive retention. Competitive bench marking also led to our inclinat"See full answer
"Clarifying question:
When you say users, what specific metric are we talking about? Answer: we want to increase # of daily active users. Assume active users are logged in users.
Is there a region that we have in mind for this increase? Assume no, we want to think about globally
Is there a specific device (mobile vs desktop) ? Assume no
Approach: I want to first think about Youtube, its mission and current business at a high level. . Then I want to think about the current ecos"
Yespm T. - "Clarifying question:
When you say users, what specific metric are we talking about? Answer: we want to increase # of daily active users. Assume active users are logged in users.
Is there a region that we have in mind for this increase? Assume no, we want to think about globally
Is there a specific device (mobile vs desktop) ? Assume no
Approach: I want to first think about Youtube, its mission and current business at a high level. . Then I want to think about the current ecos"See full answer
"Scenario - I had joined a product in my current company as a PM midway through its development. It is a very sensitive product with a major public services company.
As the product was close to its go-live date, it had to go through many checks and many signoffs. A couple of them were through data policy department and the platform department, of which we were using all of the components for our product.
We needed policy sign off to authorise the use of data to understand user interactions and"
Umang S. - "Scenario - I had joined a product in my current company as a PM midway through its development. It is a very sensitive product with a major public services company.
As the product was close to its go-live date, it had to go through many checks and many signoffs. A couple of them were through data policy department and the platform department, of which we were using all of the components for our product.
We needed policy sign off to authorise the use of data to understand user interactions and"See full answer
"Lyft at its core is a marketplace with drivers and cars on the supply side, and passengers on the demand side. I would begin by dividing the goal of the dashboard into two categories :
Health of the marketplace
Health of the app/ reliability from a technical perspective
The second one is more straightforward so I’ll briefly mention some overarching metrics I would look at and come back to it later if time allows.
Health or reliability of the app can be further divided into the following
-"
Sukriti C. - "Lyft at its core is a marketplace with drivers and cars on the supply side, and passengers on the demand side. I would begin by dividing the goal of the dashboard into two categories :
Health of the marketplace
Health of the app/ reliability from a technical perspective
The second one is more straightforward so I’ll briefly mention some overarching metrics I would look at and come back to it later if time allows.
Health or reliability of the app can be further divided into the following
-"See full answer
"Clarifying questions:
Are there any specific constraints that you want me to take in to account when thinking through this problem : [Interviewer] No
Can i think through this in freeform or is there a specific goal we are trying to achieve : [Interviewer] I will let you decide the goal
Strategic Analysis:
Spotifyies mission is to - "Unlock the potential of human creativity – by giving a million creative artists the opportunity to live off their art and billions of fans the o"
Kunal S. - "Clarifying questions:
Are there any specific constraints that you want me to take in to account when thinking through this problem : [Interviewer] No
Can i think through this in freeform or is there a specific goal we are trying to achieve : [Interviewer] I will let you decide the goal
Strategic Analysis:
Spotifyies mission is to - "Unlock the potential of human creativity – by giving a million creative artists the opportunity to live off their art and billions of fans the o"See full answer
"Requirements and Goals
Primary Goal:Store key-value pairs in a cache with efficient access (reads/writes).
Evict items based on a certain “rank,” which might reflect popularity, frequency, or custom ranking logic.
Functional Requirements:Put(key, value, rank): Insert or update a key with the given value and rank.
Get(key): Retrieve the value associated with the key if it exists.
Evict(): If the cache is at capacity, evict the item with the lowest rank (or according"
Alvis F. - "Requirements and Goals
Primary Goal:Store key-value pairs in a cache with efficient access (reads/writes).
Evict items based on a certain “rank,” which might reflect popularity, frequency, or custom ranking logic.
Functional Requirements:Put(key, value, rank): Insert or update a key with the given value and rank.
Get(key): Retrieve the value associated with the key if it exists.
Evict(): If the cache is at capacity, evict the item with the lowest rank (or according"See full answer
"
def closest_palindrome(n: str) -> str:
"""
Finds the closest palindromic number to n (excluding itself).
Assumptions:
If two palindromes are equally close, return the smaller one.
n is a positive integer represented as a string.
Time Complexity: O(1)
Space Complexity: O(1)
"""
length = len(n)
num = int(n)
Helper to build palindrome from a prefix
def makepalindrome(prefix: int, isodd_length: bool) -> int:
s = str(prefi"
Ramachandra N. - "
def closest_palindrome(n: str) -> str:
"""
Finds the closest palindromic number to n (excluding itself).
Assumptions:
If two palindromes are equally close, return the smaller one.
n is a positive integer represented as a string.
Time Complexity: O(1)
Space Complexity: O(1)
"""
length = len(n)
num = int(n)
Helper to build palindrome from a prefix
def makepalindrome(prefix: int, isodd_length: bool) -> int:
s = str(prefi"See full answer
"
Honestly, the first question should be can you please explain the question in detail. Below is my breakdown of this question
What kind of furniture market? Online or store-based?
Will Google produce the furniture or will it be an aggregator?
Once understood let us ask more clarifying questions
Why does Google wanna get into this space? Is it to increase revenue or engagement?
Is there a region that Google is thinking of starting in?
I**s there a problem to be solved? What is the motivation"
Ekta M. - "
Honestly, the first question should be can you please explain the question in detail. Below is my breakdown of this question
What kind of furniture market? Online or store-based?
Will Google produce the furniture or will it be an aggregator?
Once understood let us ask more clarifying questions
Why does Google wanna get into this space? Is it to increase revenue or engagement?
Is there a region that Google is thinking of starting in?
I**s there a problem to be solved? What is the motivation"See full answer
"What metrics do you use to measure the success of a product?
Clarifications & Assumptions
What type of a Product is it? Is it an App? Assume it is an App.
Are you launching the App now or is it an App that has already been in production for a while? Assume you are launching the App now.
It is for a consumer (D2C or a B2B / Enterprise)? Assume it is for consumers / individual users to start with, and eventually will be adopted by Enterprises. Assume that your current target custo"
Karthik M. - "What metrics do you use to measure the success of a product?
Clarifications & Assumptions
What type of a Product is it? Is it an App? Assume it is an App.
Are you launching the App now or is it an App that has already been in production for a while? Assume you are launching the App now.
It is for a consumer (D2C or a B2B / Enterprise)? Assume it is for consumers / individual users to start with, and eventually will be adopted by Enterprises. Assume that your current target custo"See full answer
"Clarifying questions
To confirm, stories are available for 24 hrs
What is the target increase for stories?
Will we be applying this change globally vs. only in the close friends story view?
Do we have any particular OKRs that we are trying to achieve?
Mission
Facebook is focused on creating and connecting communities. Instagram fits within FB's portfolio of products as it connects individuals often through a more creative and light-hearted medium"
I C. - "Clarifying questions
To confirm, stories are available for 24 hrs
What is the target increase for stories?
Will we be applying this change globally vs. only in the close friends story view?
Do we have any particular OKRs that we are trying to achieve?
Mission
Facebook is focused on creating and connecting communities. Instagram fits within FB's portfolio of products as it connects individuals often through a more creative and light-hearted medium"See full answer
"Clarification
I would first try to understand what FB Marketplace is since I haven't really used it more than a few times.
My understanding is the following
Launched 2-3 years ago in the US, it is similar to web classified services such as Craigslist
The sellers are not businesses but rather individuals, primarily in local areas
Broad range of products with no particular focus: ranging from electronics, furniture, used cars to even apartment for rent. Sometimes posters are willin"
Patrick B. - "Clarification
I would first try to understand what FB Marketplace is since I haven't really used it more than a few times.
My understanding is the following
Launched 2-3 years ago in the US, it is similar to web classified services such as Craigslist
The sellers are not businesses but rather individuals, primarily in local areas
Broad range of products with no particular focus: ranging from electronics, furniture, used cars to even apartment for rent. Sometimes posters are willin"See full answer
"Product Overview: Instagram, a social network owned by Meta, allows users to create and share various types of content, including photos, videos, and Reels, which are short, TikTok-style videos. The platform serves different user segments, including content creators, viewers, and the platform itself as an ecosystem.
User Segmentation: I segmented users into three primary categories:
Content Creators: This includes businesses, public figures, influencers, and regular users who crea"
Aviran H. - "Product Overview: Instagram, a social network owned by Meta, allows users to create and share various types of content, including photos, videos, and Reels, which are short, TikTok-style videos. The platform serves different user segments, including content creators, viewers, and the platform itself as an ecosystem.
User Segmentation: I segmented users into three primary categories:
Content Creators: This includes businesses, public figures, influencers, and regular users who crea"See full answer
"Machine learning software engineer interviews at Google are really challenging. The questions are difficult, specific to Google, and they cover a wide range of topics."
Million D. - "Machine learning software engineer interviews at Google are really challenging. The questions are difficult, specific to Google, and they cover a wide range of topics."See full answer
"I was working for my friend building streams at venues across the Chicago land area for FGC (fighting game tournaments), I adjusted and engineered his equipment to be set up permanently that's until covid came around at least. I used OBS to give visual appearances to stream watchers. So we're talking about subscribe, follow, and donation notifications and things of that nature for viewers to know they contributed in one of those ways. I set up proper sign-up scheduling for participants to lock t"
Ayinde B. - "I was working for my friend building streams at venues across the Chicago land area for FGC (fighting game tournaments), I adjusted and engineered his equipment to be set up permanently that's until covid came around at least. I used OBS to give visual appearances to stream watchers. So we're talking about subscribe, follow, and donation notifications and things of that nature for viewers to know they contributed in one of those ways. I set up proper sign-up scheduling for participants to lock t"See full answer
"Approach
Clarify the question
Define deaf --> unable to hear, but can communicate via sign language, lip read and use all other senses
Define fire alarm --> for residential use, it notifies occupants of smoke and potential fires and alerts fire department to check in and/or come over
Define constraints --> budgetary constraint, design should be user-friendly and convenient
Define goals --> get folks out of harm's way quickly and notify fire department to c"
Bella R. - "Approach
Clarify the question
Define deaf --> unable to hear, but can communicate via sign language, lip read and use all other senses
Define fire alarm --> for residential use, it notifies occupants of smoke and potential fires and alerts fire department to check in and/or come over
Define constraints --> budgetary constraint, design should be user-friendly and convenient
Define goals --> get folks out of harm's way quickly and notify fire department to c"See full answer