"1 - Oder list of Kid Position and Sellers Positions (ascending)
2 - Implement a method to check distant 'e' for every kid pos (finding nearest seller and checking if sellerpos - currkid_pos < e, for all kid pos)
3 - Calculate mid from 0 to the 'max post' in between both kids and seller list: (max(max(k) -min(k), max(s) - min(s)))
4 - Perform binary search to find distance 'e' that satisfy step '2'"
Alejandro C. - "1 - Oder list of Kid Position and Sellers Positions (ascending)
2 - Implement a method to check distant 'e' for every kid pos (finding nearest seller and checking if sellerpos - currkid_pos < e, for all kid pos)
3 - Calculate mid from 0 to the 'max post' in between both kids and seller list: (max(max(k) -min(k), max(s) - min(s)))
4 - Perform binary search to find distance 'e' that satisfy step '2'"See full answer
"#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"
Anonymous Possum - "#inplace reversal without inbuilt functions
def reverseString(s):
chars = list(s)
l, r = 0, len(s)-1
while l < r:
chars[l],chars[r] = chars[r],chars[l]
l += 1
r -= 1
reversed = "".join(chars)
return reversed
"See full answer
"We will not always have all the required data to make a decision quickly. We need to work with ambiguity effectively by tying up the available facts with intuition."
Sankar S. - "We will not always have all the required data to make a decision quickly. We need to work with ambiguity effectively by tying up the available facts with intuition."See full answer
"How do you find consecutive days for login (MySQL, SQL, date, subquery, MySQL 5.7, development)?
1
Follow
Request
Answer
More
All related (34)
Recommended
📷
Trausti Thor Johannsson
·
Follow
Been using MySQL for more than 16 yearsDec 27
There are functions like DATEDIFF but there are also BETWE"
Hayatu H. - "How do you find consecutive days for login (MySQL, SQL, date, subquery, MySQL 5.7, development)?
1
Follow
Request
Answer
More
All related (34)
Recommended
📷
Trausti Thor Johannsson
·
Follow
Been using MySQL for more than 16 yearsDec 27
There are functions like DATEDIFF but there are also BETWE"See full answer
Data Engineer
Coding
+1 more
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"Explained in STAR format one of the project situation where I had originally approved problem with different design which was correct approach that time. But as the project progressed that approach needed revision. Emphasized on facts why original approach was taken with points. Also focused tail end of discussion on learnings out of situation and how you end up deploying better solution from that learning."
Vijay P. - "Explained in STAR format one of the project situation where I had originally approved problem with different design which was correct approach that time. But as the project progressed that approach needed revision. Emphasized on facts why original approach was taken with points. Also focused tail end of discussion on learnings out of situation and how you end up deploying better solution from that learning."See full answer
"Clarify
10X -> usage or revenue
Approach
What is Msft Copilot & key capabilities
Understand the space in which Copilot operates :
Target segments & use-cases serve
Competitors (alternatives)
Leverage microsoft has :
Understand the stack (infra -> application layer) -> leverage
Understand Microsoft ecosystem & leverage we have
Define : 10X growth strategy (for whom -> & what? -> distribution (acquire & retain))
MSft Copilot & key capabilities
Cons"
Neeraj K. - "Clarify
10X -> usage or revenue
Approach
What is Msft Copilot & key capabilities
Understand the space in which Copilot operates :
Target segments & use-cases serve
Competitors (alternatives)
Leverage microsoft has :
Understand the stack (infra -> application layer) -> leverage
Understand Microsoft ecosystem & leverage we have
Define : 10X growth strategy (for whom -> & what? -> distribution (acquire & retain))
MSft Copilot & key capabilities
Cons"See full answer
"What are you strengths -:
My strengths would include my eagerness to learn. This allows me to be open to new projects, roles and products and I can give my 100% to achieve the goals expected of me
Other strengths would include my collaborative approach to work. I believe a team can achieve tremendous success if shares a common goal, respects other's opinions and contribution and is built on fundamental of trust
Finally my biggest strength would be my commitment and passion to solve the custome"
Amit A. - "What are you strengths -:
My strengths would include my eagerness to learn. This allows me to be open to new projects, roles and products and I can give my 100% to achieve the goals expected of me
Other strengths would include my collaborative approach to work. I believe a team can achieve tremendous success if shares a common goal, respects other's opinions and contribution and is built on fundamental of trust
Finally my biggest strength would be my commitment and passion to solve the custome"See full answer
"I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"
Jaison E. - "I broke down my answer into Understanding the goal, investigating the current state and its challenges, prioritizing opportunities, brainstorming solutions, and selecting solutions.
To understand the goal and current state, I asked questions about the onboarding funnel and the conversion percentages. They have clear metrics to share, with the specific conversion rates for each stage.
I then identified the subscription screen in the flow as one of the key opportunities, as most of the drop happ"See full answer
"
Company Goal: Make quality service at competitive price available for customers and enable contractor to maximize income sources
Clarification: Post Booking Experience is the user flow from the point a booking is confirmed to the time the service is delivered to the customer.
Metric: CSAT and Orders successfully completed
Personas: Customer, service provider, business
USER JOURNEY
Customer (User Journey)
Booking confirmed on portal
Add to calendar
Email / text con"
Saurabh G. - "
Company Goal: Make quality service at competitive price available for customers and enable contractor to maximize income sources
Clarification: Post Booking Experience is the user flow from the point a booking is confirmed to the time the service is delivered to the customer.
Metric: CSAT and Orders successfully completed
Personas: Customer, service provider, business
USER JOURNEY
Customer (User Journey)
Booking confirmed on portal
Add to calendar
Email / text con"See full answer
"Value of Moving All Customers to the Mobile App
Full Monitoring of User Behavior
Gain deeper insights into customer preferences and habits.
Use data analytics to identify trends, predict needs, and offer personalized solutions.
Better Engagement
Provide a more interactive and engaging experience compared to traditional channels.
Enable gamification, personalized notifications, and targeted campaigns to keep users active.
Enhanced Direct Interaction
_Leverage"
Hidayat E. - "Value of Moving All Customers to the Mobile App
Full Monitoring of User Behavior
Gain deeper insights into customer preferences and habits.
Use data analytics to identify trends, predict needs, and offer personalized solutions.
Better Engagement
Provide a more interactive and engaging experience compared to traditional channels.
Enable gamification, personalized notifications, and targeted campaigns to keep users active.
Enhanced Direct Interaction
_Leverage"See full answer
"A recursive backtracking solution in python.
def changeSigns(nums: List[int], S: int) -> int:
res = []
n = len(nums)
def backtrack(index, curr, arr):
if curr == S and len(arr) == n:
res.append(arr[:])
return
if index >= len(nums):
return
for i in range(index, n):
add +ve number
arr.append(nums[i])
backtrack(i+1, curr + nums[i], arr)
arr.pop()
"
Yugaank K. - "A recursive backtracking solution in python.
def changeSigns(nums: List[int], S: int) -> int:
res = []
n = len(nums)
def backtrack(index, curr, arr):
if curr == S and len(arr) == n:
res.append(arr[:])
return
if index >= len(nums):
return
for i in range(index, n):
add +ve number
arr.append(nums[i])
backtrack(i+1, curr + nums[i], arr)
arr.pop()
"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
"Clarifying questions
is there a main reason why we want to improve it? For instance:
active users declined
monetization declined
performance issues
customer complaints
(Based on this clarifying question the following answer could be any to be honest. if the interviewer says that it's an open questions, then I would go to the product design framework)
Assumption
Based on the impact that we would like to do,
1) I would assume that we are looking to improve the messaging experi"
Sergio C. - "Clarifying questions
is there a main reason why we want to improve it? For instance:
active users declined
monetization declined
performance issues
customer complaints
(Based on this clarifying question the following answer could be any to be honest. if the interviewer says that it's an open questions, then I would go to the product design framework)
Assumption
Based on the impact that we would like to do,
1) I would assume that we are looking to improve the messaging experi"See full answer
"Situation:
Was given negative feedback about an aspect of my communications. The person said it made them worried because of the brevity and the format of some messages. (Their worry was that a longer negative message was coming)
Task(s):
Reflected on feedback about my communication style.
Acknowledged the point.
Assumed best intentions on the part of the person giving the feedback
Saw things from the other person's point of view
Action(s):
In private - Apologised to the person wh"
Hans - "Situation:
Was given negative feedback about an aspect of my communications. The person said it made them worried because of the brevity and the format of some messages. (Their worry was that a longer negative message was coming)
Task(s):
Reflected on feedback about my communication style.
Acknowledged the point.
Assumed best intentions on the part of the person giving the feedback
Saw things from the other person's point of view
Action(s):
In private - Apologised to the person wh"See full answer
"Implemented a recursive function which returns the length of the list so far. when the returned value equals k + 1 , assign current.next = current.next.next. If I made it back to the head return root.next as the new head of the linked list."
דניאל ר. - "Implemented a recursive function which returns the length of the list so far. when the returned value equals k + 1 , assign current.next = current.next.next. If I made it back to the head return root.next as the new head of the linked list."See full answer
"Clarifying Q
Is the search traffic meaning # visits clicked through the 'search' button from the homepage(search CTR)? or does this include # pages viewed after the search result pages (search depth)?
Hypothesis
I believe introducing Gen AI as a default feature on the Google's search box will increase #search traffic. I assume the biggest user pain point within current google homepage is that deciding on a keyword for search. Unlike other alternative platforms such as"
Cj K. - "Clarifying Q
Is the search traffic meaning # visits clicked through the 'search' button from the homepage(search CTR)? or does this include # pages viewed after the search result pages (search depth)?
Hypothesis
I believe introducing Gen AI as a default feature on the Google's search box will increase #search traffic. I assume the biggest user pain point within current google homepage is that deciding on a keyword for search. Unlike other alternative platforms such as"See full answer