Date: 18/09/2025
TECHNICAL TRAINING
DAY – 2
1. Write a program to check if 2 strings are anagrams or not.
2. Write a program to print pyramid pattern upto n rows.
3. Write a program to find missing number in an array of 1 to n.
4. Write a program to find All Occurrences of a Character in a String.
5. Write a program to Perform String Comparison.
6. Write a program to Remove all whitespaces from a String
7. Write a Program to Swap Two Array without using Temp Variable
8. Write a Program to Count Positive and Negative Numbers in an Array
9. Write a program to move 0’s to the beginning of an Array.
10. Write a program to Check if a number is a strong number (sum of factorial of digits =
number).
11. Write a program to print the Fibonacci series up to n terms.
12. Write a program to reverse each word in a sentence without changing the word order.
13. Write a program to implement Binary Search in Java.
14. Write a program to check if a string is a valid palindrome ignoring spaces and cases.
15. Write a program to find the intersection and union of two arrays.
16. Write a program to demonstrate method overloading and overriding.
17. Write a program to check if two strings are rotations of each other.
18. Write a program to find the missing number in an array of size n containing numbers
from 1 to n.
19. Write a program to remove duplicate characters from a string.
20. Write a program to find the frequency of each element in an array.