"Even more faster and vectorized version, using np.linalg.norm - to avoid loop and np.argpartition to select lowest k. We dont need to sort whole array - we need to be sure that first k elements are lower than the rest.
import numpy as np
def knn(Xtrain, ytrain, X_new, k):
distances = np.linalg.norm(Xtrain - Xnew, axis=1)
k_indices = np.argpartition(distances, k)[:k] # O(N) selection instead of O(N log N) sort
return int(np.sum(ytrain[kindices]) > k / 2.0)
`"
Dinar M. - "Even more faster and vectorized version, using np.linalg.norm - to avoid loop and np.argpartition to select lowest k. We dont need to sort whole array - we need to be sure that first k elements are lower than the rest.
import numpy as np
def knn(Xtrain, ytrain, X_new, k):
distances = np.linalg.norm(Xtrain - Xnew, axis=1)
k_indices = np.argpartition(distances, k)[:k] # O(N) selection instead of O(N log N) sort
return int(np.sum(ytrain[kindices]) > k / 2.0)
`"See full answer
"I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question.
Clarifying Questions
Is this something we are looking to create Microsoft or are we a startup company etc? >
Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"
Rohan S. - "I got to play with a VR for the first time a few weeks ago at my friend’s house and I loved it, so this is a really fun question.
Clarifying Questions
Is this something we are looking to create Microsoft or are we a startup company etc? >
Education can refer to elementary, high school, university, or even self-learning (e.g. Udemy). Is there a specific area we want to focus on? << What do y"See full answer
"Even after a successful launch and long-term performance locally, app developers will need to develop a rigorous expansion strategy to succeed on a global scale. And although users are more connected than ever before, each region will present new challenges and considerations that must be solved by data-driven insights and research into the target market. This guide outlines everything you need to consider when expanding into new territories and localizing your app for new audiences."
Abdurhman M. - "Even after a successful launch and long-term performance locally, app developers will need to develop a rigorous expansion strategy to succeed on a global scale. And although users are more connected than ever before, each region will present new challenges and considerations that must be solved by data-driven insights and research into the target market. This guide outlines everything you need to consider when expanding into new territories and localizing your app for new audiences."See full answer
Design Manager
Behavioral
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"To measure the success of the WhatsApp engagement and retention is crucial along with monitiozation. So, i will make sure following metrics:**
Daily Active Users (DAU) and Monthly Active Users (MAU): DAU and MAU are critical metrics for understanding the scale and engagement level of the user base. A healthy ratio between DAU and MAU (known as stickiness) indicates strong user retention and habitual use.
Message Sent/Received Volume: The volume of messages sent and received is a d"
Bhuppi S. - "To measure the success of the WhatsApp engagement and retention is crucial along with monitiozation. So, i will make sure following metrics:**
Daily Active Users (DAU) and Monthly Active Users (MAU): DAU and MAU are critical metrics for understanding the scale and engagement level of the user base. A healthy ratio between DAU and MAU (known as stickiness) indicates strong user retention and habitual use.
Message Sent/Received Volume: The volume of messages sent and received is a d"See full answer
"Clarifying and assumption
When we say financial security, are we talking about authentication, fraud detection or money laundering? Assumption: Fraud detection. Focusing specifically on transaction-level fraud.
Is this an internal AI implementation or an external third-party service we provide to multiple financial businesses? Assumption: External Third-party AI financial security product.
Requirements
Need to detect when fraudulent transactions happen.
**Detection stra"
Darpan D. - "Clarifying and assumption
When we say financial security, are we talking about authentication, fraud detection or money laundering? Assumption: Fraud detection. Focusing specifically on transaction-level fraud.
Is this an internal AI implementation or an external third-party service we provide to multiple financial businesses? Assumption: External Third-party AI financial security product.
Requirements
Need to detect when fraudulent transactions happen.
**Detection stra"See full answer
"I’d assess a new feature launch by first checking if it achieved the goal we set before launch, whether that’s driving engagement, monetization, or retention. I would look at adoption and usage to see if users are discovering and repeatedly using it, the impact on the main KPI we targeted, and guardrail metrics to ensure there’s no negative effect on core product health like retention, crashes, or satisfaction. Ideally I would measure this through an A/B test or phased rollout and complement the"
Madina A. - "I’d assess a new feature launch by first checking if it achieved the goal we set before launch, whether that’s driving engagement, monetization, or retention. I would look at adoption and usage to see if users are discovering and repeatedly using it, the impact on the main KPI we targeted, and guardrail metrics to ensure there’s no negative effect on core product health like retention, crashes, or satisfaction. Ideally I would measure this through an A/B test or phased rollout and complement the"See full answer
"Situation:
As a Product Manager at Cisco, I was leading the development of a new highly critical product for enterprise customers. Midway through the project, a key engineering team was reassigned due to an urgent security patch, leaving us understaffed with only six weeks left before a critical customer pilot.
Task:
I had to ensure the product launched on time without sacrificing key features, despite losing half of our engineering team. The challenge was to"
fuzzyicecream14 - "Situation:
As a Product Manager at Cisco, I was leading the development of a new highly critical product for enterprise customers. Midway through the project, a key engineering team was reassigned due to an urgent security patch, leaving us understaffed with only six weeks left before a critical customer pilot.
Task:
I had to ensure the product launched on time without sacrificing key features, despite losing half of our engineering team. The challenge was to"See full answer
"I would begin by asking the following clarifying questions:
Are there any special use cases such as VIP Penthouse access, restricted floors etc?
Do we need to consider safety requirements or other technical constraints such as maximum load/capacity?
If the lobby for the entire hotel located on the ground floor? Can we assume that the majority of the guest amenities are located near the lobby and lower floors?
Can we assume that the passenger controls on the floors are purely directional"
Pathworks P. - "I would begin by asking the following clarifying questions:
Are there any special use cases such as VIP Penthouse access, restricted floors etc?
Do we need to consider safety requirements or other technical constraints such as maximum load/capacity?
If the lobby for the entire hotel located on the ground floor? Can we assume that the majority of the guest amenities are located near the lobby and lower floors?
Can we assume that the passenger controls on the floors are purely directional"See full answer
"I’d discuss definition of keywords: UPI ( service ) and what does revenue mean in UPI
Assume goals - Increase 50% by the next one year
Geo - India
User
Users to Users ( P2P )
Users to Merchant ( P2M )
Merchants to Merchant (small-scale UPI )
Picked User Segment - Users to Merchant ( P2M )
Pain points
Subscriptions
Tap on pay
Frauds / Trust issues
Upper cap 1L
No Cost EMI / EMI on UPIs
Credit on UPIs
Spending Insights
Integrations with devices - smartwatches, smart TVs, sm"
KittyKat - "I’d discuss definition of keywords: UPI ( service ) and what does revenue mean in UPI
Assume goals - Increase 50% by the next one year
Geo - India
User
Users to Users ( P2P )
Users to Merchant ( P2M )
Merchants to Merchant (small-scale UPI )
Picked User Segment - Users to Merchant ( P2M )
Pain points
Subscriptions
Tap on pay
Frauds / Trust issues
Upper cap 1L
No Cost EMI / EMI on UPIs
Credit on UPIs
Spending Insights
Integrations with devices - smartwatches, smart TVs, sm"See full answer
"My Answer. Please let me know your feedback.
I have led many projects throughout my career. So, whenever I lead the project, I first try to clarify the goals and values delivered. For example, I was in charge of Data Analytics projects at my employment at a Startup. The team’s goal was launching the MVP. First, I discussed with the CEO to define the clear goal and scope for each of the projects.
Next, I identified all the key stakeholders and received their inputs on the project's different a"
Balaji G. - "My Answer. Please let me know your feedback.
I have led many projects throughout my career. So, whenever I lead the project, I first try to clarify the goals and values delivered. For example, I was in charge of Data Analytics projects at my employment at a Startup. The team’s goal was launching the MVP. First, I discussed with the CEO to define the clear goal and scope for each of the projects.
Next, I identified all the key stakeholders and received their inputs on the project's different a"See full answer
"Product Description
To start out with, I would like to make sure I understand how the product functions. To my understanding, the fundraising product is for:
Individuals and non-profits to set-up fundraisers to receive donations either to support a specific cause / initiative or to ask for help on a big expense like a medical bill
Individuals within these networks are able to donate
At times, Facebook will charge a small fee to help facilitate the money transfers
**Facebook Mis"
I C. - "Product Description
To start out with, I would like to make sure I understand how the product functions. To my understanding, the fundraising product is for:
Individuals and non-profits to set-up fundraisers to receive donations either to support a specific cause / initiative or to ask for help on a big expense like a medical bill
Individuals within these networks are able to donate
At times, Facebook will charge a small fee to help facilitate the money transfers
**Facebook Mis"See full answer
"Clarifying Questions :
By reducing bandwidth , do you mean reducing the total size of video transfer reduction ? Ans Yes
Is it ok to reduce the resolution by reducing the bandwidth : Ans May be yes and no
Any app in particular you are looking forward which could help talking from its standpoint : Ans : Youtube
Assumptions :
Youtube has a compression algorithm which can still be made better with the evolution of technologies
Solutions ( prioritised list )
Improve the compressio"
Kk - "Clarifying Questions :
By reducing bandwidth , do you mean reducing the total size of video transfer reduction ? Ans Yes
Is it ok to reduce the resolution by reducing the bandwidth : Ans May be yes and no
Any app in particular you are looking forward which could help talking from its standpoint : Ans : Youtube
Assumptions :
Youtube has a compression algorithm which can still be made better with the evolution of technologies
Solutions ( prioritised list )
Improve the compressio"See full answer