"function isPalindrome(s, start, end) {
while (s[start] === s[end] && end >= start) {
start++;
end--;
}
return end <= start;
}
function longestPalindromicSubstring(s) {
let longestPalindrome = '';
for (let i=0; i < s.length; i++) {
let j = s.length-1;
while (s[i] !== s[j] && i <= j) {
j--;
}
if (s[i] === s[j]) {
if (isPalindrome(s, i, j)) {
const validPalindrome = s.substring(i, j+1"
Tiago R. - "function isPalindrome(s, start, end) {
while (s[start] === s[end] && end >= start) {
start++;
end--;
}
return end <= start;
}
function longestPalindromicSubstring(s) {
let longestPalindrome = '';
for (let i=0; i < s.length; i++) {
let j = s.length-1;
while (s[i] !== s[j] && i <= j) {
j--;
}
if (s[i] === s[j]) {
if (isPalindrome(s, i, j)) {
const validPalindrome = s.substring(i, j+1"See full answer
"Define the goal of the experiment. What do you want to test? Are you trying to improve conversion rates, increase engagement, or something else?
Identify the variables to test. What are the different options that you want to test? For example, if you are testing different call-to-action buttons, your variables would be the different button text and colors.
Set up the experiment. This involves creating two versions of the app or website, one for each variation of the variable that you are testi"
Praful B. - "Define the goal of the experiment. What do you want to test? Are you trying to improve conversion rates, increase engagement, or something else?
Identify the variables to test. What are the different options that you want to test? For example, if you are testing different call-to-action buttons, your variables would be the different button text and colors.
Set up the experiment. This involves creating two versions of the app or website, one for each variation of the variable that you are testi"See full answer
"My clarifying questions :
what's the impact of the bug ? / responses : intermittent, no platform stability at risk, but a feature, many customer rely on this buggy feature
what's the estimation of the user impacted ? / responses : 65% of the users
how long to figure out a solution ? / reponses : 1 week
My action plan :
delay the publish of the release in order to protect the brand identity and customer trust
talk to the big customer to explain the situation with transparency and nego"
José N. - "My clarifying questions :
what's the impact of the bug ? / responses : intermittent, no platform stability at risk, but a feature, many customer rely on this buggy feature
what's the estimation of the user impacted ? / responses : 65% of the users
how long to figure out a solution ? / reponses : 1 week
My action plan :
delay the publish of the release in order to protect the brand identity and customer trust
talk to the big customer to explain the situation with transparency and nego"See full answer
"Here are some ways I would evaluate the optimum number of notifications as a product manager:
Conduct user research and surveys to understand preferences on notification frequency. Ask users directly how many is too many for different types of notifications.
Analyze usage data to see when notifications start getting ignored or dismissed. Look for drop offs in engagement after a certain number of notifications.
A/B test different notification frequencies and content types. Measure the open"
Pattie K. - "Here are some ways I would evaluate the optimum number of notifications as a product manager:
Conduct user research and surveys to understand preferences on notification frequency. Ask users directly how many is too many for different types of notifications.
Analyze usage data to see when notifications start getting ignored or dismissed. Look for drop offs in engagement after a certain number of notifications.
A/B test different notification frequencies and content types. Measure the open"See full answer
"Clarifying questions
By mutual follows, we mean that both of them follow each other on Tiktok, correct? : Yes
We want to know an average number for the same, ie mean and not median or any other value, right? : Yes
Shall we consider the global audience or that of a particular country? : Global
Can we assume the time setting of this question as of 2025?: yes
Here’s how I will tackle this question.
> We will first estimate the total number of Tiktok users. Then we will try to"
Kartikeya N. - "Clarifying questions
By mutual follows, we mean that both of them follow each other on Tiktok, correct? : Yes
We want to know an average number for the same, ie mean and not median or any other value, right? : Yes
Shall we consider the global audience or that of a particular country? : Global
Can we assume the time setting of this question as of 2025?: yes
Here’s how I will tackle this question.
> We will first estimate the total number of Tiktok users. Then we will try to"See full answer
"I'd do an audit of what we understand, the gaps and the risks.
What information do we have and how confident do we feel?
What assumptions do we have?
What do we not know?
What is the risk of making certain assumptions?
With this information, and a pulse of your team you can get an understanding of the risk level for moving forward. If the risk is high, you need to go back to leadership with the evidence and ask for more time.
**What's the risk if we don't launch on"
James W. - "I'd do an audit of what we understand, the gaps and the risks.
What information do we have and how confident do we feel?
What assumptions do we have?
What do we not know?
What is the risk of making certain assumptions?
With this information, and a pulse of your team you can get an understanding of the risk level for moving forward. If the risk is high, you need to go back to leadership with the evidence and ask for more time.
**What's the risk if we don't launch on"See full answer
"Before I begin, I would confirm the idea of Stories as "phone-shot video with light editing to share a person's current experience in a short form video". I would also ask if they would be integrated into the current application or a standalone service.
The process I'll use is to think through twitter's mission, outline its current user personas and how they use twitter. Articulate a rubric framework for stakeholder needs, and then compare the stories idea against that.
To start off with the m"
Anonymous Wallaby - "Before I begin, I would confirm the idea of Stories as "phone-shot video with light editing to share a person's current experience in a short form video". I would also ask if they would be integrated into the current application or a standalone service.
The process I'll use is to think through twitter's mission, outline its current user personas and how they use twitter. Articulate a rubric framework for stakeholder needs, and then compare the stories idea against that.
To start off with the m"See full answer
"Lets start with assumptions
100m people go out to bars in US
Assuming COVID is behind us
Also assuming this is annually and not monthly or daily (though it might be better to ask this)
Step 1: Why should Google build something like this
Google Mission: Make information accessible and useful
Google's current state: Focus on improving current products (improve engagement and thus monetization) while also building things for future (growth)
Product Mission: Make going to bar a"
Date G. - "Lets start with assumptions
100m people go out to bars in US
Assuming COVID is behind us
Also assuming this is annually and not monthly or daily (though it might be better to ask this)
Step 1: Why should Google build something like this
Google Mission: Make information accessible and useful
Google's current state: Focus on improving current products (improve engagement and thus monetization) while also building things for future (growth)
Product Mission: Make going to bar a"See full answer
"I depends on the severity of the bug and the impact of the new feature. Is the bug a blocker and is having direct impact on the business flow? Is the new feature mission critical and has a major impact on customer experience, revenue, business, etc. Conduct an analysis. Include key stakeholders in this discussion."
Kiran K. - "I depends on the severity of the bug and the impact of the new feature. Is the bug a blocker and is having direct impact on the business flow? Is the new feature mission critical and has a major impact on customer experience, revenue, business, etc. Conduct an analysis. Include key stakeholders in this discussion."See full answer
"Q. Why is a promotional tool required?
Swiggy vision is to provide unparalleled convenience to customers.
There are a number of newer restaurants launching everyday all over India and swiggy is a place not just for order but also for customer acquisition and feedback.
And in India one of the most tried and tested ways to acquire is by giving discounts on all orders or special items if one wants to try newer items with customers or even cross sell.
I myself have used Swiggy trynew code multiple t"
Vishal S. - "Q. Why is a promotional tool required?
Swiggy vision is to provide unparalleled convenience to customers.
There are a number of newer restaurants launching everyday all over India and swiggy is a place not just for order but also for customer acquisition and feedback.
And in India one of the most tried and tested ways to acquire is by giving discounts on all orders or special items if one wants to try newer items with customers or even cross sell.
I myself have used Swiggy trynew code multiple t"See full answer
"We can start by considering the key components: waiters, tables and customers. We'll need a database to store information about waiters, tables and customers, each waiter can have a unique ID and we can track the. number of tables they are servicng. Tables can have attributes like table number, capacity, and current status. Customers can be tracked by their arrival time and party size. we can calculat ethe expected waiting time bu considering the average time a table is occupied and the number o"
Brandon C. - "We can start by considering the key components: waiters, tables and customers. We'll need a database to store information about waiters, tables and customers, each waiter can have a unique ID and we can track the. number of tables they are servicng. Tables can have attributes like table number, capacity, and current status. Customers can be tracked by their arrival time and party size. we can calculat ethe expected waiting time bu considering the average time a table is occupied and the number o"See full answer