Git Product home page Git Product logo

java-practice's Introduction

Simple algorithms and collections in Java exercises

Introduction

This GitHub project was created to serve as a playground for practicing simple algorithms, Java Stream API and Java collections.

IDE Setup

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.

Exercises

Java Stream API

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.

Simple algorithms

  1. 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.

Java Math Exercises

  1. Count the average of 3 integers.
  2. Calculate average value of integers from a list.
  3. Calculate factorial for injected integer.
  4. Find n-th element from the fibonacci sequence.

Java String Exercises

1.Check if text is a Palindrome. 2.Reverse the String.

Java List Exercises

  1. FizzBuzz exercise
  2. Find 2 the smallest numbers from the list. Ignore the repetitions.
  3. Find 2 elements in list whose sum is closest to zero.
  4. Find first element in the list starting with letter "A" with the usage of Regex.

java-practice's People

Contributors

monikakonieczna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.