Engineer Ii Interview Questions

9,766 engineer ii interview questions shared by candidates

1. Anagram Combination Counting Problem Given a list of words and sentences, determine how many unique sentences can be formed by replacing each word with any of its anagrams. Example: words = [‘listen’, ‘silent’, ‘it’, ‘is’] sentences = [‘listen it is silent’, ‘listen it is silent listen’] output = [4, 8] ⸻ 2. Implementing a File-System “find” Command Imagine implementing something like the Unix find command in a high-level language. Write code that can handle queries such as: • Find all files over 5 MB under a directory • Find all XML files under a directory • Advanced: files whose extension is Java OR all XML files with size between 5MB and 10MB ⸻ 3. Currency Conversion Problem Given a log of currency conversion rates (e.g., USD→EUR, EUR→GBP), write a function that converts between any two currencies. Example entries: {“from”:“USD”, “to”:“EUR”, “rate”:1.1} {“from”:“EUR”, “to”:“GBP”, “rate”:1.2} Meaning 1 USD = 1.32 GBP. 4: system design: book store review api
avatar

Software Engineer II

Interviewed at Amazon

3.5
Nov 14, 2025

1. Anagram Combination Counting Problem Given a list of words and sentences, determine how many unique sentences can be formed by replacing each word with any of its anagrams. Example: words = [‘listen’, ‘silent’, ‘it’, ‘is’] sentences = [‘listen it is silent’, ‘listen it is silent listen’] output = [4, 8] ⸻ 2. Implementing a File-System “find” Command Imagine implementing something like the Unix find command in a high-level language. Write code that can handle queries such as: • Find all files over 5 MB under a directory • Find all XML files under a directory • Advanced: files whose extension is Java OR all XML files with size between 5MB and 10MB ⸻ 3. Currency Conversion Problem Given a log of currency conversion rates (e.g., USD→EUR, EUR→GBP), write a function that converts between any two currencies. Example entries: {“from”:“USD”, “to”:“EUR”, “rate”:1.1} {“from”:“EUR”, “to”:“GBP”, “rate”:1.2} Meaning 1 USD = 1.32 GBP. 4: system design: book store review api

Given an array of lockers (0 = empty, 1 = occupied), find the maximum distance to the nearest 1. Modify the problem to place k packages instead of one, maximizing the minimum distance. Follow-up: Optimize for O(1) space complexity and reduce O(n log n) sorting overhead.
avatar

Software Development Engineer (SDE) II

Interviewed at Amazon

3.5
Mar 10, 2025

Given an array of lockers (0 = empty, 1 = occupied), find the maximum distance to the nearest 1. Modify the problem to place k packages instead of one, maximizing the minimum distance. Follow-up: Optimize for O(1) space complexity and reduce O(n log n) sorting overhead.

Viewing 9341 - 9350 interview questions

Glassdoor has 9,766 interview questions and reports from Engineer ii interviews. Prepare for your interview. Get hired. Love your job.