"#include
// Naive method to find a pair in an array with a given sum
void findPair(int nums[], int n, int target)
{
// consider each element except the last
for (int i = 0; i < n - 1; i++)
{
// start from the i'th element until the last element
for (int j = i + 1; j < n; j++)
{
// if the desired sum is found, print it
if (nums[i] + nums[j] == target)
{
printf("Pair found (%d, %d)\n", nums[i], nums[j]);
return;
}
}
}
// we reach here if the pair is not found
printf("Pair not found");
}
"
Gundala tarun,cse2020 V. - "#include
// Naive method to find a pair in an array with a given sum
void findPair(int nums[], int n, int target)
{
// consider each element except the last
for (int i = 0; i < n - 1; i++)
{
// start from the i'th element until the last element
for (int j = i + 1; j < n; j++)
{
// if the desired sum is found, print it
if (nums[i] + nums[j] == target)
{
printf("Pair found (%d, %d)\n", nums[i], nums[j]);
return;
}
}
}
// we reach here if the pair is not found
printf("Pair not found");
}
"See full answer
"(1) Discovery: Get to know the stakeholders, PM, Engg team via 1-1. Attend project status meeting where either you are introduced to the stakeholders or actually run it with the goal being to introduce yourself and that you will be catching up on the state of the project in time of the next meeting
Understand the Goals of the project and its impact on team and enterprise
(2) Planning:
Based on current velocity/ burn-rate, estimate what % of the project would be complete at 100% resource uti"
Adib M. - "(1) Discovery: Get to know the stakeholders, PM, Engg team via 1-1. Attend project status meeting where either you are introduced to the stakeholders or actually run it with the goal being to introduce yourself and that you will be catching up on the state of the project in time of the next meeting
Understand the Goals of the project and its impact on team and enterprise
(2) Planning:
Based on current velocity/ burn-rate, estimate what % of the project would be complete at 100% resource uti"See full answer
"Clarify:
Zoom for business - we are referring to Zoom meetings for enterprise customers
Are there any specific features or goals we want to track. Assumption - We are at overall zoom business for enterprise customers
Is there any particular geography or demographics we want to look at - Assumption - we are looking at across the globe
Goals:
Zoom allows users to conduct meetings internally and externally with folks across the organization. Enterprise customers access Zoom with their cor"
Sahil A. - "Clarify:
Zoom for business - we are referring to Zoom meetings for enterprise customers
Are there any specific features or goals we want to track. Assumption - We are at overall zoom business for enterprise customers
Is there any particular geography or demographics we want to look at - Assumption - we are looking at across the globe
Goals:
Zoom allows users to conduct meetings internally and externally with folks across the organization. Enterprise customers access Zoom with their cor"See full answer
"#include
#include
#include
using namespace std;
vector diff(const vector& A, const vector& B) {
unordered_set elements;
vector result;
for (const auto& element : A) {
elements.insert(element);
}
for (const auto& element : B) {
if (elements.find(element) == elements.end()) {
result.push_back(element);
} else {
elements.erase(element);
}
}
for"
Chinmay S. - "#include
#include
#include
using namespace std;
vector diff(const vector& A, const vector& B) {
unordered_set elements;
vector result;
for (const auto& element : A) {
elements.insert(element);
}
for (const auto& element : B) {
if (elements.find(element) == elements.end()) {
result.push_back(element);
} else {
elements.erase(element);
}
}
for"See full answer
"What is Meta Quest, Horizon world VR game? Horizons worlds is a platform that lets creators build worlds where real people can come and interact. This could be a gaming world, a socializing world, a marketplace, immersive experience, etc.
Why would people want to use Horizon worlds: Because it isn’t possible to always visit all places in person
I know that Meta has been encouraging creators at this time because the Horizon’s worlds needs a lot of worlds for it to be interesting for customers
Cus"
Sandhya P. - "What is Meta Quest, Horizon world VR game? Horizons worlds is a platform that lets creators build worlds where real people can come and interact. This could be a gaming world, a socializing world, a marketplace, immersive experience, etc.
Why would people want to use Horizon worlds: Because it isn’t possible to always visit all places in person
I know that Meta has been encouraging creators at this time because the Horizon’s worlds needs a lot of worlds for it to be interesting for customers
Cus"See full answer
Product Manager
Execution
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Clarification: workplace is a communication messaging tool for employee to send and receive messages.
Why:
meta's mission
current landscape
market trends
meta's unique value
strength & weakness
Workplace Mission: build a communication tool for employees to better collaborate and engage with each other
Goal: focus on engagement, not revenue
Product ecosystem:
Meta
Company sourcing department
IT department
User:
sender/receiver
#of people log in
#of people"
Mark H. - "Clarification: workplace is a communication messaging tool for employee to send and receive messages.
Why:
meta's mission
current landscape
market trends
meta's unique value
strength & weakness
Workplace Mission: build a communication tool for employees to better collaborate and engage with each other
Goal: focus on engagement, not revenue
Product ecosystem:
Meta
Company sourcing department
IT department
User:
sender/receiver
#of people log in
#of people"See full answer
"Clarifying Question:
Are we talking about mission-oriented success or business-oriented success? [Let's assume mission-oriented]
Let's start by talking about where Pages fit into the mission of Facebook. Then we'll cover some relevant metrics, identify which are most important for measuring the success of Pages, and then talk about some trade-offs as part of a final recommendation.
Mission: Facebook's mission is to empower people to build community and to bring people closer togeth"
Ian S. - "Clarifying Question:
Are we talking about mission-oriented success or business-oriented success? [Let's assume mission-oriented]
Let's start by talking about where Pages fit into the mission of Facebook. Then we'll cover some relevant metrics, identify which are most important for measuring the success of Pages, and then talk about some trade-offs as part of a final recommendation.
Mission: Facebook's mission is to empower people to build community and to bring people closer togeth"See full answer
"First
Clarify whether this is for FB general account or business account
Why is removing the profile pic being considered in the first place? Declining conversion rates? TTV(signup to post creation) is perceived as too high wrt competing apps? Meta is considering a single signup for all its apps(FB, Insta, WA) & is looking to optimize the same?
Do we have any supporting data for this? user feedback?
Next
Look at current FB signup flow(assuming these are the steps since its be"
Debajyoti B. - "First
Clarify whether this is for FB general account or business account
Why is removing the profile pic being considered in the first place? Declining conversion rates? TTV(signup to post creation) is perceived as too high wrt competing apps? Meta is considering a single signup for all its apps(FB, Insta, WA) & is looking to optimize the same?
Do we have any supporting data for this? user feedback?
Next
Look at current FB signup flow(assuming these are the steps since its be"See full answer
"Clarifying questions:
Can you please clarify inflight ads? Are you referring to the Ads shown on the screens/TVs available for each seat on an airplane? Ans: Yes.
International flights or domestic? Ans: You pick. ( I picked US domestic)
Are you targeting any specific airline? Ans: No. All airlines.
Any specific type of ads such as banner ads, video ads etc? Ans: Video
We can calculate market size in two ways:
By calculating number of flights flying per day in the US * seat avai"
Vaidehi P. - "Clarifying questions:
Can you please clarify inflight ads? Are you referring to the Ads shown on the screens/TVs available for each seat on an airplane? Ans: Yes.
International flights or domestic? Ans: You pick. ( I picked US domestic)
Are you targeting any specific airline? Ans: No. All airlines.
Any specific type of ads such as banner ads, video ads etc? Ans: Video
We can calculate market size in two ways:
By calculating number of flights flying per day in the US * seat avai"See full answer
"Clarify:
What is a transaction in Instagram Shops? Users click on an item and complete the payment in the Instagram Shops interface
How many transactions happen in Instagram shop per day/month?
What percentage of users have completed at least 1 transaction on Instagram Shops in the last year?
Key Metric to improve: # Users completing a transaction
Goals of the Product / Feature:
Meta’s goal is to build community and connect people together
Instagram’s goal is to connect and"
Nikitha G. - "Clarify:
What is a transaction in Instagram Shops? Users click on an item and complete the payment in the Instagram Shops interface
How many transactions happen in Instagram shop per day/month?
What percentage of users have completed at least 1 transaction on Instagram Shops in the last year?
Key Metric to improve: # Users completing a transaction
Goals of the Product / Feature:
Meta’s goal is to build community and connect people together
Instagram’s goal is to connect and"See full answer
"Clarifying Questions:
Do we have any specific goal in mind for this new product, for example targeting new audience, expansion to new places , catering to new need etc.
· I am going to assume targeting new audience
Do we have any constraints?
· No constraints
When you say restaurants does it mean casual restaurants, pubs, food joints 5 star hotels etc.
· I am going to assume all kind of restaurants who have already registered there establishments on Swiggy
Structure
User Segme"
Gaurav C. - "Clarifying Questions:
Do we have any specific goal in mind for this new product, for example targeting new audience, expansion to new places , catering to new need etc.
· I am going to assume targeting new audience
Do we have any constraints?
· No constraints
When you say restaurants does it mean casual restaurants, pubs, food joints 5 star hotels etc.
· I am going to assume all kind of restaurants who have already registered there establishments on Swiggy
Structure
User Segme"See full answer
"Facebook's mission is to bring people closer. And sports is common language connecting people across the world.
The joy of enjoying watching sports is with friends who also support the same team, cheer for them and trade facts about them.
The product I would build is a live interactive sports app that a group of friends, though they are apart physically, can join into, chat and share happiness. The interactive sports app will stream live sports and allow users to create a community or group"
Rishi P. - "Facebook's mission is to bring people closer. And sports is common language connecting people across the world.
The joy of enjoying watching sports is with friends who also support the same team, cheer for them and trade facts about them.
The product I would build is a live interactive sports app that a group of friends, though they are apart physically, can join into, chat and share happiness. The interactive sports app will stream live sports and allow users to create a community or group"See full answer
"Clarify: IG shops is 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. Correct?
Clarify: Can only sellers/businesses which own their inventory have a "shop"? Or can a social media influencer (different IG account) sell on behalf of a business?
Structure: In order to figure out what success looks like, I'd fi"
Anonymous Crab - "Clarify: IG shops is 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. Correct?
Clarify: Can only sellers/businesses which own their inventory have a "shop"? Or can a social media influencer (different IG account) sell on behalf of a business?
Structure: In order to figure out what success looks like, I'd fi"See full answer
"Why is this important?
Human capital is the core competitive advantage for technology companies, especially Google. Making the best hire for a given position vs not at scale can mean hours of lost productivity with significant monetary implications.
The corollary to a false negative is also a false positive. Assuming that the goal is to hire the best candidate for a given job, the fact that the right person was not hired means the less than the right person for the job was.
Impact : Delta"
Sukriti C. - "Why is this important?
Human capital is the core competitive advantage for technology companies, especially Google. Making the best hire for a given position vs not at scale can mean hours of lost productivity with significant monetary implications.
The corollary to a false negative is also a false positive. Assuming that the goal is to hire the best candidate for a given job, the fact that the right person was not hired means the less than the right person for the job was.
Impact : Delta"See full answer
"Clarifying questions: is this a brand new product, or are we improving an existing one? (i.e. are we going to have to migrate an existing codebase or are we starting from scratch?). are we resource-strapped (e.g. # engineers, time)? are there any specific priorities for the product, or should i leave it open-ended?
Assume: brand new product, well-resourced, no specific priorities.
It seems that there are two sides to this question: 1) technical evaluation of different languages, and 2)"
Laura S. - "Clarifying questions: is this a brand new product, or are we improving an existing one? (i.e. are we going to have to migrate an existing codebase or are we starting from scratch?). are we resource-strapped (e.g. # engineers, time)? are there any specific priorities for the product, or should i leave it open-ended?
Assume: brand new product, well-resourced, no specific priorities.
It seems that there are two sides to this question: 1) technical evaluation of different languages, and 2)"See full answer
"Let's start by understanding Google's goals with Search. Google Search is by far the #1 search engine, capturing 70% of the search market.
There are probably two reasons why Google would bid to maintain its place as the default search engine on Firefox: the first, Firefox is a popular web browser, with many users, and Google wants to retain the large user base who search on Firefox. Second, Firefox users tend to be more privacy oriented than users of other browsers, therefore Google wants to c"
Rika S. - "Let's start by understanding Google's goals with Search. Google Search is by far the #1 search engine, capturing 70% of the search market.
There are probably two reasons why Google would bid to maintain its place as the default search engine on Firefox: the first, Firefox is a popular web browser, with many users, and Google wants to retain the large user base who search on Firefox. Second, Firefox users tend to be more privacy oriented than users of other browsers, therefore Google wants to c"See full answer
"Clarifying Questions
Have we confirmed this was a server side issue and not client side or network related?
Interviewer confirms this was a server side issue
Do we have additional information on whether this was region specific, user specific?
Interviewer says you can make some assumptions
Introduction
I am going to focus on a few potential factors and describe how they could lead to system downtime:
Data Center Power Outage
Software Deployment
Software Bug
P"
Catherine Z. - "Clarifying Questions
Have we confirmed this was a server side issue and not client side or network related?
Interviewer confirms this was a server side issue
Do we have additional information on whether this was region specific, user specific?
Interviewer says you can make some assumptions
Introduction
I am going to focus on a few potential factors and describe how they could lead to system downtime:
Data Center Power Outage
Software Deployment
Software Bug
P"See full answer
"At a high level, the core challenge here revolves around building an effective recommendation algorithm for news.
News is an inherently diverse category, spanning various topics and catering to a wide array of user types and personas, such as adults, business professionals, general readers, or specific cohorts with unique interests. Consequently, developing a single, one-size-fits-all recommendation algorithm is not feasible.
To enhance the personalization of the news recommendation algorithm,"
Sai vuppalapati M. - "At a high level, the core challenge here revolves around building an effective recommendation algorithm for news.
News is an inherently diverse category, spanning various topics and catering to a wide array of user types and personas, such as adults, business professionals, general readers, or specific cohorts with unique interests. Consequently, developing a single, one-size-fits-all recommendation algorithm is not feasible.
To enhance the personalization of the news recommendation algorithm,"See full answer