0% found this document useful (0 votes)
3 views1 page

Java 2year Questions

The document lists various programming tasks related to arrays and strings, including checking for anagrams, sorting arrays, merging sorted arrays, and finding duplicates. It also includes operations like checking matrix properties and generating permutations. Each task is a specific problem that can be solved using algorithms and data structures.

Uploaded by

saadgipuniwala07
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)
3 views1 page

Java 2year Questions

The document lists various programming tasks related to arrays and strings, including checking for anagrams, sorting arrays, merging sorted arrays, and finding duplicates. It also includes operations like checking matrix properties and generating permutations. Each task is a specific problem that can be solved using algorithms and data structures.

Uploaded by

saadgipuniwala07
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. Valid Anagram – Check if two strings are anagrams.

2. Check if Array is Sorted – Check whether given array is sorted or not.

3. Merge Two Sorted Arrays – Merge two sorted arrays and print result.

4. Missing Number – Find missing number from array (0 to n range).

5. Find Duplicate Element – Find duplicate element in array.

6. Union of Two Arrays – Find union of two arrays.

7. Segregate Positive and Negative Numbers – Rearrange array so negatives come before
positives.

8. Check Toeplitz Matrix – Check if all diagonals have same elements.

9. Intersection of Two Arrays – Find common elements between two arrays.

10. Rotate Array by One Position – Rotate array left by one position.

11. Check Symmetric Matrix – Check if matrix is symmetric.

12. Find Duplicate Elements in Array – Find all duplicate elements in array.

13. Left Rotate Array by 1 – Rotate array left by one position.

14. Check Element Membership in Array – Check if element exists in array.

15. Difference of Two Arrays – Find elements in first array not present in second.

16. Check if Array is Sorted (Strict) – Check if array is strictly sorted.

17. Count Vowels in String – Count number of vowels in string.

18. Generate All Permutations of a String – Print all permutations of given string.

You might also like