HubSpot software engineer interviews cover algorithms, data structures, system design, and coding problems drawn from real interview rounds.
No verified questions yet for HubSpot.
TaskManager that allows users to manage tasks. Each task should have an ID, title, description, and a status. The TaskManager should allow adding, removing, and updating tasks, as well as retrieving all tasks in a specified status.def add_task(title: str, description: str) -> int: def remove_task(task_id: int) -> bool: def update_task(task_id: int, title: Optional[str] = None, description: Optional[str] = None, status: Optional[str] = None) -> bool: def get_tasks_by_status(status: str) -> List[Dict[str, Union[int, str]]]: Example 1: tm = TaskManager() tm.add_task("Write documentation", "Create user guides and API docs") 1 1.Example 2: tm.update_task(1, status="completed") True 1 is successfully updated to completed.Constraints: 1. ['pending', 'in_progress', 'completed']. 1000. Sign up for free to access walkthroughs, AI-generated questions, and more.
Get Started Free