"#simple solution
1.firstly find the node in the bst (O(logn) time complexity it take)
2.now removing the node consists of 3 cases:
1.if the node is leaf (no children):
(keep track of parent and do)
parent.left or parent.right=NULL
simply remove the node ()
2.if(has one child) replace the node with its child
3.if has both childs
we replace the node with either inorder predesor(max of left tree)or inorder succesor and remove
the node wh"
Sambangi C. - "#simple solution
1.firstly find the node in the bst (O(logn) time complexity it take)
2.now removing the node consists of 3 cases:
1.if the node is leaf (no children):
(keep track of parent and do)
parent.left or parent.right=NULL
simply remove the node ()
2.if(has one child) replace the node with its child
3.if has both childs
we replace the node with either inorder predesor(max of left tree)or inorder succesor and remove
the node wh"See full answer
"A good answer is describing an experience where you either proposed something that was selected after discussion or an alternate approach was taken, or you disagreed with a decision and argued for something else, either successfully or not. A good answer would be you had cogent arguments, the decision went another way for some reason, and you then fully backed the decision (agree to disagree is another way of stating it). You did not take it personally and you fully committed to the deci"
Mrinalini R. - "A good answer is describing an experience where you either proposed something that was selected after discussion or an alternate approach was taken, or you disagreed with a decision and argued for something else, either successfully or not. A good answer would be you had cogent arguments, the decision went another way for some reason, and you then fully backed the decision (agree to disagree is another way of stating it). You did not take it personally and you fully committed to the deci"See full answer
"Let's imagine you want to open Google Maps, you type maps.google.com and hit Enter. Here is what happens:
You type maps.google.com into the address bar of your browser.
Browser completes the address, for example, maps.google.com → https://www.maps.google.com
[Address decoding] → browser breaks down the URL into parts
‘https://’: protocol → how the browser should connect to the website
Default is HTTP (Hypertext Transfer Protocol) which shows up as ‘ http:/"
Jasmin R. - "Let's imagine you want to open Google Maps, you type maps.google.com and hit Enter. Here is what happens:
You type maps.google.com into the address bar of your browser.
Browser completes the address, for example, maps.google.com → https://www.maps.google.com
[Address decoding] → browser breaks down the URL into parts
‘https://’: protocol → how the browser should connect to the website
Default is HTTP (Hypertext Transfer Protocol) which shows up as ‘ http:/"See full answer
"Situation: While in the middle of a migration project, which required rewrite of services of my product into a cloud infra., we needed to configure our rules management services onto cloud as per legacy platform. The data extract of all the rules from legacy platform in a csv file needed heavy formatting to be usable for configuration of the new service. My entire engineering capacity was allocated on other prioritized ongoing feature migration and I had no bandwidth left in the ongoing spri"
Geetesh T. - "Situation: While in the middle of a migration project, which required rewrite of services of my product into a cloud infra., we needed to configure our rules management services onto cloud as per legacy platform. The data extract of all the rules from legacy platform in a csv file needed heavy formatting to be usable for configuration of the new service. My entire engineering capacity was allocated on other prioritized ongoing feature migration and I had no bandwidth left in the ongoing spri"See full answer
"I once had to change a decision i had previously made when I got stakeholder feedback that seemed to contradict what was already designed or already even built - such as the way a page was architected or the designs or colors used on a page. I had a justification for all decisions made, but sometimes the stakeholder feedback brings a perspective, such as a part of the user experience, that I had not thought of before. So I then went back to the original design or product and made an adjustment o"
Sarah K. - "I once had to change a decision i had previously made when I got stakeholder feedback that seemed to contradict what was already designed or already even built - such as the way a page was architected or the designs or colors used on a page. I had a justification for all decisions made, but sometimes the stakeholder feedback brings a perspective, such as a part of the user experience, that I had not thought of before. So I then went back to the original design or product and made an adjustment o"See full answer
"We can use dictionary to store cache items so that our read / write operations will be O(1).
Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1)
Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"
Alfred O. - "We can use dictionary to store cache items so that our read / write operations will be O(1).
Each time we read or update an existing record, we have to ensure the item is moved to the back of the cache. This will allow us to evict the first item in the cache whenever the cache is full and we need to add new records also making our eviction O(1)
Instead of normal dictionary, we will use ordered dictionary to store cache items. This will allow us to efficiently move items to back of the cache a"See full answer
"During a trip to Japan, I encountered a significant language barrier that influenced how I communicated with others. As I didn't speak Japanese fluently, I had to rely on basic phrases and non-verbal communication to interact with locals. This experience made me realize the importance of understanding cultural diversity.
Despite the language barrier, I found that people were patient and understanding. They appreciated my efforts to communicate in their language, even if it was limited. This expe"
Vikas K. - "During a trip to Japan, I encountered a significant language barrier that influenced how I communicated with others. As I didn't speak Japanese fluently, I had to rely on basic phrases and non-verbal communication to interact with locals. This experience made me realize the importance of understanding cultural diversity.
Despite the language barrier, I found that people were patient and understanding. They appreciated my efforts to communicate in their language, even if it was limited. This expe"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
"Situation - A time I dealt with conflict while on a team was while I was working at Shopify on physical and digital gift card refund point of sale solutions. The situation was that we were dealing with complex technical constraints including not changing particular UI components behavior to act as they should be intended. On the refund screen, the existing design was using a toggle on the same screen to bring up a modal for gift card selection to either select digital or physical options. Thi"
Ben G. - "Situation - A time I dealt with conflict while on a team was while I was working at Shopify on physical and digital gift card refund point of sale solutions. The situation was that we were dealing with complex technical constraints including not changing particular UI components behavior to act as they should be intended. On the refund screen, the existing design was using a toggle on the same screen to bring up a modal for gift card selection to either select digital or physical options. Thi"See full answer
"The traffic congestion is said to be messedup by vehichles on road.While technically it is said to be a server issue or any other.By using some advanced tech I go to solve that."
Dheeraj sai P. - "The traffic congestion is said to be messedup by vehichles on road.While technically it is said to be a server issue or any other.By using some advanced tech I go to solve that."See full answer
"Referring to https://www.forbes.com/sites/forbesbusinesscouncil/2022/03/23/15-strategies-for-balancing-competing-stakeholder-priorities/?sh=7c82aa68262f
Understand the conflicting priorities and align it with the goal/ objectives and the company mission.
Start with the Least Common Denominator between the conflicting priorities to come to a commonality and start from there to objectively approach the next imp priority
Always keep communication on and be transparent with 'equality' an"
Pramod V. - "Referring to https://www.forbes.com/sites/forbesbusinesscouncil/2022/03/23/15-strategies-for-balancing-competing-stakeholder-priorities/?sh=7c82aa68262f
Understand the conflicting priorities and align it with the goal/ objectives and the company mission.
Start with the Least Common Denominator between the conflicting priorities to come to a commonality and start from there to objectively approach the next imp priority
Always keep communication on and be transparent with 'equality' an"See full answer
"Understanding:
Understand the reason for the pushback?
Is the pushback related to any program constraints such as schedule, cost, quality, or scope?
Is this pushback from a single stakeholder or a majority of the stakeholders?
Working towards overall program goal:
Explain how your idea is tied to the overall program's success metric or the goal
Bring in data points to echo the above point
Bring in examples of how this approach has helped in the past or with other competitors
"
Saran V. - "Understanding:
Understand the reason for the pushback?
Is the pushback related to any program constraints such as schedule, cost, quality, or scope?
Is this pushback from a single stakeholder or a majority of the stakeholders?
Working towards overall program goal:
Explain how your idea is tied to the overall program's success metric or the goal
Bring in data points to echo the above point
Bring in examples of how this approach has helped in the past or with other competitors
"See full answer
"When a question like this is asked what is really being asked is "how do you think about the elements that make up a product and how does each part add value?". I generally try to answer it with a feature that has to do with user interaction. Good answers to this question could include "I would add a button to edit a post, and make it more visible and accessible rather than buried in a menu". Your rationale might be "**because it encourages users to post without fear that they will make"
Sydney S. - "When a question like this is asked what is really being asked is "how do you think about the elements that make up a product and how does each part add value?". I generally try to answer it with a feature that has to do with user interaction. Good answers to this question could include "I would add a button to edit a post, and make it more visible and accessible rather than buried in a menu". Your rationale might be "**because it encourages users to post without fear that they will make"See full answer
"Think of an operating system (OS) as being similar to a person managing household tasks like you! Imagine you have several chores to do around the house, such as cooking, cleaning, and praying. Each of these tasks is like an individual app. You, in this case, are responsible for ensuring all these tasks are completed smoothly.
When you cook, you decide what ingredients to buy, how much of each, and which utensils to use. For cleaning, you assess what surfaces need to be cleaned, whether you need"
Ekta M. - "Think of an operating system (OS) as being similar to a person managing household tasks like you! Imagine you have several chores to do around the house, such as cooking, cleaning, and praying. Each of these tasks is like an individual app. You, in this case, are responsible for ensuring all these tasks are completed smoothly.
When you cook, you decide what ingredients to buy, how much of each, and which utensils to use. For cleaning, you assess what surfaces need to be cleaned, whether you need"See full answer
"I have a few clarifying questions before diving into designing a fridge for kids.
What is this company in? - Startup exploring ideas to design fridge, or an already established fridge company -Â Startup
Kids = which age group is referred to her or I can define the user segments? -*Â You can define it*
Where is the refrigerator being used (household/school/daycare)? - Household
Assumption:Â I am assuming Fridge's basic function is to freeze meats/ice cream/veggies etc and stor"
Manu G. - "I have a few clarifying questions before diving into designing a fridge for kids.
What is this company in? - Startup exploring ideas to design fridge, or an already established fridge company -Â Startup
Kids = which age group is referred to her or I can define the user segments? -*Â You can define it*
Where is the refrigerator being used (household/school/daycare)? - Household
Assumption:Â I am assuming Fridge's basic function is to freeze meats/ice cream/veggies etc and stor"See full answer
"I will have a discussion with him regarding why he disagrees with my solution. I will try to present him a plan about my solution. why I think its the best approach and take his feedback.
I will try to analyze his approach and find the best in both approach. Will try to discuss with him and come up with an approach which is agreeable to both parties.
The idea is refining the solution and approach instead of personally taking the disagreement.
I will make sure that we are attacking the problem"
Shanavas M. - "I will have a discussion with him regarding why he disagrees with my solution. I will try to present him a plan about my solution. why I think its the best approach and take his feedback.
I will try to analyze his approach and find the best in both approach. Will try to discuss with him and come up with an approach which is agreeable to both parties.
The idea is refining the solution and approach instead of personally taking the disagreement.
I will make sure that we are attacking the problem"See full answer
"First I will talk about this restaurant space in general. Types of restaurants, trends, think about how we can offer something that is differentiated to a viable buyer.
Vision / mission of this product
User segments - pick one
Define user goals, user journey, needs/pain points
Think about solutions to their pain points (10 min)
Then I’d pick one or two of the solutions and define the features in more detail, as it ties to user journey. I’ll define tradeoffs
**1.Restaurant sp"
Yespm T. - "First I will talk about this restaurant space in general. Types of restaurants, trends, think about how we can offer something that is differentiated to a viable buyer.
Vision / mission of this product
User segments - pick one
Define user goals, user journey, needs/pain points
Think about solutions to their pain points (10 min)
Then I’d pick one or two of the solutions and define the features in more detail, as it ties to user journey. I’ll define tradeoffs
**1.Restaurant sp"See full answer
"First thing the interviewee did wrong is not asking clarifying questions. This is the most vague problem I have every heard, and the interviewee just made assumptions and started programming."
Nicholas S. - "First thing the interviewee did wrong is not asking clarifying questions. This is the most vague problem I have every heard, and the interviewee just made assumptions and started programming."See full answer
"For self achievement, The product manager builds useful products for users and makes the world better.
For the team, The product manager can work with the team, and leverage the team resources to make things happen, which is more impactful.
For the company, Pm are usually problem solvers, help companies to solve problems and grow better
"
Shen W. - "For self achievement, The product manager builds useful products for users and makes the world better.
For the team, The product manager can work with the team, and leverage the team resources to make things happen, which is more impactful.
For the company, Pm are usually problem solvers, help companies to solve problems and grow better
"See full answer