Closed Aman5989 closed 1 year ago
Hi,
The implementation that I thought was to go for a boolean array with size 10^6 +2.
And this is easy to add and remove the element in the boolean array.
Just return that boolean element to find whether it contains in set function.
Please add hacktoberfest tags.
Hi,
The implementation that I thought was to go for a boolean array with size 10^6 +2.
And this is easy to add and remove the element in the boolean array.
Just return that boolean element to find whether it contains in set function.
Please add hacktoberfest tags.