We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
A collection of objects is said to be singleton if there is exactly one object in it. For example, {7} is a singleton set, while {2, 3} and {} are not singleton.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Journey to the Moon
You are viewing a single comment's thread. Return to all comments →
A collection of objects is said to be singleton if there is exactly one object in it. For example,
{7}
is a singleton set, while{2, 3}
and{}
are not singleton.