Advanced Java problems for QA Automation Tester interviews
The list starts simple and moves to more complex topics such as data structures and algorithms. These problems in increasing order of difficulty are as follows:
- Check if a year is a leap year
- Find the missing number in an array of 1 to N
- Find the common elements between two arrays
- Count the number of vowels and consonants in a string
- Calculate the length of a string without using the length() method
- Swap two numbers without using a temporary variable
- Calculate the power of a number without using the Math class
- Calculate the square root of a number without using the Math class
- Calculate the area of a circle
- Find the intersection of two arrays
- Find the second largest element in an array
- Calculate the average of an array of numbers
- Implement a binary search algorithm
- Implement a bubble sort algorithm
- Implement a selection sort algorithm
- Implement an insertion sort algorithm
- Implement a quicksort algorithm
- Implement a factorial function using recursion
- Implement a Linked List
- Find the reverse of this linked list
- Remove duplicates from a sorted linked list
- Check if two strings are anagrams
- Convert a string to an integer
- Convert an integer to a string
- Calculate the GCD (Greatest Common Divisor) of two numbers
- Check if a number is a perfect square
- Implement a HashMap in Java
- Implement a HashSet in Java
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.