"Attempted the answer. Feedback appreciated. Thanks!
Mission: LinkedIn mission statement is to “connect the world's professionals to make them more productive and successful.” LinkedIn Feed: People You Know, Talking About Things You Care About.
One of things can be done is look for Existing engagement metrics that LinkedIn news feed may have. Look for data where engagement is low and understand why and come up with a hypothesis for that. For this exercise will assume there is no pro"
Madhumita M. - "Attempted the answer. Feedback appreciated. Thanks!
Mission: LinkedIn mission statement is to “connect the world's professionals to make them more productive and successful.” LinkedIn Feed: People You Know, Talking About Things You Care About.
One of things can be done is look for Existing engagement metrics that LinkedIn news feed may have. Look for data where engagement is low and understand why and come up with a hypothesis for that. For this exercise will assume there is no pro"See full answer
"function spiralCopy(inputMatrix) {
if (inputMatrix.length === 1) return inputMatrix[0];
let lowerY = 0;
let upperY = inputMatrix.length-1;
let lowerX = 0;
let upperX = inputMatrix[0].length-1;
const output = [];
while (true) {
if (lowerX > upperX) break;
for (let x = lowerX; x upperY) break;
for (let y = lowerY; y <= upperY; y++) {
output.push(inputMatrix[y][u"
Tiago R. - "function spiralCopy(inputMatrix) {
if (inputMatrix.length === 1) return inputMatrix[0];
let lowerY = 0;
let upperY = inputMatrix.length-1;
let lowerX = 0;
let upperX = inputMatrix[0].length-1;
const output = [];
while (true) {
if (lowerX > upperX) break;
for (let x = lowerX; x upperY) break;
for (let y = lowerY; y <= upperY; y++) {
output.push(inputMatrix[y][u"See full answer
"Minimum viable product is a product with a minimum set of features that are sufficient to gather information if customers are going to use it or are sufficient to answer the questions for the problems that are we are specifically trying to solve. In order to prioritize features it is critical to consider following points.
What is the problem we are trying to solve?
Understand the context.
Identify the features that you need to solve the problem while ensuring that features are in sync with"
Abhilash K. - "Minimum viable product is a product with a minimum set of features that are sufficient to gather information if customers are going to use it or are sufficient to answer the questions for the problems that are we are specifically trying to solve. In order to prioritize features it is critical to consider following points.
What is the problem we are trying to solve?
Understand the context.
Identify the features that you need to solve the problem while ensuring that features are in sync with"See full answer
"Clarifying questions and assumptions:
Personalised news feed is the culmination of curated posts, events, ads , videos, etc that is unique to each user. potentially this means that no 2 feeds are the same.
I am assuming we are talking about the Facebook Blue app, since the term Newsfeed is generally associated with this app although the feed on Insta too is personalised.
Thank you for this question.
here is how i would structure my thoughts on arriving at success metrics for Personalised Ne"
Sneha S. - "Clarifying questions and assumptions:
Personalised news feed is the culmination of curated posts, events, ads , videos, etc that is unique to each user. potentially this means that no 2 feeds are the same.
I am assuming we are talking about the Facebook Blue app, since the term Newsfeed is generally associated with this app although the feed on Insta too is personalised.
Thank you for this question.
here is how i would structure my thoughts on arriving at success metrics for Personalised Ne"See full answer
"Clarification
LinkedIn Premium is a premium offering for LinkedIn members through which they get access to some additional features that are not available in the free version.
Members can use these features to meet their goals
When we talk about LinkedIn premium we are focused on the career product and not the sales / recruiter products? —> Yes, focused on individual members. Sales needs are solved through sales navigator and recuriter lite which are specialized premium tools
*Goals"
stash - "Clarification
LinkedIn Premium is a premium offering for LinkedIn members through which they get access to some additional features that are not available in the free version.
Members can use these features to meet their goals
When we talk about LinkedIn premium we are focused on the career product and not the sales / recruiter products? —> Yes, focused on individual members. Sales needs are solved through sales navigator and recuriter lite which are specialized premium tools
*Goals"See full answer
"function knapsack(weights, values, cap) {
const indicesByValue = Object.keys(weights).map(weight => parseInt(weight));
indicesByValue.sort((a, b) => values[b]-values[a]);
const steps = new Map();
function knapsackStep(cap, sack) {
if (steps.has(sack)) {
return steps.get(sack);
}
let maxOutput = 0;
for (let index of indicesByValue) {
if (!sack.has(index) && weights[index] <= cap) {
maxOutput ="
Tiago R. - "function knapsack(weights, values, cap) {
const indicesByValue = Object.keys(weights).map(weight => parseInt(weight));
indicesByValue.sort((a, b) => values[b]-values[a]);
const steps = new Map();
function knapsackStep(cap, sack) {
if (steps.has(sack)) {
return steps.get(sack);
}
let maxOutput = 0;
for (let index of indicesByValue) {
if (!sack.has(index) && weights[index] <= cap) {
maxOutput ="See full answer
"Implemented the Java code to find the largest island. It is similar to count the island. But in this we need to keep track of max island and compute its perimeter."
Techzen I. - "Implemented the Java code to find the largest island. It is similar to count the island. But in this we need to keep track of max island and compute its perimeter."See full answer
"A red-black tree is a self-balancing binary search tree. The motivation for this is that the benefits of O(logN) search, insertion, and deletion that a binary tree provides us will disappear if we let the tree get too "imbalanced" (e.g. there are too many nodes on one side of the tree or some branches have a depth that is way out of proportion to the average branch depth). This imbalance will occur if we don't adjust the tree after inserting or deleting nodes, hence our need for self-balancing c"
Alex M. - "A red-black tree is a self-balancing binary search tree. The motivation for this is that the benefits of O(logN) search, insertion, and deletion that a binary tree provides us will disappear if we let the tree get too "imbalanced" (e.g. there are too many nodes on one side of the tree or some branches have a depth that is way out of proportion to the average branch depth). This imbalance will occur if we don't adjust the tree after inserting or deleting nodes, hence our need for self-balancing c"See full answer
"Initially I asked clarifying questions like whether the tree can be empty or not and asked the interviewer to explain what is meant by left view and the explanation for the sample inputs.
Then I came up with the level order traversal approach where we visit each level in the binary tree at once using a queue and at each level print the value of the first node.
Interviewer seemed satisfied with the approach and asked me to code it up.
Finally gave the time and space complexity of the solution."
Ds S. - "Initially I asked clarifying questions like whether the tree can be empty or not and asked the interviewer to explain what is meant by left view and the explanation for the sample inputs.
Then I came up with the level order traversal approach where we visit each level in the binary tree at once using a queue and at each level print the value of the first node.
Interviewer seemed satisfied with the approach and asked me to code it up.
Finally gave the time and space complexity of the solution."See full answer