"Clarification:
Are we talking about creating an experience or product as part of another product or from 0→1?
Encourage - the goal is to increase % of citizen vote. Or want to vote?
Vote - are we talking about national elections?
Am I a product manager for the government?
Any focus on geo, segment, or platform?
Context - why do we want to do it? Did we experience a recent decline?
Could it be hardware or software only? Digital or physical?
Structure:
Context
"
Ram - "Clarification:
Are we talking about creating an experience or product as part of another product or from 0→1?
Encourage - the goal is to increase % of citizen vote. Or want to vote?
Vote - are we talking about national elections?
Am I a product manager for the government?
Any focus on geo, segment, or platform?
Context - why do we want to do it? Did we experience a recent decline?
Could it be hardware or software only? Digital or physical?
Structure:
Context
"See full answer
"The Critical Rendering Path (CRP) refers to the sequence of steps that a web browser takes to convert HTML, CSS, and JavaScript into a fully rendered webpage. CRP highlights the processes that can slow down the time it takes for a webpage to become interactive for users."
Shivam B. - "The Critical Rendering Path (CRP) refers to the sequence of steps that a web browser takes to convert HTML, CSS, and JavaScript into a fully rendered webpage. CRP highlights the processes that can slow down the time it takes for a webpage to become interactive for users."See full answer
"I assume here that the elderly person does not have much knowledge about technology and the internet.
I would like to structure my answer in this way:
Concepts of twitter I want the elderly to know.
Take an analogy to explain the concepts.
Connect the dots between the analogy back to the app.
Twitter concepts :
A common feed to look at the tweets created by the people in your network.
Concept of retweeting.
Chatting.
Comments/likes.
Analogy :
Imagine there is an office wi"
Samiksha D. - "I assume here that the elderly person does not have much knowledge about technology and the internet.
I would like to structure my answer in this way:
Concepts of twitter I want the elderly to know.
Take an analogy to explain the concepts.
Connect the dots between the analogy back to the app.
Twitter concepts :
A common feed to look at the tweets created by the people in your network.
Concept of retweeting.
Chatting.
Comments/likes.
Analogy :
Imagine there is an office wi"See full answer
"SQL databases are relational, NoSQL databases are non-relational. SQL databases use structured query language and have a predefined schema. NoSQL databases have dynamic schemas for unstructured data. SQL databases are vertically scalable, while NoSQL databases are horizontally scalable."
Ali H. - "SQL databases are relational, NoSQL databases are non-relational. SQL databases use structured query language and have a predefined schema. NoSQL databases have dynamic schemas for unstructured data. SQL databases are vertically scalable, while NoSQL databases are horizontally scalable."See full answer
"To determine if a graph is not a tree, you can check for the following conditions:
Presence of cycles: A graph is not a tree if it contains cycles. In a tree, there should be exactly one unique path between any two vertices. If you can find a cycle in the graph, it cannot be a tree.
Insufficient number of edges: A tree with N vertices will have exactly N-1 edges. If the graph has fewer or more than N-1 edges, then it is not a tree.
Disconnected components: A tree is a connected graph, m"
Vaibhav C. - "To determine if a graph is not a tree, you can check for the following conditions:
Presence of cycles: A graph is not a tree if it contains cycles. In a tree, there should be exactly one unique path between any two vertices. If you can find a cycle in the graph, it cannot be a tree.
Insufficient number of edges: A tree with N vertices will have exactly N-1 edges. If the graph has fewer or more than N-1 edges, then it is not a tree.
Disconnected components: A tree is a connected graph, m"See full answer
"Asked clarifying questions, this was similar to box. Took a minute to gather thoughts. Came up with a structured approach. Focused on use cases, prioritized it. They wanted to focus on security aspects, MFA, simultaneous read/write operations, etc."
Shahid K. - "Asked clarifying questions, this was similar to box. Took a minute to gather thoughts. Came up with a structured approach. Focused on use cases, prioritized it. They wanted to focus on security aspects, MFA, simultaneous read/write operations, etc."See full answer
"Imagine you have a friend from France that speaks French, and you only speak English. You and your friend want to play a talking game. So, for your friend to understand you and for you to understand what your friend is saying you would need an API between the two of you. The api has its own language called api language. You and your friend will both get a small book that tells you how to speak api language. The api in between you and your friend would allow both of you to speak API language to"
Musonda C. - "Imagine you have a friend from France that speaks French, and you only speak English. You and your friend want to play a talking game. So, for your friend to understand you and for you to understand what your friend is saying you would need an API between the two of you. The api has its own language called api language. You and your friend will both get a small book that tells you how to speak api language. The api in between you and your friend would allow both of you to speak API language to"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
"
from typing import Optional
class Node:
def init(self, val: int, prev: Optional['Node'] = None, next: Optional['Node'] = None):
self.val = val
self.prev = prev
self.next = next
def split(head):
if not head or not head.next:
return head
slow = head
fast = head.next
while fast and fast.next:
slow = slow.next
fast = fast.next.next
mid = slow.next
slow.next = None
if mid:
mid.prev = None
"
Akash C. - "
from typing import Optional
class Node:
def init(self, val: int, prev: Optional['Node'] = None, next: Optional['Node'] = None):
self.val = val
self.prev = prev
self.next = next
def split(head):
if not head or not head.next:
return head
slow = head
fast = head.next
while fast and fast.next:
slow = slow.next
fast = fast.next.next
mid = slow.next
slow.next = None
if mid:
mid.prev = None
"See full answer
"To scale web applications, one must concentrate on having
Shared hosting / Dedicated server
CDN (for images servers)
Caching techniques
Database Sharding
Adding/removing webservers on the fly
In order to improve the speed of the web applications, certain techniques to look at :
Web hosts - Shared hosting / dedicated server
CDN
Caching techniques
Compression techniques
Reduced use of plugins, check Java script / CSS files
Pre-fetch : If we are aware that th"
Googlepm 1. - "To scale web applications, one must concentrate on having
Shared hosting / Dedicated server
CDN (for images servers)
Caching techniques
Database Sharding
Adding/removing webservers on the fly
In order to improve the speed of the web applications, certain techniques to look at :
Web hosts - Shared hosting / dedicated server
CDN
Caching techniques
Compression techniques
Reduced use of plugins, check Java script / CSS files
Pre-fetch : If we are aware that th"See full answer
"Clarifying
When we say cloud gaming, we refer to a video gaming experience using cloud computing, right? Assumption: Yes.
Understanding of cloud computing first. I'll use some analogies:
Imagine you are looking to do heavy computing but don't have a powerful CPU and GPU.
CPU and GPU are like your big calculators.
You can buy a powerful CPU and GPU, but problems:
It costs a lot to buy.
It costs a lot to run.
You don't need it 24-7.
You are not a un"
Darpan D. - "Clarifying
When we say cloud gaming, we refer to a video gaming experience using cloud computing, right? Assumption: Yes.
Understanding of cloud computing first. I'll use some analogies:
Imagine you are looking to do heavy computing but don't have a powerful CPU and GPU.
CPU and GPU are like your big calculators.
You can buy a powerful CPU and GPU, but problems:
It costs a lot to buy.
It costs a lot to run.
You don't need it 24-7.
You are not a un"See full answer
"This type of question is a Technical problem. Although you will not need to actually code the feature, it's important to understand basic technical concepts. Being able to cover these concisely with clarity shows you're an effective communicator.
Here, we'll go over the broad technical steps needed to implement a basic reactions feature on Facebook.
Briefly, the steps required are the following:
Migrate the database to support reactions
Write API code to be able to react to a post, and"
Exponent - "This type of question is a Technical problem. Although you will not need to actually code the feature, it's important to understand basic technical concepts. Being able to cover these concisely with clarity shows you're an effective communicator.
Here, we'll go over the broad technical steps needed to implement a basic reactions feature on Facebook.
Briefly, the steps required are the following:
Migrate the database to support reactions
Write API code to be able to react to a post, and"See full answer
"Clarification question: How many subscription plans are offered by Tinder ?
If there is more than one subscription plan, then we need to ask is the fluctuation happening across all plans or in a particular one ?
Assumption: Let's say lower priced subscription plan is showing the most fluctuation and there are only two types of plans
In this subscription plan which age group is showing the most fluctuation (18-24,25-30, 30+ etc) ?
Is there any seasonality trend observed (eg: placemen"
Srijita P. - "Clarification question: How many subscription plans are offered by Tinder ?
If there is more than one subscription plan, then we need to ask is the fluctuation happening across all plans or in a particular one ?
Assumption: Let's say lower priced subscription plan is showing the most fluctuation and there are only two types of plans
In this subscription plan which age group is showing the most fluctuation (18-24,25-30, 30+ etc) ?
Is there any seasonality trend observed (eg: placemen"See full answer
"Clarifying questions:
Are we taking about a personal parking lot or a public parking lot
Do we have an objective in head for this lot -> Make money? Public parking lot from govt body
Do we have a particular location in head for this -> basement, outside some building or on the roof
Are we particular about the number of vehicles it can take up?
Are we particular about the kind of vehicles that it can take up? (2 wheelers, 4 wheelers, heavy weight 4 wheelers)
Taking a few assumptions:"
Anubhav A. - "Clarifying questions:
Are we taking about a personal parking lot or a public parking lot
Do we have an objective in head for this lot -> Make money? Public parking lot from govt body
Do we have a particular location in head for this -> basement, outside some building or on the roof
Are we particular about the number of vehicles it can take up?
Are we particular about the kind of vehicles that it can take up? (2 wheelers, 4 wheelers, heavy weight 4 wheelers)
Taking a few assumptions:"See full answer
"A Random Forest works by building an ensemble of decision trees, each trained on a slightly different version of the data. The key mechanism is bagging: for each tree, we sample the training data with replacement (bootstrapping), so every tree sees a different subset of examples. On top of that, at each split the algorithm randomly selects a subset of features, so trees explore different predictors.
These two sources of randomness decorrelate the trees. When we aggregate them — by averag"
Yuexiang Y. - "A Random Forest works by building an ensemble of decision trees, each trained on a slightly different version of the data. The key mechanism is bagging: for each tree, we sample the training data with replacement (bootstrapping), so every tree sees a different subset of examples. On top of that, at each split the algorithm randomly selects a subset of features, so trees explore different predictors.
These two sources of randomness decorrelate the trees. When we aggregate them — by averag"See full answer
"Clarification questions
What is the purpose of connecting the DB?
Do we expect high-volumes of traffic to hit the DB
Do we have scalability or reliability concerns?
Format
Code -> DB
Code -> Cache -> DB
API -> Cache -> DB - APIs are built for a purpose and have a specified protocol (GET, POST, DELETE) to speak to the DB. APIs can also use a contract to retrieve information from a DB much faster than code.
Load balanced APIs -> Cache -> DB
**Aut"
Aaron W. - "Clarification questions
What is the purpose of connecting the DB?
Do we expect high-volumes of traffic to hit the DB
Do we have scalability or reliability concerns?
Format
Code -> DB
Code -> Cache -> DB
API -> Cache -> DB - APIs are built for a purpose and have a specified protocol (GET, POST, DELETE) to speak to the DB. APIs can also use a contract to retrieve information from a DB much faster than code.
Load balanced APIs -> Cache -> DB
**Aut"See full answer