Amazon needs a simple service to create, read, update and delete customer addresses. 1. Write the interface for this service. What methods are needed? What parameters would each method require and what data would each method return? 2. Using the following assumptions, describe how you would design your system: You need to store 10 TB of addresses. Your service must support 10,000 transactions per second. Each of your databases can only handle 1TB of data. Each of your application servers can only handle 1,000 TPS Question 1: 1. What is the runtime complexity for the code below? 2. What is the space complexity for the code below? Queue<TreeNode> queue = new LinkedList<BinaryTree.TreeNode>() ; public void myMethod(TreeNode root) { if (root == null) return; queue.clear(); queue.add(root); while(!queue.isEmpty()){ TreeNode node = queue.remove(); if(node.left != null) queue.add(node.left); if(node.right != null) queue.add(node.right); Question 2: 1. What is the runtime complexity for the code below? // Precondition: array[] is sorted int search(int array[], int numberToFind, int min, int max) { while (max >= min) { int index = midpoint(min, max); if(array[index] == numberToFind) return index; else if (array[index] < numberToFind) min = index + 1; else max = index - 1; } // numberToFind was not found System.out.println("Not Found"); }
Engineer Iii Interview Questions
2,121 engineer iii interview questions shared by candidates
“Tell me about a time you had a difficult customer”, “What is your response when being asked to work after hours?”, “How would you optimize this design/solution?”
Find the last unique character in a character string
Mutex, semaphore reverse link list find loop in link list
Difference between ClassNotFoundException and NoClassDefFoundError
1. Concurrency java, OSI model, trees, B+ trees indexes, binary trees indentical, etc.. 2. Collections 3. Design a search system for a retail distributer similar to how Amazon product search works. Must discuss the salary beforehand, else you are wasting your time. They don't give hikes for years and if not ready to pay in the beginning , I would suggest to look out somewhere else. If money is not a concern, you can give a try to live with no salary.
how to reverse link list.
considerations when hosting on lambda vs ec2/eks
Given a Series find the next iterating sequence of the series
RSTP, BGP, LACP,OSPF - fundamentals and scenario related questions
Viewing 291 - 300 interview questions