1 2

## 05: Finding the 2nd highest number in an array

Requirements gathering Does the array allow duplicates? If duplicates are allowed, then do you need to report duplicates? For example, in …… Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## 08: Write code to add, subtract, multiply, and divide given numbers?

A trivial coding example (i.e. a Calculator) tackled using the following programming paradigms in Java not only to perform well in …

## 17 Java Coding Tips for job interviews and pre-interview coding tests

Java coding questions are very common in job interviews. Good coding skills are essentials for passing the peer code reviews with … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Fibonacci number

Q1. Can you write a function to determine the nth Fibonacci number? The Fibonacci numbers under 2000 are : 0, 1, … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Fibonacci number with caching and Java 8 FP

Complimenting Fibonacci number coding – iterative and recursive approach, we can improve performance by caching. If you run this Output…… Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Find 2 numbers from an array that add up to the target

Q1. Given an array of integers, find two numbers such that they add up to a specific target number? For example,… … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Find the first non repeated character in a given string input

Pseudocode 1) Precodnition check for null or empty input. 2) Loop throught the input string, and store each “character” as a … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Finding the missing numbers Java example

Q. Can you write code to identify missing numbers in a given array of numbers?

Solution 1: Assuming that the given

## Finding the perfect number

Q. Can you write code to output the perfect number between a given range? Definition: A perfect number is a positive … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Fizz Buzz

Q1. Write a program that prints numbers from 1 to 30, but for multiples of three print “Fizz” instead of … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Generating random numbers in Java

Q1. Can you write Java code to generate random numbers between a given range? A1. E.g. 0 and 9 or 5 … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Huffman coding in Java

This is a very decent coding exercise to sharpen your coding skills. Nicely explained with diagrams and complete code. Q1. What … … Read more ›...

###### Members Only Content
RegisterFree Java Q&As Free Data Q&As

## Iteration Vs Recursion

Q1. Can you write a sample code that will count the number of “A”s in a given text “AAA