Problem: Write a Java program to find maximum repeating element in an array of integers in Java. Or write a program to find most popular element in an array. …
Problem: Sort elements by frequency. Sort elements of an array by frequency of the elements of the array. Sort the elements by decreasing order of their frequency. If two …
Objective: Stack implementation using array. To implement a stack which can be used with any data type. In this article we will see how to implement a stack using …
Problem: Write a Java program to find first duplicate character in a string. For example: If given string is color, then the first duplicate character in the string is …
Problem: Write a Java program to reverse words in a string. For example: Input sentence : Java fries is an awesome site for programming questions Output: questions programming for site …
Problem: Write a Java program to find first non repeating character in a string or first unique character in a string. For example. 1. In string “baby”, first non repeating …
Problem: Write a Java program to check if a given unsorted array contains duplicate elements within k distance from each other. For example: If k = 3 and array is …
Problem: Write a Java program to print Fibonacci series. Here we have to print first ‘n’ numbers of Fibonacci series. This is a college level program and could be asked …
In this article we will see the difference between abstract class and interface. This is famous interview question. You might have come across this question when you gave your …
Problem: Write a Java program to find duplicate elements in array. This is entry-level interview question and interviewers are interested to see if you can solve the problem with …