in this program bitset are used using header file #include i have no idea about the concept of bitset can you clear out that please.
What is the concept of bitset?
hello @aditikandhway
A bitset is an array of bool but each Boolean value is not stored separately instead bitset optimizes the space such that each bool takes 1 bit space only, so space taken by bitset bs is less than that of bool bs[N] and vector bs(N) . However, a limitation of bitset is, N must be known at compile time, i.e., a constant (this limitation is not there with vector and dynamic array)
read more -> bitset
okay i got that… thank you!