"What about exploiting the hash set and that is it?
def smallestSubstring(s: str, t: str) -> str:
if len(t) > len(s):
return ""
r = len(s) - 1
not_found = True
while r > 0 and not_found:
subs_set = set(s[0:r + 1])
for c in t:
if not c in subs_set:
not_found = False
if not_found:
r -= 1
else:
r += 1
l = 0
not_found = True
while l < r and not_"
Gabriele G. - "What about exploiting the hash set and that is it?
def smallestSubstring(s: str, t: str) -> str:
if len(t) > len(s):
return ""
r = len(s) - 1
not_found = True
while r > 0 and not_found:
subs_set = set(s[0:r + 1])
for c in t:
if not c in subs_set:
not_found = False
if not_found:
r -= 1
else:
r += 1
l = 0
not_found = True
while l < r and not_"See full answer
"Google Assistant is the Voice AI which converts Natural Language to Queries/Instruction , processes it and get the results and again converts it back to Meaningful Results to the User
Currently Google Assistant is Integrated in Multiple End Points.
Phone
Google Home
Chrome Cast
Google Chrome Books
Some of the Use Cases Google Assistant is used is
Making Phone Calls/Texting
Asking General Queries/Searching for Information
Integration with Devices and Turning them O"
Akshai V. - "Google Assistant is the Voice AI which converts Natural Language to Queries/Instruction , processes it and get the results and again converts it back to Meaningful Results to the User
Currently Google Assistant is Integrated in Multiple End Points.
Phone
Google Home
Chrome Cast
Google Chrome Books
Some of the Use Cases Google Assistant is used is
Making Phone Calls/Texting
Asking General Queries/Searching for Information
Integration with Devices and Turning them O"See full answer
"what is a task rabbit?
marketplace connecting users with freelance labor with local demand, allowing consumers to find help with everyday tasks, including furniture assembly, moving, delivery, and handy person work
Explain the User Flow in short:
User logs in, searches for the services, sorts, picks and books the service
the gig worker gets 24 hours to pick the request, accepted or declined
In case it is accepted then it is considered a "BOOKed"gig
what is the post booking experience?
-"
Anu S. - "what is a task rabbit?
marketplace connecting users with freelance labor with local demand, allowing consumers to find help with everyday tasks, including furniture assembly, moving, delivery, and handy person work
Explain the User Flow in short:
User logs in, searches for the services, sorts, picks and books the service
the gig worker gets 24 hours to pick the request, accepted or declined
In case it is accepted then it is considered a "BOOKed"gig
what is the post booking experience?
-"See full answer
"Let me tell you about a time when my manager was on a two week PTO and I was building the post-MVP roadmap for a newly launched product.
Being a SaaS platform for supporting restaurants, I'd led the conception, planning, development and launch of the MVP for an online ordering solution for diners in restaurants. After the launch of the MVP, our original plan was to build features which supported table-service restaurants like keeping an open tab. But while looking at the data, I realized that a"
Singer29 - "Let me tell you about a time when my manager was on a two week PTO and I was building the post-MVP roadmap for a newly launched product.
Being a SaaS platform for supporting restaurants, I'd led the conception, planning, development and launch of the MVP for an online ordering solution for diners in restaurants. After the launch of the MVP, our original plan was to build features which supported table-service restaurants like keeping an open tab. But while looking at the data, I realized that a"See full answer
Product Manager
Behavioral
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"public static void sortBinaryArray(int[] array) {
int len = array.length;
int[] res = new int[len];
int r=len-1;
for (int value : array) {
if(value==1){
res[r]= 1;
r--;
}
}
System.out.println(Arrays.toString(res));
}
`"
Nitin P. - "public static void sortBinaryArray(int[] array) {
int len = array.length;
int[] res = new int[len];
int r=len-1;
for (int value : array) {
if(value==1){
res[r]= 1;
r--;
}
}
System.out.println(Arrays.toString(res));
}
`"See full answer
"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
"Here are some strategies to mitigate the effects of organizational and architectural dependencies on a team's work.
Automation
Where possible, automate repetitive tasks, and include appropriate controls to ensure safety. For example, automate deployments, building in all needed safety and compliance checks, and let teams perform the process themselves, rather than having them back up in the Ops team’s queue.
Standardize processes
Even if you can’t automate a process, make it happen the s"
Mukul P. - "Here are some strategies to mitigate the effects of organizational and architectural dependencies on a team's work.
Automation
Where possible, automate repetitive tasks, and include appropriate controls to ensure safety. For example, automate deployments, building in all needed safety and compliance checks, and let teams perform the process themselves, rather than having them back up in the Ops team’s queue.
Standardize processes
Even if you can’t automate a process, make it happen the s"See full answer
"I used the GAME method.
Started first with defining the product and setting the mission and goal for Zoom. Stated that the product grew in popularity in 2020-2021 for both business and personal use, but since lockdown ended, shifted to business use. Goal is to effortlessly and seamlessly connect people anywhere. Focused on the business use case and stated Zoom makes revenue through contracts signed with various enterprises. Due to maturity of the product and business focused, said it make"
Jeffrey F. - "I used the GAME method.
Started first with defining the product and setting the mission and goal for Zoom. Stated that the product grew in popularity in 2020-2021 for both business and personal use, but since lockdown ended, shifted to business use. Goal is to effortlessly and seamlessly connect people anywhere. Focused on the business use case and stated Zoom makes revenue through contracts signed with various enterprises. Due to maturity of the product and business focused, said it make"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
"Why do we want to build an ad platform? Should we discuss if we should/should not do this? Or have we decided? Let's say we decided. Now what's the goal of ad platform? Additional revenue stream. We need to make sure the ads we show don't distract our users from the core product but help our users with their financial needs through relevant advertisements. It might not be a bad idea to monetize the 13M users as long as we're connecting them with the right brands/services.
Now let's look at the"
M N. - "Why do we want to build an ad platform? Should we discuss if we should/should not do this? Or have we decided? Let's say we decided. Now what's the goal of ad platform? Additional revenue stream. We need to make sure the ads we show don't distract our users from the core product but help our users with their financial needs through relevant advertisements. It might not be a bad idea to monetize the 13M users as long as we're connecting them with the right brands/services.
Now let's look at the"See full answer
"Currently, I do a lot of data analysis using Azure Databricks and PowerBI. In Databricks, I write some basic SQL queries to retrieve the data and then pull that data into PowerBI for analysis. While this is sufficient, I believe there is room to make this skill set stronger. One way that I mitigate this currently is to maintain a strong relationship with our data analytics team. Whenever I have issues massaging or querying the data, I will reach out to one of those team members to help me get to"
John F. - "Currently, I do a lot of data analysis using Azure Databricks and PowerBI. In Databricks, I write some basic SQL queries to retrieve the data and then pull that data into PowerBI for analysis. While this is sufficient, I believe there is room to make this skill set stronger. One way that I mitigate this currently is to maintain a strong relationship with our data analytics team. Whenever I have issues massaging or querying the data, I will reach out to one of those team members to help me get to"See full answer
"Clarifying questions:
what's the original goal of this feature? what user problem / issues we identified that we are trying to address?
Is there a particular user base or market/regions that we are trying to solve this issue for?
Is the experience going to impact the rider's action? or does it also change the driver experience?
Assume:
the issue we are solving for is focus on the rider's experience - the goal of this feature is to increase the % of matched ride (ie rider/driver matche"
Mark - "Clarifying questions:
what's the original goal of this feature? what user problem / issues we identified that we are trying to address?
Is there a particular user base or market/regions that we are trying to solve this issue for?
Is the experience going to impact the rider's action? or does it also change the driver experience?
Assume:
the issue we are solving for is focus on the rider's experience - the goal of this feature is to increase the % of matched ride (ie rider/driver matche"See full answer
"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
"Step 1: Define Objectives and Key Metrics
Objectives:
Understand the demand for group video calling.
Assess the potential impact on user engagement.
Identify technical and user experience considerations.
Key Metrics:
Call Frequency: Number of 1:1 calls per user.
Call Duration: Average duration of 1:1 calls.
Call Participants: Identify users who frequently call multiple individuals.
Concurrent Calls: Instances where users are engaged in multiple 1:1 call"
Bhavna S. - "Step 1: Define Objectives and Key Metrics
Objectives:
Understand the demand for group video calling.
Assess the potential impact on user engagement.
Identify technical and user experience considerations.
Key Metrics:
Call Frequency: Number of 1:1 calls per user.
Call Duration: Average duration of 1:1 calls.
Call Participants: Identify users who frequently call multiple individuals.
Concurrent Calls: Instances where users are engaged in multiple 1:1 call"See full answer
"The biggest factor that excites me about technology is its ever changing and dynamic trend. In my life, I have seen the transition from landlines to simple mobile to smartphones, from Cathode tube desktop screen to super slim TFT and many more. I think technology has now (with time) become integral part of human life and getting in-sync with it is like a normal and very cool phenomena."
Sagrika S. - "The biggest factor that excites me about technology is its ever changing and dynamic trend. In my life, I have seen the transition from landlines to simple mobile to smartphones, from Cathode tube desktop screen to super slim TFT and many more. I think technology has now (with time) become integral part of human life and getting in-sync with it is like a normal and very cool phenomena."See full answer