# Category: programming

## x raised to power y in Java

Problem: Find x raised to power y in Java without using in built functions. This program is asked in entry level interviews to check knowledge of algorithms. x raised …

## GCD of two numbers in Java

Problem: Find GCD of given numbers in Java. This is a college level program and asked in entry level interviews. This program is asked to check your arithmetic ability and knowledge …

## Pangram : Check if a string has all the letters of alphabet

Problem: Check if a sentence is a pangram or check if a string has all the letters of alphabet. What is a pangram? A Pangram is a sentence which contains …

## First repeating element in array in Java

Problem: First repeating element in array. Given an array of integers, find the first repeating number in the array. Example: Input array, arr = Then first repeating number …

## Prime number program in Java

Problem: Check if a given number is a prime number in Java. This is college level program and asked in entry level interviews. I have added JUnits also along …

## Longest substring without repeating characters

Problem: Find longest substring without repeating characters. This program is asked in programming interviews. Easy and elegant solution is expected. Ex: If the input string is “abcabcd” then the longest …

## Find missing number in an array in Java

Problem: Find missing number in an array. Given an array of size n-1, populated with numbers from 1 to n. There are no duplicates in the array. Find the …

## Transpose matrix in Java

In this article we will see how to transpose a matrix in Java. This is an algebra problem and asked in entry level interviews. Transpose matrix is similar to rotating …

## Rotate matrix by 90 degrees

Problem: Rotate matrix by 90 degrees. In this article we will see how to rotate a matrix by 90 degrees to right. This program is asked in programming interviews. …

## N largest numbers from three sorted arrays

Problem: Find N largest numbers from 3 sorted arrays. Ex: Given 3 sorted arrays, { 3, 7, 10, 14, 19, 78, 78, 200 }, { 4, 7, 67, 116, …