Zillow Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Explain why LLMs produce hallucinations
Large language models (LLMs) are known to "hallucinate"—that is, they sometimes produce fluent, confident answers that are factually incorrect or unsu...
Design a chunking strategy for RAG
You are building a Retrieval-Augmented Generation (RAG) system that uses an LLM plus a vector database. Before creating embeddings and indexing docume...
Implement k-th largest in a number stream
You are designing a small library to monitor statistics over a stream of integers. Implement a data structure that, given an integer k and an initial ...
Find max min-plus-max over all subarrays
You are given an array arr of n integers. A subarray is a contiguous non-empty segment of the array. For any subarray arr[l..r] (0-indexed), define: \...
Implement placeholder-based pattern matcher
You are given: 1. A string s that may contain placeholders delimited by the % character. 2. A dictionary dict mapping keys (strings) to replacement va...