Category: Java
-
How to find the duplicate words in a sentence using HashMap
This is the second solution to identify the duplicate words in a given input sentence of strings, using the HashMap methods.
-
How to find the duplicate words in a sentence of strings
This is the first solution to identify the duplicate words in a given input sentence of strings, using the core logic.
-
How to find the minimum and maximum length strings in a sentence of strings using HashMap
This is the second solution to find the maximum length and minimum length strings from a given input sentence of strings, using the HashMap methods.
-
How to find the minimum and maximum length strings in a sentence of strings
This is the first solution to find the maximum and minimum length strings from a given input sentence of strings, using the core logic.
-
How to find the triplet numbers from an array whose sum is divisible by 9
This is the first solution to find the triplet of numbers in which their sum is divisible by 9 from an array of integers. This method uses the core logic of traversing array using nested for loop, add any three successive numbers in each iteration, and then verify that sum divisible by 9.
-
How to find the pairs of numbers from an array whose sum is divisible by 9
This is the first solution to find the pairs of numbers in which their sum is divisible by 9 from an array of integers. This method uses the core logic of traversing array using nested for loops, add any two numbers in each iteration, and then verify that the sum is divisible by 9.
-
How to find length of all integers while giving as input one by one
This is the first solution to find the length of all the integers given during input. This program uses the HashMap collection to store the integer values and it’s respective length as key value pairs.
-
How to check whether a given integer is prime number or not
This is the first solution to find whether the given integer number is prime or not using the core logic, that is to check the divisibility of that number until the square root of that number.
-
How to find sum of integers in an array
This is the first solution to find the sum of integers in an array, using the core logic.
