"Sorted the array and stored the minimum difference in a variable and then traversed the array for the pairs having minimum difference"
Aashka C. - "Sorted the array and stored the minimum difference in a variable and then traversed the array for the pairs having minimum difference"See full answer
"To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company.
Customers
We have seen Spotify has a high WAU. This means users are engaged to the platform for music.
Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days.
Podcasts are lesser commitment than audiobooks because of short episode length"
Simran M. - "To answer why Spotify introduced Podcasts, I would like to use 3C framework- Customer, Competitors and Company.
Customers
We have seen Spotify has a high WAU. This means users are engaged to the platform for music.
Listeners need some new trend to listen to while going to the gym for example, or being stuck in a traffic. Sense of listening to something productive is what users need these days.
Podcasts are lesser commitment than audiobooks because of short episode length"See full answer
"Before proceeding, I just wanted to clarify we wanted to check for the impact of showing content from non-friends in users’ feeds, and here non-friends I would assume could be anyone, but mainly like content creators, and I am not including ads here.
But I wanted to ask if there is any current logic as to what posts to show based on users' affinity to those posts, maybe basis the user engagement to Insta feed.
now objective of this would be to improve the engagement of the platform, as if users"
Dhruv S. - "Before proceeding, I just wanted to clarify we wanted to check for the impact of showing content from non-friends in users’ feeds, and here non-friends I would assume could be anyone, but mainly like content creators, and I am not including ads here.
But I wanted to ask if there is any current logic as to what posts to show based on users' affinity to those posts, maybe basis the user engagement to Insta feed.
now objective of this would be to improve the engagement of the platform, as if users"See full answer
"Functional Requirement
Ingest Book Reviews in real time
User in the website needs specify title tho search books, return response is the list of reviews on the books.
Non Functional Requirement:
User get real-time book reviews>
It nees to handle the search among 1 million of active users daily"
Simon O. - "Functional Requirement
Ingest Book Reviews in real time
User in the website needs specify title tho search books, return response is the list of reviews on the books.
Non Functional Requirement:
User get real-time book reviews>
It nees to handle the search among 1 million of active users daily"See full answer
"!! FEEDBACK WELCOME !!
Clarify question
By art we mean visual art, e.g. paintings? - Yes
Is this a solution to create art on Instagram or to showcase existing art on Instagram? - Create art
Why build this, Engagement or Acquisition? - Engagement
Reframe: We want to increase Instagram engagement through creation and sharing of art with followers.
Talking about the space
The Internet has over time continuously reduced barriers to creative expression. From blogging to Twitter,"
Apurv K. - "!! FEEDBACK WELCOME !!
Clarify question
By art we mean visual art, e.g. paintings? - Yes
Is this a solution to create art on Instagram or to showcase existing art on Instagram? - Create art
Why build this, Engagement or Acquisition? - Engagement
Reframe: We want to increase Instagram engagement through creation and sharing of art with followers.
Talking about the space
The Internet has over time continuously reduced barriers to creative expression. From blogging to Twitter,"See full answer
Product Manager
Product Design
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"In my role as a Product Owner, I was developing a platform for a logistics company.
As a PO and that too of a digital agency, my work was mostly before-end-to-after-end, it would start from pitching, strategy, product management, launch, funding deck prep.
In mid of the product management cycle, the client starts adding pressure to deliver way before the deadline, as they had found the PE firm that conceptually was ready to start funding discussion, since this was not scoped before the start,"
Umang S. - "In my role as a Product Owner, I was developing a platform for a logistics company.
As a PO and that too of a digital agency, my work was mostly before-end-to-after-end, it would start from pitching, strategy, product management, launch, funding deck prep.
In mid of the product management cycle, the client starts adding pressure to deliver way before the deadline, as they had found the PE firm that conceptually was ready to start funding discussion, since this was not scoped before the start,"See full answer
"I will divide my answer in 2 parts:
Process I use for managing risks in any Project
I will explain a real life situation where a Risk occurred and how I managed it
Process for Risk Management can be broken down into 3 parts:
Risk Identification: Risk identification is a team effort and is an ongoing process that happens throughout the Project. Technical Risks are usually identified during design/build/testing stage. I maintain a Risk register document to capture all the risks identified"
Saket S. - "I will divide my answer in 2 parts:
Process I use for managing risks in any Project
I will explain a real life situation where a Risk occurred and how I managed it
Process for Risk Management can be broken down into 3 parts:
Risk Identification: Risk identification is a team effort and is an ongoing process that happens throughout the Project. Technical Risks are usually identified during design/build/testing stage. I maintain a Risk register document to capture all the risks identified"See full answer
"Function signature for reference:
def calculate(servers: List[int], k: int) -> int:
...
To resolve this, you can use binary search considering left=0 and right=max(servers) * k
so
Example:
servers=[1,4,5] First server handle 1 request in let's say 1 second, second 4 seconds and last 5 seconds.
k=10
So I want to know the minimal time to process 10 requests
Get the mid for timeline
mid = (left+right)//2 -> mid is 25
Check how many we could process
25//1 = 25 25//4=6 25//5=5 so 25 + 6 +"
Babaa - "Function signature for reference:
def calculate(servers: List[int], k: int) -> int:
...
To resolve this, you can use binary search considering left=0 and right=max(servers) * k
so
Example:
servers=[1,4,5] First server handle 1 request in let's say 1 second, second 4 seconds and last 5 seconds.
k=10
So I want to know the minimal time to process 10 requests
Get the mid for timeline
mid = (left+right)//2 -> mid is 25
Check how many we could process
25//1 = 25 25//4=6 25//5=5 so 25 + 6 +"See full answer
"Addressed the duality of the feature - each user is a consumer and provider
Addressed pain points such as cleaning, security
"
Adi S. - "Addressed the duality of the feature - each user is a consumer and provider
Addressed pain points such as cleaning, security
"See full answer
"2 Approaches:
1) The more intuitive approach is doing a multi-source BFS from all cats and storing the distance of closest cats. Then do a dfs/bfs from rat to bread.
Time Complexity: O(mn + 4^L) where L is path length, worst case L could be mn
Space Complexity: O(m*n)
2) The first approach should be fine for interviews. But if they ask to optimize it further, you can use Binary Search. Problems like "Finding max of min distance" or "Finding min of max" could be usually solved by BS.
"
Karan K. - "2 Approaches:
1) The more intuitive approach is doing a multi-source BFS from all cats and storing the distance of closest cats. Then do a dfs/bfs from rat to bread.
Time Complexity: O(mn + 4^L) where L is path length, worst case L could be mn
Space Complexity: O(m*n)
2) The first approach should be fine for interviews. But if they ask to optimize it further, you can use Binary Search. Problems like "Finding max of min distance" or "Finding min of max" could be usually solved by BS.
"See full answer
"I: Design a banking app for kids S: Sure, let me start with clarifying questions. What is our goal for building this app? I: To create financial literacy early in childhood and also increase our customer base. S: Sure. Are we going to launch it globally or in any specific geography or demography? I: Globally. S: Sure, Any resource or time constraints to keep in mind because I need to prioritize the features on the roadmap based on that? Also, are we launching it on iOS or Android? I: No resource"
Sameer S. - "I: Design a banking app for kids S: Sure, let me start with clarifying questions. What is our goal for building this app? I: To create financial literacy early in childhood and also increase our customer base. S: Sure. Are we going to launch it globally or in any specific geography or demography? I: Globally. S: Sure, Any resource or time constraints to keep in mind because I need to prioritize the features on the roadmap based on that? Also, are we launching it on iOS or Android? I: No resource"See full answer
"Clarifying questions:
Revolut aim is to be one stop financial shop (super app) the cross border payments is yet another feature which makes cutomers come to revolut again and again to pay across borders, correct? If so, cross border payments is an important solution for Rev's overall mission and as a principal I would like to agree that whatever feature improvement we suggest should
Not take customer outside of Rev App
Should continue making Rev's cros border payments best in"
Rahul D. - "Clarifying questions:
Revolut aim is to be one stop financial shop (super app) the cross border payments is yet another feature which makes cutomers come to revolut again and again to pay across borders, correct? If so, cross border payments is an important solution for Rev's overall mission and as a principal I would like to agree that whatever feature improvement we suggest should
Not take customer outside of Rev App
Should continue making Rev's cros border payments best in"See full answer
"In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."
dreamingincode - "In the API design, the interviewer is switching between RPC style (operation based endpoints) and REST style (resource oriented). Sticking to one convention and explaining why it is preferred over the other e.g. REST if the twitter domain maps nicely to resources e.g. /tweet or /follower or /user would help to create a more consistent and unified API. It would make it easier for clients to integrate with the API as well."See full answer
"Restaurant Types
High-end
Fast-food
Regular
User Types
Restaurants – seeking operational efficiency and increased revenue.
Customers – categorized by group size and dining intent:
2–4 Friends/Family – casual dining.
Solo Diners – convenience and quick service.
Groups > 4 – shared orders and split bills.
Goal
Design a tablet solution to achieve product-market fit by addressing key pain points and driving high ad"
Brandy L. - "Restaurant Types
High-end
Fast-food
Regular
User Types
Restaurants – seeking operational efficiency and increased revenue.
Customers – categorized by group size and dining intent:
2–4 Friends/Family – casual dining.
Solo Diners – convenience and quick service.
Groups > 4 – shared orders and split bills.
Goal
Design a tablet solution to achieve product-market fit by addressing key pain points and driving high ad"See full answer
"So basically, we are losing our overall users, we are seeing a drop in the no. of users logging in daily.
Step 1-Clarifying questions:
Is this across any certain segments of users, ike gen-Z or content creators etc?
Is it affecting any particular segment of Instagram like stories, reels, content etc
Step 2-Forming high-level hypothesis:
External factors
-Are competitors like TikTok or YouTube Shorts
-Is it because of any seasonal changes (exam season etc)
Internal factors
-Are u"
Vanitha P. - "So basically, we are losing our overall users, we are seeing a drop in the no. of users logging in daily.
Step 1-Clarifying questions:
Is this across any certain segments of users, ike gen-Z or content creators etc?
Is it affecting any particular segment of Instagram like stories, reels, content etc
Step 2-Forming high-level hypothesis:
External factors
-Are competitors like TikTok or YouTube Shorts
-Is it because of any seasonal changes (exam season etc)
Internal factors
-Are u"See full answer
"Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."
Chitapuram N. - "Since there is a need for the data to be accurate and consistent without any latency to allocate a spot, can't the data be synchronously synced to replicas after every write as the number of writes are not many per min, instead of read lock phenomena
Let me know if i am on a wrong thought here."See full answer
"Design an alarm clock for blind people
Clarifying question:
Does it have to be a physical product or software? Your call
Do I need to think about the long-term implications of the product from a strategy perspective or a single product? single product
What are the metrics this company will focus on? Engagement
What industry are we in? (start-up, google/Amazon, etc) - Startup
What do we mean by blind? - ppl who cannot see anything, or people who still have sense of"
Manu G. - "Design an alarm clock for blind people
Clarifying question:
Does it have to be a physical product or software? Your call
Do I need to think about the long-term implications of the product from a strategy perspective or a single product? single product
What are the metrics this company will focus on? Engagement
What industry are we in? (start-up, google/Amazon, etc) - Startup
What do we mean by blind? - ppl who cannot see anything, or people who still have sense of"See full answer
"Best practices for prioritizing customer service requests
Prioritizing support requests is a key part of creating a customer journey optimized for maximum revenue. If you want to start using a ticket prioritization process that will boost both customer satisfaction and your bottom line, we've got nine proven best practices below:
Respond to your most loyal customers first
Tag repeat customers as high-priority tickets
Automate simple requests wherever possible
Mark tickets with urg"
Hayatu H. - "Best practices for prioritizing customer service requests
Prioritizing support requests is a key part of creating a customer journey optimized for maximum revenue. If you want to start using a ticket prioritization process that will boost both customer satisfaction and your bottom line, we've got nine proven best practices below:
Respond to your most loyal customers first
Tag repeat customers as high-priority tickets
Automate simple requests wherever possible
Mark tickets with urg"See full answer