Back to course home
0% completed
Vote For New Content
set.count(x) - java
raol buqi
Aug 29, 2024
in the article you wrote set.count(x), set doesn't have a count method
0
0
Comments
Comments
Sachin Dev Sa year ago
set.count(x) is in c++ and in java we have set.size() method
On this page
Problem Statement
Examples
Solution
Approach 1: Brute Force
Approach 2: Using Hash Set
Approach 3: Sorting