[PR #595] [MERGED] Feature: Added segment_trees Closes #561 #1038

Open
opened 2026-01-29 15:17:01 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/595
Author: @Lakhan-Nad
Created: 8/18/2020
Status: Merged
Merged: 9/9/2020
Merged by: @kvedala

Base: masterHead: master


📝 Commits (6)

  • 9015e44 Feature: Added segment_trees Closes #561
  • 64920b2 doc: documentation improved and explanations added
  • 5893311 updating DIRECTORY.md
  • c44eb82 doc: changes in documentation
  • 279d2bc doc: suggested doc changes and int types changed
  • 3da4ff2 update: doc change for main function

📊 Changes

2 files changed (+236 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
data_structures/binary_trees/segment_tree.c (+235 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/595 **Author:** [@Lakhan-Nad](https://github.com/Lakhan-Nad) **Created:** 8/18/2020 **Status:** ✅ Merged **Merged:** 9/9/2020 **Merged by:** [@kvedala](https://github.com/kvedala) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (6) - [`9015e44`](https://github.com/TheAlgorithms/C/commit/9015e44fe479353ff091021d0c50ddadc34238b4) Feature: Added segment_trees Closes #561 - [`64920b2`](https://github.com/TheAlgorithms/C/commit/64920b2c9eb06ee9cb35c93f4feac790e2a3fc47) doc: documentation improved and explanations added - [`5893311`](https://github.com/TheAlgorithms/C/commit/58933118632866dc4f83079ccd3ef4b00227b504) updating DIRECTORY.md - [`c44eb82`](https://github.com/TheAlgorithms/C/commit/c44eb82a81e7f054804822a6559abb345f8c7035) doc: changes in documentation - [`279d2bc`](https://github.com/TheAlgorithms/C/commit/279d2bc10c92f4acf80467997dd46927010ef1b8) doc: suggested doc changes and int types changed - [`3da4ff2`](https://github.com/TheAlgorithms/C/commit/3da4ff21f643273161f121ddcee7b3e4c1a44cae) update: doc change for main function ### 📊 Changes **2 files changed** (+236 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `data_structures/binary_trees/segment_tree.c` (+235 -0) </details> ### 📄 Description #### Description of Change Added segment_trees code with a test on RMQ <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C-Plus-Plus/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> Issue: #561 #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [X] Added description of change - [X] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#New-File-Name-guidelines) - [X] Added tests and example, test must pass - [X] Relevant documentation/comments is changed or added - [X] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [X] Search previous suggestions before making a new one, as yours may be a duplicate. - [X] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> Any change or update is welcome. If my code seems less documented please let me know where should I change. <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/595"><img src="https://gitpod.io/api/apps/github/pbs/github.com/Lakhan-Nad/C.git/3da4ff21f643273161f121ddcee7b3e4c1a44cae.svg" /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:17:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1038