Objective: Given two coordinates (x1, y1) and (x2, y2). Write a java program to construct a line...

## Find the sum of overlapping elements in two sets in Java

Given two sets of integers, write an algorithm to print the sum of overlapping elements in two sets...

## Find Number of reverse pairs in an Array in Java

Given an array of integers with duplicates, write a program to print unique elements in the array...

## Replace array elements with maximum element on the right in Java

Given an array of integers, write a program to replace its elements with the maximum element on...

## Print all distinct Subsets of a given List in Java

Given an array of integers and number N, Write an algorithm to find and print all the subsets of...

## Print Sorted Distinct Elements of Array in Java

Given an array of integers with duplicates, write a program to print unique elements in the array...

## Pseudocode to Claculate Area and Perimeter of Circle

In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a...

## Find three-element sum closest to Zero in Java

Given an array of integers, find the sum of any three elements which is closest to zero. The array...

## Greatest Common Factor Calculator in JavaScript

Greatest common factor (GCF) calculator. Is also known as greateset common divisor (GCD). GCF...

## Find Two Missing Numbers in Java

How do you find two missing numbers in a sequence? How do you find the missing number in a sequence...

## Java Program to Reverse the given String using Stack

Java Program to Reverse the given String using Stack Given a String, write a java program to...

## Reverse a String using Recursion in Java

Java program to reverse a string that a user inputs. If the string is “hello” then, the...

## How to check Oracle Database version

Connected to an Oracle server by SQL Developer or another database management tool, do you need to...

## How to Compare Two Strings in Java Without Using Equals

In this java example we will learn that given two strings, find out if they are equal or not...

## Compare Two Strings in Java

In this post we will learn how to compare two strings in java. String is a sequence of characters...