"function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"
Ugo C. - "function constructTree(n, matrix) {
let parent = [];
let child = [];
let root = null;
for (let i = 0; i < n; i++) {
for (let j = 0; j < n; j++) {
if (matrixi === 1) {
parent.push(i);
child.push(j);
}
}
}
for (let i = 0; i < n; i++) {
if (parent.indexOf(i) === -1) {
root = i;
}
}
let node = new Node(root);
for (let i = 0; i < n; i++) {
if (i !== root) {
constructTreeUtil(node, parent[i], child[i]);
}
}
return node;
}"See full answer
"Web server request
HTTPS://WWW.GOOGLE.COM
(HTTPS)Protocol -> HTTPS/HTTP (HTTPS more secured, encrypted data send by browser)
WWW. that is just a term
(GOOGLE.COM)DNS -> Every website that is hosted on the internet resides in some data server having an IP address. Due to the complexity of the IP address, ISP mapped the IP address to some readable or English term that is called DNS. Browser does DNS lookup. The FIrst bRowser sees the DNS mapping in the browser cache, if not found then it looks"
Anonymous Muskox - "Web server request
HTTPS://WWW.GOOGLE.COM
(HTTPS)Protocol -> HTTPS/HTTP (HTTPS more secured, encrypted data send by browser)
WWW. that is just a term
(GOOGLE.COM)DNS -> Every website that is hosted on the internet resides in some data server having an IP address. Due to the complexity of the IP address, ISP mapped the IP address to some readable or English term that is called DNS. Browser does DNS lookup. The FIrst bRowser sees the DNS mapping in the browser cache, if not found then it looks"See full answer
"My ideal PM role will definitely be in that I can work smoothly with the inner team(tech, marketing, sales, etc) whether in collecting requirements or translating these requirements to the responsible tech team.
To have the full hands of a product so that I can have ownership to enhance and improve the product toward the right vision, that matches the company and market vision as well
"
Raneem A. - "My ideal PM role will definitely be in that I can work smoothly with the inner team(tech, marketing, sales, etc) whether in collecting requirements or translating these requirements to the responsible tech team.
To have the full hands of a product so that I can have ownership to enhance and improve the product toward the right vision, that matches the company and market vision as well
"See full answer
"This is another Diagnosis problem. To answer this question, we suggest you use our framework (along with the TROPIC method) to be as thorough as possible. The framework is as follows:
Ask clarifying questions
List potential high level reasons
Gather Context (TROPIC)Time
Region
Other features / products (internal)
Platform
Industry / Competition
Cannibalization
Establish a theory of probable cause
Test theories
Propose solutions
Summarize
"
Exponent - "This is another Diagnosis problem. To answer this question, we suggest you use our framework (along with the TROPIC method) to be as thorough as possible. The framework is as follows:
Ask clarifying questions
List potential high level reasons
Gather Context (TROPIC)Time
Region
Other features / products (internal)
Platform
Industry / Competition
Cannibalization
Establish a theory of probable cause
Test theories
Propose solutions
Summarize
"See full answer
"The product lens I view the mousetrap through is a product which has a decision maker (someone who wants to catch a mouse) and an end user (yes, yes, the mouse to be trapped).
I believe that the mousetrap is superior when it shows a better speed of catching mice. So given that there are mice to catch, it has a better 'conversion' rate of mice which took interest in the mousetrap / mice who got caught - this is a decision maker, e.g. a homeowner, perspective
For a mouse, a trap is better when it"
Anonymous Halibut - "The product lens I view the mousetrap through is a product which has a decision maker (someone who wants to catch a mouse) and an end user (yes, yes, the mouse to be trapped).
I believe that the mousetrap is superior when it shows a better speed of catching mice. So given that there are mice to catch, it has a better 'conversion' rate of mice which took interest in the mousetrap / mice who got caught - this is a decision maker, e.g. a homeowner, perspective
For a mouse, a trap is better when it"See full answer
Analytical
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"The height of a binary tree is the maximum number of edges from the root node to any leaf node. To calculate the height of a binary tree, we can use a recursive approach. The basic idea is to compare the heights of the left and right subtrees of the root node, and return the maximum of them plus one."
Prashant Y. - "The height of a binary tree is the maximum number of edges from the root node to any leaf node. To calculate the height of a binary tree, we can use a recursive approach. The basic idea is to compare the heights of the left and right subtrees of the root node, and return the maximum of them plus one."See full answer
"This question is quite straightforward. The key to this is to be concise and specific.
> An endpoint is essentially the destination of an API call. The endpoint returns specific data depending on which endpoint was called. An example of a POST request is when a user signs up or logs in. Some data is posted and validated on the server (like a login email and password). An example of a GET request is when viewing another user's page. There's likely an endpoint that gets data like the person's name"
Exponent - "This question is quite straightforward. The key to this is to be concise and specific.
> An endpoint is essentially the destination of an API call. The endpoint returns specific data depending on which endpoint was called. An example of a POST request is when a user signs up or logs in. Some data is posted and validated on the server (like a login email and password). An example of a GET request is when viewing another user's page. There's likely an endpoint that gets data like the person's name"See full answer