[Solved] A java program to Remove duplicates from given array of N elemets

$25

File Name: A_java_program_to_Remove_duplicates_from_given_array_of_N_elemets.zip
File Size: 612.3 KB

SKU: [Solved] A java program to Remove duplicates from given array of N elemets Category: Tag:
5/5 - (1 vote)

Write JAVA program to

1. Remove duplicates from given array of N elemets. (Hint Create Hashset and store in it) as Set automatically removes duplicate.

Example : Input > {3, 5, 2, 2, 5, 6, 7 ,8,3, 5 }Output > {3, 5, 2, 6, 7 ,8 }

2. Reverse a String.

Example : Input > Hello world!Output > !dlrow olleH

3. Reverese words in a string.Example : Input > Hello world!Output > world! Hello

4. Check if entered string is Palindrome or not (a word, phrase, or sequence that reads the same backward as forward)

Example : Input > madamOutput > Give string is Palindrome

Example : Input > sirOutput > Give string is Not Palindrome

5. Design a stack that supports push, pop, and retrieving the minimum element in constant time O (1).

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] A java program to Remove duplicates from given array of N elemets
$25