Amazon Flashcards

1
Q

Amazon leadership principles

A
  1. Customer Obsession
  2. Ownership
  3. Invent and Simplify
  4. Are right, a lot
  5. Learn and Be Curious
  6. Hire and develop the best
  7. Insist on the highest standards
  8. Think big
  9. Bias for action
  10. Frugality
  11. Earn Trust
  12. Dive Deep
  13. Have backbone, disagree, commit
  14. Deliver Results
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Queue, how it is different from stack and how is it implemented?

A

Queue is a linear structure which follows the order is First In First Out (FIFO) to access elements. Mainly the following are basic operations on queue: Enqueue, Dequeue, Front, Rear
The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added. Both Queues and Stacks can be implemented using Arrays and Linked Lists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Infix, prefix, Postfix notations?

A

Infix notation: X + Y – Operators are written in-between their operands. This is the usual way we write expressions. An expression such as
A * ( B + C ) / D
Postfix notation (also known as “Reverse Polish notation”): X Y + Operators are written after their operands. The infix expression given above is equivalent to
A B C + * D/
Prefix notation (also known as “Polish notation”): + X Y Operators are written before their operands. The expressions given above are equivalent to
/ * A + B C D

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Linked List and What are its types?

A

A linked list is a linear data structure (like arrays) where each element is a separate object. Each element (that is node) of a list is comprising of two items – the data and a reference to the next node.Types of Linked List :
Singly
Doubly
Circular

How well did you know this?
1
Not at all
2
3
4
5
Perfectly