"Use an index, two pointers, and a set to keep track of elements that you've seen.
pseudo code follows:
for i, elem in enumerate(array):
if elem in set return False
if i > N:
set.remove(array[i-N])"
Michael B. - "Use an index, two pointers, and a set to keep track of elements that you've seen.
pseudo code follows:
for i, elem in enumerate(array):
if elem in set return False
if i > N:
set.remove(array[i-N])"See full answer
"Clarifying question: Do I know of this other team? Have i worked with them before? Do i know the TPM of this team B?
1) Schedule 1-1 TPM of this other team (Team B) with the agenda to better understand Team B project
2) State that you came to know that Team B is working on what sounds like a project similar to your team and you want to understand more about it to see what is common /what is different, what are the objectives and who the stakeholders are and so on. Also, important to know how f"
Adib M. - "Clarifying question: Do I know of this other team? Have i worked with them before? Do i know the TPM of this team B?
1) Schedule 1-1 TPM of this other team (Team B) with the agenda to better understand Team B project
2) State that you came to know that Team B is working on what sounds like a project similar to your team and you want to understand more about it to see what is common /what is different, what are the objectives and who the stakeholders are and so on. Also, important to know how f"See full answer
"One way to develop project metrics is around what problem the project is trying to solve within a particular timeframe, at a cost of x dollars and with y quality
Scope:
Did the project deliver as per the problem statement - over and beyond
Resources metrics:
Planned resources were utilized to contribute to the success
Budget:
Did the cost of the project implementation be under the budget or over?
Schedule:
In-flight milestones were completed on time or not as per the plan
Was the proje"
Y C. - "One way to develop project metrics is around what problem the project is trying to solve within a particular timeframe, at a cost of x dollars and with y quality
Scope:
Did the project deliver as per the problem statement - over and beyond
Resources metrics:
Planned resources were utilized to contribute to the success
Budget:
Did the cost of the project implementation be under the budget or over?
Schedule:
In-flight milestones were completed on time or not as per the plan
Was the proje"See full answer
"I will start with clarifications:
Q: How do you define "healthy" marketplace?
A: When there is a balance in demand and supply
Q: If we have balance, is it fair to assume, lot of transactions will happen?
A: Sure
Q: Also, is it fair to assume well known tokens on the platform already have a healthy marketplace with enough buyers and sellers. The problem is mainly with new tokens that will be introduced?
A: Thats a fair assumption
Q: Its okay to limit scope for this exercise to the CB retail a"
Hems S. - "I will start with clarifications:
Q: How do you define "healthy" marketplace?
A: When there is a balance in demand and supply
Q: If we have balance, is it fair to assume, lot of transactions will happen?
A: Sure
Q: Also, is it fair to assume well known tokens on the platform already have a healthy marketplace with enough buyers and sellers. The problem is mainly with new tokens that will be introduced?
A: Thats a fair assumption
Q: Its okay to limit scope for this exercise to the CB retail a"See full answer
Product Strategy
Analytical
+1 more
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"Good practice video; however, at minute 6:40 in this video, the interviewer confirmed the app version causes no issue! While the final answer was the app version!"
Anonymous Cat - "Good practice video; however, at minute 6:40 in this video, the interviewer confirmed the app version causes no issue! While the final answer was the app version!"See full answer
"
Questions:
Deadly diseases: new and current
CEO of healthtech startup: adoption phase
Mission: to improve and extend lives
What we do: Research new diseases and connects people to doctors
Structure: Objective -> Macro-Factors -> Company -> Users -> Suggestions
Objective:
Why? Mission to improve and extend lives
How do we inform the world about these 20 deadly diseases we detected?
Macro-Factors(climate/competition)
World events like pandemics - this is a good investment*
"
Cameron P. - "
Questions:
Deadly diseases: new and current
CEO of healthtech startup: adoption phase
Mission: to improve and extend lives
What we do: Research new diseases and connects people to doctors
Structure: Objective -> Macro-Factors -> Company -> Users -> Suggestions
Objective:
Why? Mission to improve and extend lives
How do we inform the world about these 20 deadly diseases we detected?
Macro-Factors(climate/competition)
World events like pandemics - this is a good investment*
"See full answer
"Explore expanding beyond just two small roooms-- bigger rooms or a third room? Get insights from those who are teleporting about what the experience is like"
Kim L. - "Explore expanding beyond just two small roooms-- bigger rooms or a third room? Get insights from those who are teleporting about what the experience is like"See full answer
"What can be a camera ?
point and shoot camera - to capture events
Video camera - to record events
Surveillance camera - cctv camera to monitor movements
Elderly
above 65 (male and female) with or without any medical condition
Elderly can be tech-savvy but majority would be non-tech savvy.
We can also further look to segment this customer base as elderly who are
Living with their Children
Living in foster care
Living alone
For the moment , i would restrict the geo"
Max V. - "What can be a camera ?
point and shoot camera - to capture events
Video camera - to record events
Surveillance camera - cctv camera to monitor movements
Elderly
above 65 (male and female) with or without any medical condition
Elderly can be tech-savvy but majority would be non-tech savvy.
We can also further look to segment this customer base as elderly who are
Living with their Children
Living in foster care
Living alone
For the moment , i would restrict the geo"See full answer
"I am a book reader, so I use "goodreads" by amazon to track my reading. There are couple of things which can be done to increase user engagement on app.
User engagement on goodread is
creating profile
tagging books - want to read, reading, completed
marking up progress on daily reading.
Engaging with friends and their feedback about books.
Solutioning at each steps
Creating profile - App respond time is 2-3 min, which is very slow as compared to any general app,its circling"
Nidhi S. - "I am a book reader, so I use "goodreads" by amazon to track my reading. There are couple of things which can be done to increase user engagement on app.
User engagement on goodread is
creating profile
tagging books - want to read, reading, completed
marking up progress on daily reading.
Engaging with friends and their feedback about books.
Solutioning at each steps
Creating profile - App respond time is 2-3 min, which is very slow as compared to any general app,its circling"See full answer
"Start your stream
Use the Post tab to: Choose where to post your live broadcast. Write a description. Select a camera, mic and screen (if screen sharing). Add a title for your live broadcast (optional). Select the primary language of the stream. ...
Once everything is set, select Go Live."
Abdurhman M. - "Start your stream
Use the Post tab to: Choose where to post your live broadcast. Write a description. Select a camera, mic and screen (if screen sharing). Add a title for your live broadcast (optional). Select the primary language of the stream. ...
Once everything is set, select Go Live."See full answer
"
from typing import Dict, List, Optional
def max_profit(prices: Dict[str, int]) -> Optional[List[str]]:
pass # your code goes here
max = [None, 0]
min = [None, float("inf")]
for city, price in prices.items():
if price > max[1]:
max[0], max[1] = city, price
if price 0:
return [min[0], max[0]]
return None
debug your code below
prices = {'"
Rick E. - "
from typing import Dict, List, Optional
def max_profit(prices: Dict[str, int]) -> Optional[List[str]]:
pass # your code goes here
max = [None, 0]
min = [None, float("inf")]
for city, price in prices.items():
if price > max[1]:
max[0], max[1] = city, price
if price 0:
return [min[0], max[0]]
return None
debug your code below
prices = {'"See full answer
"That's really interesting how in section "Behavioral Interviews for Engineers" there is no single interview for, actually, Engineer.
It's EM, SA, CEO, PM etc. So all problems are not relevant for people who are not managing products and not applying for manager's role.
Will you consider adding at least couple of them?
"
Nikolas C. - "That's really interesting how in section "Behavioral Interviews for Engineers" there is no single interview for, actually, Engineer.
It's EM, SA, CEO, PM etc. So all problems are not relevant for people who are not managing products and not applying for manager's role.
Will you consider adding at least couple of them?
"See full answer
"CQs
Is 10x capacity any specific time or in general
Any time of the day , store should be able to handle
To confirm, Grocery store objective is to sell day to day grocery and vegetables? Or do we want to include any other products
Day to day grocery
Why is the foot traffic more than 10x the typical cap. Was the store designed poorly or did the store not predict the foot traffic correctly ?
We suddenly become local's favorite
We want to design this single store to handle 10X capacity an"
Abhi S. - "CQs
Is 10x capacity any specific time or in general
Any time of the day , store should be able to handle
To confirm, Grocery store objective is to sell day to day grocery and vegetables? Or do we want to include any other products
Day to day grocery
Why is the foot traffic more than 10x the typical cap. Was the store designed poorly or did the store not predict the foot traffic correctly ?
We suddenly become local's favorite
We want to design this single store to handle 10X capacity an"See full answer
" can we use blomfilters to check existing usernames? and if both are creating at a time, like both are choosing some abcd , here system checks whether user with that name exists or not. so while checking , it will add an entry on redis (example) with this name as key and obtain lock using some distributed lock. , it will lock on that name. (like seat booking in bookmyshow) with some TTL value.
so this check will happen once user enters his interest username and also while submit .. 2 times che"
Gk K. - " can we use blomfilters to check existing usernames? and if both are creating at a time, like both are choosing some abcd , here system checks whether user with that name exists or not. so while checking , it will add an entry on redis (example) with this name as key and obtain lock using some distributed lock. , it will lock on that name. (like seat booking in bookmyshow) with some TTL value.
so this check will happen once user enters his interest username and also while submit .. 2 times che"See full answer
"TCP server/client to facilitate high throughput of incoming metrics.(This is the standard used in the industry by Datadog etc).
NoSQL or timeseries database for storing metrics. Timeseries databases are better for aggregating metrics in a given time period.
REST API for serving metrics data to visualization frontend."
Abhi R. - "TCP server/client to facilitate high throughput of incoming metrics.(This is the standard used in the industry by Datadog etc).
NoSQL or timeseries database for storing metrics. Timeseries databases are better for aggregating metrics in a given time period.
REST API for serving metrics data to visualization frontend."See full answer