## Reverse array in subset of N in Java

Problem: Reverse array in subset of N. For example: input: Array = , N = 3 output: The array is divided in 3 subsets , and . Now …

## Jumbled number: Check if a number is jumbled number

Problem: Write a program to check if a given number is jumbled number. What is a jumbled number? A jumbled number is a number in which for every digit, it’s …

## Sherlock and array Hackerrank solution in Java

Problem: Watson gives Sherlock an array A of length N. Then he asks him to determine if there exists an element in the array such that the sum of the …

## Plus minus hackerrank solution

Problem: Given an array of integers, calculate which fraction of the elements are positive, negative, and zeroes, respectively. Print the decimal value of each fraction. This problem was asked in …

## Diagonal difference in Java

Problem: Given a square matrix of size N×N, calculate the absolute difference between the sums of its diagonals. This question was asked in HackerRank. We will see a simple and elegent …

## Find sum of elements of array

You are given an array of integers of size N *N. Find the sum of elements in array? Accept the input from console. This is the simple array program …

## Balanced parentheses

Problem: Check if given sequence of parenthesis is a balanced parenthesis. This question was asked in HackerRank. Given a sequence consisting of parentheses, determine whether the expression is balanced. …

## Producer consumer problem in Java

Problem: Implement producer consumer problem solution in Java. Producer consumer problem is basic multi-threading problem which will give idea about concurrency and inter-thread communication in Java. Producer produces items and …

## Print even and odd numbers using threads in java

Problem: How to print even and odd numbers using threads in Java? Two threads should be used to print numbers. One thread should print even numbers and other should print …

## Create and start a new thread in java

This is the basic question asked in any entry-level Java interview. Knowledge of threads is very important to be an efficient and good Java programmer. We will see how …

#### Get more stuff like thisin your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.