Tag: HashSet
-
How to find subsets of a given string
This is the third solution to list all the subsets or substrings of a given string. This approach uses functional interface with single abstract method implementation using lambda expression, the internal logic utilizes the String’s class substring method for intermediate processing of all sized sub strings.
-
How to find subsets of a given string
This is the second solution to list all the subsets or substrings of a given string. This program does not use the substring method, instead uses the StringBuilder class append method.
-
How to find subsets of a given string
This is the first solution to list all the subsets or substrings of a given string. This uses the String’s class substring method for intermediate processing of all sized sub strings.
-
How to remove duplicate numbers in an Array of integers using HashSet
This is the second solution to remove the duplicate numbers from an Array of integers. This program uses the Set collection to removing the duplicate numbers.
-
How to find the duplicate words in a sentence using Collections class
Find the duplicate words in a given sentence of strings using the frequency method of the Collections class. This is the third possible solution to solve this problem.
