Test

You might also like

You are on page 1of 2

1. How to find the missing number in integer array of 1 to 100?

2. How to find duplicate number on Integer array in Java?


3. How to check if array contains a number in Java?
4. How to find largest and smallest number in unsorted array?
5. How to find all pairs on integer array whose sum is equal to given number?
6. How to find repeated numbers in an array if it contains multiple duplicates?
7. Write a program to remove duplicates from array in Java?
8. How to sort an array in place using QuickSort algorithm?
9. Write a program to find intersection of two sorted arrays in Java?
10. There is an array with every element repeated twice except one. Find that
element?
11. How to find kth smallest element in unsorted array?
12. How to find kth largest element in unsorted array?
13 How to find common elements in three sorted array?
14. How find the first repeating element in an array of integers?
15. How to find first non-repeating element in array of integers?
16. How to find top two numbers from an integer array?
17. How to find the smallest positive integer value that cannot be
represented as sum of any subset of a given array?
18. How to rearrange array in alternating positive and negative number?
19. How to find if there is a sub array with sum equal to zero?
20. How to remove duplicates from array in place?
21. How to remove a given element from array in Java?
22. How to merge sorted array?
23. How to find sub array with maximum sum in an array
of positive and negative number?
24. How to find sub array with largest product in array of both positive and
negative number?
25. Write a program to find length of longest consecutive sequence in array of
integers?
26. How to find minimum value in a rotated sorted array?
27. Given an array of of size n and a number k, find all
elements that appear more than n/k times?
28. How to reverse array in place in Java?
29. Difference between array and linked list data structure?
30. How to check if array contains a duplicate number?

1) How to Print duplicate characters from String?


2) How to check if two Strings are anagrams of each other?
3) How to program to print first non repeated character from String?
4) How to reverse String in Java using Iteration and Recursion?
5) How to check if a String contains only digits?
6) How to find duplicate characters in a String?
7) How to count number of vowels and consonants in a String?
8) How to count occurrence of a given character in String?
9) How to convert numeric String to an int?
10) How to replace each given character to other e.g. blank with %20?
11) How to find all permutations of String?
12) How to reverse words in a sentence without using library method?
13) How to check if String is Palindrome?
14) How to remove duplicate characters from String?
15) How to check if a String is valid shuffle of two String?
16) Write a program to check if a String contains another String e.g. indexOf()?
17) How to return highest occurred character in a String?
18) Write a program to remove a given characters from String?
19) Write a program to find longest palindrome in a string?
20) How to sort String on their length in Java?

You might also like