## Anagram Program in Java : Check whether Two Strings are Anagrams of each other

Write a anagram program in java or Java program to check anagram. In this programming question, we are going to write a java code to check whether two strings are anagrams of each other.

Let’s first understand what is an anagram? and how we are going to solve this problem.

## What is an Anagram?

Two strings are said to be anagrams of each other if it contains the same characters, only the order of characters in both the strings is different. In other words, both strings must contain the same exact letters in the same exact frequency.

## C Program to Check whether a Number is Prime or Not

Write a c program to check whether a number is prime or not. In this tutorial, we are going to write a c program to check whether an input number is prime or not.

Subscribe Our Tutorials

Given an integer, Write an efficient c code to check whether a number is prime or not.

## C Program to Print Prime Numbers from 1 to N – Sieve of Eratosthenes

Write a c program to print prime numbers from 1 to N (where n is an integer). This question can also be asked like, print prime numbers from 1 to 100 in c. In this tutorial, we are going to use sieve algorithm to print prime numbers from 1 to N.

Suppose the value of N is 10, So the prime numbers between 1 to 10 is 2, 3, 5, 7.

Now, Let’s learn how to print prime numbers from to 1 to N using Sieve of Eratosthenes. Before solving this program, let’s understand what is a prime number.

## Find Second Highest Salary in MySql

Write a query to find second highest salary inMySql . This question is mostly asked in an interviews and it’s also a bit tricky. In this tutorial, We are going to learn three easiest ways to write a MySql query to find second highest salary.

## C Program to Print Triangle Pattern of Numbers and Stars (*)

Write a c program to print triangle pattern of numbers and stars (*). In this tutorial, we are going to write a c code to print triangle pattern of numbers , stars (*) .

## MCQ on Recursion

Recursion is the most important concept in computer science. In this tutorial, You’ll find practice questions related to recursion.

Recursion video tutorials

In my previous posts, i have written about binary search implementation using recursion and difference between recursion and iteration.

These MCQ helps you to understand the concept of Recursion.

1) Which Data Structure is used to perform Recursion?

a) Queue
b) Stack
D) Tree

## Find Pair of Elements in an Array whose Sum is Equal to a given number

Find Pair of Elements in an Array whose Sum is Equal to given number.  Given an array of n integers and a number x, We have to write a code to find a pair of elements(a,b) in an array whose sum is equal to a given number x.

## C Program to Count Number of Words in a String

Write a C program to count number of words in a string. Given an input string, we have to write a c code to count number of words in a string. The words in a string are separated by space(‘ ‘).

## Javascript Interview Questions – MCQ on Arrays

Javascript objective interview practice question on arrays. In these objective questions i covered mostly used javascript array methods such push,pop,slice,shift,sort etc.

## MySql Interview Questions

MySql is one of the most used open-source database. In this article, i try to cover some of the most asked mysql interview questions.