"int a_array[10] = {3,6,4,7,2,1,9};
int index = 0;
int index2 = 0;
for ( index = 0; index < sizeof(a_array); index++ )
{
int tmpindex = index + 1;
if ( tmpindex <= sizeof(a_array) )
{
for ( index2 = tmpindex; index2 < sizeof(a_array); index2++ )
{
if ( aarray[index] <= aarray[index2] )
{
print( "%d is the NGE of %d" array[index2], array[index]);
break;
"
Mark S. - "int a_array[10] = {3,6,4,7,2,1,9};
int index = 0;
int index2 = 0;
for ( index = 0; index < sizeof(a_array); index++ )
{
int tmpindex = index + 1;
if ( tmpindex <= sizeof(a_array) )
{
for ( index2 = tmpindex; index2 < sizeof(a_array); index2++ )
{
if ( aarray[index] <= aarray[index2] )
{
print( "%d is the NGE of %d" array[index2], array[index]);
break;
"See full answer
"Stateful Firewall Tracks the state of active network connections (TCP, UDP, etc.) and makes decisions based on both rules and connection state (e.g., established sessions).
Stateless Firewall Makes decisions based only on packet header information (source IP, destination IP, port, protocol) without tracking connection states."
Gopal R. - "Stateful Firewall Tracks the state of active network connections (TCP, UDP, etc.) and makes decisions based on both rules and connection state (e.g., established sessions).
Stateless Firewall Makes decisions based only on packet header information (source IP, destination IP, port, protocol) without tracking connection states."See full answer
"Best resource with whom I have worked in the past was Head of Design. The best attributes were, he was not only a great craftsman when it came to Design details or understanding user needs, but was super quick to understand business challenges."
Devi K. - "Best resource with whom I have worked in the past was Head of Design. The best attributes were, he was not only a great craftsman when it came to Design details or understanding user needs, but was super quick to understand business challenges."See full answer
Product Manager
Behavioral
🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.
"That I had not been a PM for a formal ML product. But good models need sound data and my five years of sql writing and ensuring that DWHs and marts had the data they needed for reporting would be very relevant"
Tony C. - "That I had not been a PM for a formal ML product. But good models need sound data and my five years of sql writing and ensuring that DWHs and marts had the data they needed for reporting would be very relevant"See full answer
"This is a Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your equat"
Exponent - "This is a Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your equat"See full answer
"Caching is a strategy to have the frequently accessed data in the memory to reduce the latency. whenever a client request the data from server, it is first accessed into cache and if not available then it is getting fetched from the storage and stored into cache. As cache is having limited memory, so amount of data can be stored in cache is less. Data will be flushed out from cache based on a criteria which is termed as caching strategy. There could be different mechanisms under which a data can"
Archna M. - "Caching is a strategy to have the frequently accessed data in the memory to reduce the latency. whenever a client request the data from server, it is first accessed into cache and if not available then it is getting fetched from the storage and stored into cache. As cache is having limited memory, so amount of data can be stored in cache is less. Data will be flushed out from cache based on a criteria which is termed as caching strategy. There could be different mechanisms under which a data can"See full answer
"This was a fun question asked recently by Amazon. Let's get to it! This is a Design Question so let's follow the formula:
Ask Clarifying Questions
Identify user behaviors, types, and pain points
State the goal and use cases
List current solutions
Brainstorm new solutions
Evaluate and select solution
Measure success
Summarize
Ask clarifying questions
Here we want to clarify scope and make sure we are on the same page as the interview"
Exponent - "This was a fun question asked recently by Amazon. Let's get to it! This is a Design Question so let's follow the formula:
Ask Clarifying Questions
Identify user behaviors, types, and pain points
State the goal and use cases
List current solutions
Brainstorm new solutions
Evaluate and select solution
Measure success
Summarize
Ask clarifying questions
Here we want to clarify scope and make sure we are on the same page as the interview"See full answer
"This is a Strategy Question, which asks you to justify high-level business decisions and strategy. There's no set formula, but we recommend proposing at least three different reasons to answer the question.
Let's go over one possible solution:
> Sure, there are three reasons why Amazon decided to start with books first.
Creating niche
> The first and most obvious reason is that Amazon wanted to create a niche market for their products at first. By creating a niche in the book space, Amazo"
Exponent - "This is a Strategy Question, which asks you to justify high-level business decisions and strategy. There's no set formula, but we recommend proposing at least three different reasons to answer the question.
Let's go over one possible solution:
> Sure, there are three reasons why Amazon decided to start with books first.
Creating niche
> The first and most obvious reason is that Amazon wanted to create a niche market for their products at first. By creating a niche in the book space, Amazo"See full answer
"This is another Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your"
Exponent - "This is another Fermi problem — an estimation or approximation problem with limited information and back-of-the-envelope calculations. There's no right answer: interviewers want to understand how you think and how well you can explain your reasoning, rather than what you already know.
Recall the formula for Fermi problems:
Ask clarifying questions
Catalog what you know
Make equation(s)
Think about edge cases to add to equation
**Breakdown components of your"See full answer
"This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"
Exponent - "This is a Technical question. It tests your ability to understand high level technical concepts. Even though your job won't have any coding involved, you'll still need to understand these concepts. Being able to cover all these topics with clarity communicates confidence in your interviewer.
Unfortunately, there's no formula for technical questions, but some general tips are:
Use analogies when you can
Break your solution into clear, bite-size steps
Don't be afraid to use examples to b"See full answer