Java Coding Challenges

Java coding challenges - find palindrome number, sort 1 million integers in Big O(1) time, check number is prime, anagram buckets, reverse a string, check Armstrong number, check factorial of a number, pangram sentence.

Java Program to find Factorial of a number

Carvia Tech | October 17, 2020 | 2 min read | 238 views | Java Coding Challenges

Discussion on different approaches to calculate factorial of a given number - recursion, iterative approach and Java 8 stream approach

Read Article

Reverse position of words in a string using recursion

Carvia Tech | October 09, 2020 | | 0 views | Java Coding Challenges

In this article, we will write a program to reverse position of words in a given string using recursive approach.

Read Article

Program to reverse a string using recursion in Java

Carvia Tech | October 09, 2020 | 1 min read | 241 views | Java Coding Challenges

In this article, we will write a program to reverse character positions in a given string using recursive approach.

Read Article

Pangram checker in java

Carvia Tech | September 12, 2020 | 2 min read | 2,918 views | Java Coding Challenges

A pangram is a sentence containing every letter in the English Alphabet (a-z). Pangram example: The quick brown fox jumps over the lazy dog

Read Article

Anagrams string checker in Java

Carvia Tech | July 24, 2020 | 2 min read | 1,235 views | Java Coding Challenges

Two strings are called anagrams if they contain same set of characters but in different order. Here we will evaluate anagrams using a Java Program

Read Article

Armstrong Number in Java

Carvia Tech | July 24, 2020 | 2 min read | 717 views | Java Coding Challenges

In an Armstrong number (also known as _narcissistic number_), is a number that is the sum of its own digits each raised to the power of the number of digits

Read Article

Palindrome checker in Java

Carvia Tech | July 24, 2020 | 2 min read | 1,236 views | Java Coding Challenges

A palindrome is a word, number, or other sequence of characters which reads the same backward as forward, such as madam, racecar or 454.

Read Article

Check a number is Prime: Java Coding Problem

Carvia Tech | October 30, 2019 | 3 min read | 581 views | Java Coding Challenges

In this article we will learn if a given number is prime or not. The solution presented here may not be best optimized, but it should be sufficient from interview point of view.

Read Article

Check if the given string is palindrome

Carvia Tech | September 09, 2019 | 2 min read | 479 views | Java Coding Challenges

In this article we will write java code to check if the given input string is palindrome or not.

Read Article

How to reverse a number in Java

Carvia Tech | September 07, 2019 | 1 min read | 1,041 views | Java Coding Challenges

This is a common SDET interview questions where interviewer asks for reversing a number using any language.

Read Article

This website uses cookies to ensure you get the best experience on our website. more info