solulubeta
Sign in
DSA Basics / Building up
02.20 · Problem

How Many Different Subjects

Easy Hash set · counting distinct values Pro

This problem is part of solulu Pro

The library log has one line per book issued, holding the subject code of the book. The librarian wants to know how many different subjects were borrowed today, no matter how often each one was.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 50 of 90 · updated 2026-10-12