Find all pairs of Elements in an Array whose sum is equals to a given number?

  • Apr 12, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from arrays; this is most commonly asked interview question of today. Problem For a given array of integers, you have to find all pairs of elements in this array whose sum is equals to a given number.

Read more

Find out duplicate number in an array, having n elements

  • May 9, 2015
  • 0
  • Java Programming Tutorials

We have an array of integer values such that it contains all numbers from 1 to n in order but any of the number is repeated, find out that repeated element. e.g. The input array of size 5 can have elements like {1,2,3,3,4} or {1,1,2,3,4}, so we have to find repeated element.

Read more

Reverse a number without converting it to String

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from arrays; this is one of the most commonly asked interview question of today. Reverse a number without changing it to string and without using reverse().

Read more

Find index in an integer array that divides the sum of elements both side equally

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from arrays; this is one of the most commonly asked interview question of today. Find index in an integer array that divides the sum of elements both side equally.

Read more

Write a program in Java to print Fibonacci Series

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from arrays; this is one of the most commonly asked interview question of today. Write a program in Java to print Fibonacci Series, this can be done using an array.

Read more

Write a program in Java to check if a number is a perfect number or not

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from number system; this is one of the most commonly asked interview question of today. Write a program in Java to check if a number is a perfect number or not. A perfect number is a number that is half the sum of all of its positive divisors. The first perfect number is 6, because 1, 2 and 3 are its proper positive divisors, and 1 + 2 + 3 = 6. Equivalently, the number 6 is equal to half the sum of all its positive divisors: ( 1 + 2 + 3 + 6 ) / 2 = 6.

Read more

Write a program to find top two maximum numbers in an Array

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from arrays; this is one of the most commonly asked interview question of today. Write a program to find top two maximum numbers in an Array, without sorting the array and without using any collection.

Read more

How to swap two numbers without using temporary variable?

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem; this is one of the most commonly asked interview question of today. Write a program to swap two numbers without using a temporary variable.

Read more

Write a program in Java to reverse a String without using reverse().

  • May 9, 2015
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from Java String; this is one of the most commonly asked interview question of today. Write a program in Java to reverse a String without using reverse() and without converting it to array.

Read more

Write a program in Java to compare two Strings.

  • Apr 16, 2016
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from Java String; this is one of the most commonly asked interview question of today. Write a program in Java to compare two Strings.

Read more

Write a program in Java to identify the last occurrence of a substring inside a given String.

  • Apr 16, 2016
  • 0
  • Java Programming Tutorials

In this article we are going to discuss a problem from Java String; this is one of the most commonly asked interview question of today. Write a program in Java to identify the last occurrence of a substring inside a String.

Read more

Like Us

Related Sections

Core Java

Core Java Tutorial, Arrays, Collect...

JPA

Java Persistence API (JPA) Tutorial...

Spring Framework

Spring Framework, Sprinig IOC, CORE...

Top Sections