Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Suffix Array#243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Ankitr19 wants to merge6 commits intocodeIIEST:master
base:master
Choose a base branch
Loading
fromAnkitr19:master
Open

Suffix Array#243

Ankitr19 wants to merge6 commits intocodeIIEST:masterfromAnkitr19:master

Conversation

Ankitr19
Copy link
Contributor

Thank you for your contribution. Please provide the details requested below.

ISSUE NUMBER

Please provide a link to the issue this pull request addresses.

SHORT DESCRIPTION

I have added the Suffix Array code to the string folder.

TESTING

To test the code simply provide any string in the main function of the code, and the code will generate the suffix array for the string.

@prateekiiest
Copy link
Member

you need to fix the tests first

@Ankitr19
Copy link
ContributorAuthor

@prateekiiest I have fixed the issue.

prateekiiest reacted with hooray emoji

Copy link
Member

@prateekiiestprateekiiest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

just a few fixes to be made.

Otherwise it looks good ㊗️ 🎆

Application of suffix array:-

Suffix array is an extremely useful data structure, it can be used for a wide range of problems. Following are some famous problems where Suffix array can be used.
1) Pattern Searching
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

use * instead of numbering


The suffixes are:-

0 banana5 a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

make this part more look good.

Like codify this part to make it look good. Otherwise this part looks odd

map<string,int> m;

vector<string> v;
for(int i = 0; i < s.size();i++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

some comments here will make it better

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@prateekiiestprateekiiestprateekiiest left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Ankitr19@prateekiiest

[8]ページ先頭

©2009-2025 Movatter.jp