The primary programming language is Java, as it is mature and easy to learn, but you can practice the same problems in any other language (Kotlin, Python, Javascript, etc.).
Java Programming Exercises to Improve your Coding Skills with Solutions. All you need to excel on a Java interview ! Now with Java 8 Lamdbas and Streams exercises.
Challenging Sum of Two Numbers Sum Multiples of Three and Five Factorial Linear Search Reverse String Find Maximum Average Value (Java 8 Lambdas and Streams) Convert to Upper Case (Java 8 Lambdas and Streams) Nth Odd Element Number Of Tree Nodes Count Nodes in List Count Number of Leaf Nodes Binary Tree Depth Find Second Largest Number in Array
Write a method that returns the nth element of the Fibonacci Sequence The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34,...
Write a method that returns the index of the first occurrence of given integer in a list. Assume that the index of the first element in the list is zero. If the number does not exist return -1.
Coding Bat was one of the first sites to provide the ability to submit your code online. It supports both Java and Python, although the number of exercises available in Python is limited.
Fizz Buzz Prime Number Fibonacci Number Palindrome Check Even Fibonacci Sum Greatest Common Divisor Package Rice Bags Filter Strings (Java 8 Lambdas and Streams) Comma Separated (Java 8 Lambdas and Streams) Ceasar Cipher Strict Binary Tree Check Two Sum (Pair with a Given Sum)
In this post, I’ll show you my favourite code kata. The core idea is to resolve a relatively simple programming problem, following an exaggerated version of coding best practices.