Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: erotica/Java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: TheAlgorithms/Java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 6 files changed
  • 4 contributors

Commits on Mar 14, 2026

  1. Overlapping condition changed (TheAlgorithms#7314)

    Overlapping happens not when centers of circular bodies are in the same point, but when the distance between them is smaller than the sum of their radii.
    kvadrik authored Mar 14, 2026
    Configuration menu
    Copy the full SHA
    8bbd090 View commit details
    Browse the repository at this point in the history
  2. Improve space complexity to O(1) in WordSearch. (TheAlgorithms#7308)

    * Modifying space complexity to O(1).
    
    * Fix formatting using clang-format.
    
    * Fix checkstyle violations.
    
    * Fix checkstyle violations and code formatting.
    
    * Remove unused fields reported by SpotBugs.
    
    * Remove unused fields and comments.
    
    * Remove unused field reported by SpotBugs.
    
    * Fix PMD collapsible if statement.
    
    * Fix indentation to satisfy clang-format.
    
    ---------
    
    Co-authored-by: Deniz Altunkapan <[email protected]>
    Maryamh12 and DenizAltunkapan authored Mar 14, 2026
    Configuration menu
    Copy the full SHA
    24c2bea View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2026

  1. Added quadratic mean (TheAlgorithms#7315)

    * Added quadratic mean
    
    Added a quadratic mean of the given numbers, sqrt ((n1^2+n2^2+...+nk^2)/k).
    
    * Added tests for quadratic mean
    
    * Corrected quadratic mean
    
    * Added comment to quadratic mean
    
    * Corrected quadratic mean tests
    
    * Replaced sqrt by pow
    
    * Error fixed
    
    * Extra whitespace removed
    
    * Extra whitespace removed
    
    * Removed extra white space
    
    * Removed extra white space
    kvadrik authored Mar 15, 2026
    Configuration menu
    Copy the full SHA
    7d57c57 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2026

  1. feat(strings): add Kasai's algorithm for LCP array construction (TheA…

    …lgorithms#7324)
    
    * feat(strings): add Kasai's algorithm for LCP array
    
    Implement Kasai's algorithm to compute the Longest Common Prefix (LCP) array in O(N) time given a string and its suffix array. Add KasaiAlgorithm.java and KasaiAlgorithmTest.java.
    
    * style(strings): fix KasaiAlgorithmTest array initialization format for clang-format
    Keykyrios authored Mar 18, 2026
    Configuration menu
    Copy the full SHA
    af1d9d1 View commit details
    Browse the repository at this point in the history
Loading