NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new

You are designing a booking planner for a vacation rental platform. There are n listings, each identified by an index from 0 to n - 1. Each listing provides a set of available days.

A user requests to book a consecutive date range from start to end (inclusive). Your task is to return all possible ways to fully cover the date range using either:

  • A single listing: The entire range is covered by one listing.
Test Cases
Input
Output
Expected