Skip to main content

13 docs tagged with "Design"

View all tags

Binary Search Tree Iterator

Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.

Design HashMap

This is a solution to the Design HashMap problem on LeetCode.

Design Twitter

Design a simplified version of Twitter with basic functionalities using OOP principles.

Exam Room

Design a class ExamRoom that simulates an exam room where students sit to maximize their distance from others, and includes methods for a student to take the optimal seat and to leave a specified seat.

Fancy Sequence

This document provides a solution where we need to Write an API that generates fancy sequences using the append, addAll, and multAll operations.