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

feat: add 2-3-4-tree implment #1366

Merged
merged 15 commits into from
Dec 1, 2020
Merged

Conversation

fedom
Copy link
Contributor

@fedom fedom commented Oct 21, 2020

Description of Change

feat: add 2-3-4-tree implment

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • I acknowledge that all my contributions will be made under the project's license.

Notes:

@Panquesito7 Panquesito7 added automated tests are failing Do not merge until tests pass enhancement New feature or request Proper Documentation Required requested to write the documentation properly labels Oct 21, 2020
Copy link
Member

@Panquesito7 Panquesito7 left a comment

Choose a reason for hiding this comment

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

Please fix clang-tidy warnings.

Code is not up to the repository standards.
Please read them carefully and follow them.

data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
@Panquesito7 Panquesito7 added the requested changes changes have been requested label Oct 21, 2020
@fedom
Copy link
Contributor Author

fedom commented Oct 22, 2020

Please fix clang-tidy warnings.

Code is not up to the repository standards.
Please read them carefully and follow them.

@fedom fedom closed this Oct 22, 2020
@fedom fedom reopened this Oct 22, 2020
@fedom
Copy link
Contributor Author

fedom commented Oct 22, 2020

Please fix clang-tidy warnings.

Code is not up to the repository standards.
Please read them carefully and follow them.

hi Panquesito7, I have fix most of the warnings. But replacing fprintf() with std::cout and manging node with smart pointer is a little pain. Any suggestions?

@Panquesito7 Panquesito7 removed the automated tests are failing Do not merge until tests pass label Oct 22, 2020
@Panquesito7
Copy link
Member

Any suggestions?

You can run GitPod on the web for more detailed errors. 🙂

@Panquesito7 Panquesito7 removed the Proper Documentation Required requested to write the documentation properly label Oct 22, 2020
Copy link
Member

@Panquesito7 Panquesito7 left a comment

Choose a reason for hiding this comment

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

👍 Well done!

data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Show resolved Hide resolved
data_structures/tree_234.cpp Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
data_structures/tree_234.cpp Outdated Show resolved Hide resolved
Add namespaces

Co-authored-by: David Leal <[email protected]>
Copy link
Member

@Panquesito7 Panquesito7 left a comment

Choose a reason for hiding this comment

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

Amazing work, I like how you've made the code. 😄 👍
Code and documentation is pretty good and refined; LGTM. 🙂

@Panquesito7 Panquesito7 added approved Approved; waiting for merge and removed requested changes changes have been requested labels Oct 27, 2020
@fedom
Copy link
Contributor Author

fedom commented Oct 27, 2020

refined

Thank you for your credit and your help.😄

@fedom
Copy link
Contributor Author

fedom commented Dec 1, 2020

hi @ayaankhan98 , can you please review the code?

Copy link
Member

@ayaankhan98 ayaankhan98 left a comment

Choose a reason for hiding this comment

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

great work! Thanks for your contribution @fedom

@ayaankhan98 ayaankhan98 merged commit 9d3d40b into TheAlgorithms:master Dec 1, 2020
@fedom
Copy link
Contributor Author

fedom commented Dec 1, 2020

great work! Thanks for your contribution @fedom

thank you:)

ayaankhan98 pushed a commit to ayaankhan98/C-Plus-Plus that referenced this pull request Feb 11, 2021
* feat: add 2-3-4 tree implment

* updating DIRECTORY.md

* docs: fix format issue of tab&space

* fix: fix code format issues

* fix: convert printf() to std::cout

* fix: fix some clang-tidy warnings

* fix: fix clang-tidy warnings of memory owning

* fix: remove use of  std::make_unique which is not support by c++11

* docs: improve documents

* fix: replace fprint with ofstream, and improve docs

* docs: improve docs for including header file

* docs: improve file doces

* fix: convert item type to int64_t, convert node item count type to int8_t

* refactor: Apply suggestions from code review

Add namespaces

Co-authored-by: David Leal <[email protected]>

* docs: remove obsolete comments

Co-authored-by: liuhuan <[email protected]>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: David Leal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved; waiting for merge enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants