Amazon | Phone Screen | Dictionary Range Query

Location: SF Bay Area

Return the words from dictionary the range query.

Example:

Input: dict = [apple, boy, cat, dog, element, zack, zill]
Output:
range("a", "z"); // returns  [apple, boy, cat, dog, element, zack, zill]
range("ebc", "zas"); // returns [element, zack]
Comments (7)