The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 6

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 6

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Java Courses ▼▲
    • Learn JUnit

      Master the most popular Java testing framework.

    • Learn Maven

      Simplify Your Build with Apache Maven

    • Learn Hibernate JPA

      Master persistence with the Java specification and Hibernate implementation

  • Pricing
  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Algorithms » Math

Algorithms are one of the foundational concepts in programming. Have a look at how to work with the most well-known algorithms using the Java language.

  • x Math (35)
  • Sorting (12)
  • Java Search (12)
  • Data Structures (9)
  • Regex (4)
  • Java Integer (4)
  • Multidimensional Array (3)
  • Security Algorithms (3)

>> Generate a Valid Expression From a String of Numbers to Get Target Number

>> Count Numbers With Unique Digits

>> Find the Length of the Largest Subarray With Zero Sum in Java

>> Calculate the Sum of Diagonal Values in a 2d Java Array

>> Counting Subrrays Having a Specific Arithmetic Mean in Java

>> Finding the Next Higher Number With the Same Digits

>> Check if Two Strings Are Permutations of Each Other in Java

>> Calculate Percentiles in Java

>> Find the Largest Number Possible After Removing k Digits of a Number

>> Check if a Number Is a Happy Number in Java

>> Generate Juggler Sequence in Java

>> Count the Number of Unique Digits in an Integer using Java

>> Solving Rod Cutting Problem in Java

>> Find the Equilibrium Indexes of an Array in Java

>> Calculate Weighted Mean in Java

>> Rotate a Vertex Around a Certain Point in Java

>> Check if a Point Is Between Two Points Drawn on a Straight Line in Java

>> A Guide to Timefold Solver for Employee Scheduling

>> Calculate Distance Between Two Coordinates in Java

>> Creating a Magic Square in Java

  • ↑ Back to Top
  • 1
  • 2
  • Next →
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • All About String in Java
  • Security with Spring
  • Java Collections

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo