The Wayback Machine - https://web.archive.org/web/20200916130852/https://github.com/TheAlgorithms/C/pull/595
Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Added segment_trees Closes #561 #595

Merged
merged 6 commits into from Sep 9, 2020
Merged

Conversation

@Lakhan-Nad
Copy link
Contributor

Lakhan-Nad commented Aug 18, 2020

Description of Change

Added segment_trees code with a test on RMQ

References

Issue: #561

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

Any change or update is welcome. If my code seems less documented please let me know where should I change.

@kvedala kvedala linked an issue that may be closed by this pull request Aug 18, 2020
@Lakhan-Nad
Copy link
Contributor Author

Lakhan-Nad commented Aug 20, 2020

@kvedala Sir, is there any suggestion or change request?

Copy link
Collaborator

kvedala left a comment

Thank you :)
Please update the code with specs provided in description and references from other files. The code is not formatted per the repo standards. You can simply enable GitHub Actions on your fork to enable auto-formatting of the code. No need to create any CI file, all the requirements are already present.

data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
Lakhan-Nad and others added 2 commits Aug 23, 2020
@kvedala
Copy link
Collaborator

kvedala commented Aug 25, 2020

Please remove @fn tags from the code - refer to the warning

Copy link
Collaborator

kvedala left a comment

👍 well done. minor fixes with docs

data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
Copy link
Collaborator

kvedala left a comment

👍 LGTM

@Lakhan-Nad
Copy link
Contributor Author

Lakhan-Nad commented Aug 26, 2020

+1 LGTM

What with LGTM??

@kvedala
Copy link
Collaborator

kvedala commented Aug 26, 2020

+1 LGTM

What with LGTM??

meaning

@Lakhan-Nad
Copy link
Contributor Author

Lakhan-Nad commented Aug 26, 2020

+1 LGTM

What with LGTM??

meaning

OK :)

Copy link
Member

Panquesito7 left a comment

LGTM. 👍 😄

data_structures/binary_trees/segment_tree.c Outdated Show resolved Hide resolved
Co-authored-by: David Leal <[email protected]>
@Lakhan-Nad
Copy link
Contributor Author

Lakhan-Nad commented Sep 9, 2020

LGTM. +1 smile

Thanks

@kvedala kvedala merged commit e75d0e7 into TheAlgorithms:master Sep 9, 2020
5 checks passed
5 checks passed
Code Formatter
Details
Compile checks (ubuntu-latest)
Details
Compile checks (windows-latest)
Details
Compile checks (macOS-latest)
Details
LGTM analysis: C/C++ No new or fixed alerts
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.