0% found this document useful (0 votes)
2 views2 pages

Java Coding Questions

The document outlines various programming tasks and algorithms, including checking Armstrong numbers, finding GCD and LCM, and eliminating repeated characters. It also covers operations like counting character frequency, identifying prime numbers, and merging sorted arrays. Additional tasks include reversing words in a sentence, validating password strength, and checking for balanced parentheses.

Uploaded by

thugs8ul23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Java Coding Questions

The document outlines various programming tasks and algorithms, including checking Armstrong numbers, finding GCD and LCM, and eliminating repeated characters. It also covers operations like counting character frequency, identifying prime numbers, and merging sorted arrays. Additional tasks include reversing words in a sentence, validating password strength, and checking for balanced parentheses.

Uploaded by

thugs8ul23
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Armstrong Number
Check if a number equals sum of cubes of its digits.

2. GCD and LCM


Find greatest common divisor and least common multiple.

3. String
Eliminate repeated characters.

4. Character Frequency
Count occurrences of each character.

5. Missing Number in Array


Find missing value from 1 to n.

6. Prime Numbers 1 to 100


Print all primes.

7. Rotate Array
Rotate elements by k positions.

8. Check Sorted Array


Verify array order.

9. Merge Sorted Arrays


Merge two sorted arrays.

10. First Non-Repeating Character


Find first unique character.

11. Reverse Words in Sentence


Reverse word order.

12. Word Count


Count words in sentence.

13. Perfect Number


Check sum of divisors equals number.

14. Second Smallest Element


Find second minimum.

15. Replace Spaces


Replace spaces with symbol.

16. Common Elements


Find common array elements.

17. Strong Password


Validate password strength.

18. Sum Even and Odd


Separate sums.

19. Remove Duplicates from Array


Print unique elements.

20. Balanced Parentheses


Check bracket balance.

You might also like