This GitHub project was created to serve as a playground for practicing simple algorithms, Java Stream API and Java collections.
This project uses Lombok Library which a java library that automatically plugs into your editor and build tools, spicing up your java.
To configure your IDE for the support of Lombok, check out the official documentation for detail.
There are exercises which introduce the Stream API usage including filtering, sorting and the output to various formats. 1.Find 1 element on the lists which starts with given letter/word. 2.Find first/last element in the list. 3.Sort elements on the list in reverse/natural order. 4.Eliminate duplicates in the list.
- Change making problem addresses the question of finding the minimum number of coins that add up to a given amount of money. It is a special case of the integer knapsack problem.
- Count the average of 3 integers.
- Calculate average value of integers from a list.
- Calculate factorial for injected integer.
- Find n-th element from the fibonacci sequence.
1.Check if text is a Palindrome. 2.Reverse the String.
- FizzBuzz exercise
- Find 2 the smallest numbers from the list. Ignore the repetitions.
- Find 2 elements in list whose sum is closest to zero.
- Find first element in the list starting with letter "A" with the usage of Regex.