Skip to content

Conversation

NithinU2802
Copy link
Contributor

Description

This PR adds an implementation of the Suffix Array algorithm in Java. The algorithm builds an array of indices that represent all suffixes of a string in sorted order, using an efficient O(N log N) approach.

Please let me know if any changes are required. I'm happy to update accordingly🚀😊.

This PR closes issue #6529.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.13%. Comparing base (c370101) to head (64f2a98).

Files with missing lines Patch % Lines
...in/java/com/thealgorithms/strings/SuffixArray.java 92.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6530      +/-   ##
============================================
+ Coverage     75.11%   75.13%   +0.02%     
- Complexity     5577     5589      +12     
============================================
  Files           686      687       +1     
  Lines         19327    19352      +25     
  Branches       3734     3742       +8     
============================================
+ Hits          14518    14541      +23     
  Misses         4246     4246              
- Partials        563      565       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan merged commit 85a2df4 into TheAlgorithms:master Sep 17, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants