title: Time Complexity of remove method of Set
body: <p>What is the time Complexity of remove method of a Set in Java? I know in <strong>ArrayList</strong> the time complexity for remove method is <strong>O(n)</strong>, but want to confirm that is it same for Sets also?</p>