## Anagram Method 3 – HackerRank Solution

Solve Anagram Problem without using Inbuilt method in java. Anagram is a strings that contains same character frequency.

## Anagram Method 2 – HackerRank Solution

Anagram is a set of two strings having same frequency of same character. This approach solve the problem with inbuilt method in java.

## Anagram Method 1 – HackerRank Solution

Anagram is a set of two strings having same frequency of same character. This will solve using HashMap in java.

## HackerRank Solution :: 30 Days Of Code – 3.Intro to Conditional Statements

• Java

Objective In this challenge, we’re getting started with conditional statements. Check out the Tutorial tab for learning materials and an instructional video! Task Given an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of 2 to 5,… Read More »HackerRank Solution :: 30 Days Of Code – 3.Intro to Conditional Statements

## HackerRank Solution :: 30 Days Of Code – 2.Operators

• Java

ObjectiveIn this challenge, you’ll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video! TaskGiven the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip), and tax percent (the percentage of the meal price being added as tax) for a meal,… Read More »HackerRank Solution :: 30 Days Of Code – 2.Operators

## HackerRank Solution :: 30 Days Of Code – 1.Data Types

• Java

Objective Today, we’re discussing data types. Check out the Tutorial tab for learning materials and an instructional video! Task Complete the code in the editor below. The variables i ,d , and s are already declared and initialized for you. You must: Declare 3 variables: one of type int, one of type double,… Read More »HackerRank Solution :: 30 Days Of Code – 1.Data Types

## Write a program for Run Length Encoding

Run Length Encoding is a form of lossless data compression in which runs of data are stored as a single data value and count, rather than as the original run. import java.util.*; class RLEChallange { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String… Read More »Write a program for Run Length Encoding

## Write a java program which generates student grade report in console. Take student roll number and marks (out of 100) of 5 courses from user. Calculate the percentage and display grade of the student. Use appropriate control statements.

• Java

The below program shows how to use array and store student’s details and fetch details. Here we are using for each loop which is used to iterate throughout entire array element. Example import java.util.Scanner; class FindGrade { //get roll number and marks of student and… Read More »Write a java program which generates student grade report in console. Take student roll number and marks (out of 100) of 5 courses from user. Calculate the percentage and display grade of the student. Use appropriate control statements.

## Demonstrate concept of Arithmetic & Bitwise Operators with a java program. Operands to be considered as per the operators entered by the user.

• Java

The below program performs arithmetic and bitwise operations based on number entered by user. Scanner class is used to take input from the user, which is inside java.util.Scanner  class. System.in is used to use input classes. Example import java.util.Scanner; class ArithmeticOperation { //arithmetic operation on… Read More »Demonstrate concept of Arithmetic & Bitwise Operators with a java program. Operands to be considered as per the operators entered by the user.

## Write a Java program using class that prints the numbers 1 to 50. For all multiples of 3 print “Fizz” and for all multiples of 5 print “Bizz”. For multiples of both 3 and 5 print “Fizz-Bizz”.

• Java

In this program, we iterate the loop and print Fizz when the current number is multiple of 3, and print Bizz when the current number is multiple of 5, and print Fizz-Bizz when the current number is multiple of 3 and 5. The below example… Read More »Write a Java program using class that prints the numbers 1 to 50. For all multiples of 3 print “Fizz” and for all multiples of 5 print “Bizz”. For multiples of both 3 and 5 print “Fizz-Bizz”.