LLD - Design — Hotel Booking SystemA search filter query returns no results unexpectedly. Which is the most likely cause?AThe database is offlineBFilters are combined with OR but no item matches anyCFilters are combined with AND but no item matches allDThe search index is too largeCheck Answer
Step-by-Step SolutionSolution:Step 1: Analyze filter combination logicFilters combined with AND require items to match all conditions.Step 2: Reason about empty resultIf no item matches all filters, result is empty.Final Answer:Filters are combined with AND but no item matches all -> Option CQuick Check:AND filters with no match = empty result [OK]Quick Trick: No results often mean AND filters exclude all [OK]Common Mistakes:MISTAKESAssuming OR filters cause empty resultsBlaming database status without checking filtersThinking index size causes no results
Master "Design — Hotel Booking System" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Advanced LLD Concepts - Event-driven design - Quiz 10hard Advanced LLD Concepts - Domain-Driven Design basics - Quiz 14medium Advanced LLD Concepts - Immutability for safety - Quiz 14medium Design — Food Delivery System - Delivery agent assignment - Quiz 13medium Design — Food Delivery System - Delivery agent assignment - Quiz 7medium Design — Online Shopping Cart - Inventory management - Quiz 10hard Design — Online Shopping Cart - Notification on state change - Quiz 13medium Design — Online Shopping Cart - Order state machine - Quiz 2easy Design — Online Shopping Cart - Pricing strategy (discounts, coupons) - Quiz 15hard Design — Splitwise (Expense Sharing) - Why Splitwise tests financial logic - Quiz 9hard