-
This is the first solution to extract characters and numbers from an alpha numeric value into separate strings. This program uses the Character class methods.
-
This is the first solution to find the Nth largest number from an array of given numbers. This program uses the sort method of the Arrays class.
-
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.
-
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.
-
This is the first solution to check the number for Disarium. This solution uses String class, and a couple of Character functions to evaluate the sum of powers. The Disarium number is say for a given number 351, evaluate the powers from the left side as power (3 * 1) + power (5 * 2)
-
This is the first solution to reverse all the numbers at even positions. This solution modifies the same array. The resultant array has all the numbers reversed only even positions.
-
This is the second solution to move all Zero numbers to the end of an array of integers. This solution uses the temporary array. The resultant array has all non-zero numbers moved left, and all Zero numbers moved to the end.
-
This is the first solution to move all Zero numbers to the end of an array of integers. This solution modifies the same array with all non-zero numbers moving left, and Zero numbers moved to the end.
-
This is the second solution to count whether any of the number in an array repeated twice or thrice from the same array of integers using Collections class.
-
This is the first solution to count whether any of the number in an array repeated twice or thrice from the same array of integers using HashMap collection.
