Skip to content

Commit

Permalink
Added some comments to my files in: TheAlgorithms#160, TheAlgorithms#162
Browse files Browse the repository at this point in the history
, TheAlgorithms#163, TheAlgorithms#166. Implemented Segment Tree Data Structure.
  • Loading branch information
Ramy-Badr-Ahmed committed Sep 28, 2024
1 parent d61d023 commit f0acc06
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 0 deletions.
8 changes: 8 additions & 0 deletions DataStructures/AVLTree/AVLTree.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #163
* https://github.com/TheAlgorithms/PHP/pull/163
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\AVLTree;

/**
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/AVLTree/AVLTreeNode.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #163
* https://github.com/TheAlgorithms/PHP/pull/163
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\AVLTree;

class AVLTreeNode
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/DisjointSets/DisjointSet.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #160
* https://github.com/TheAlgorithms/PHP/pull/160
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\DisjointSets;

class DisjointSet
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/DisjointSets/DisjointSetNode.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #160
* https://github.com/TheAlgorithms/PHP/pull/160
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\DisjointSets;

class DisjointSetNode
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/SegmentTree/SegmentTree.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request #166
* https://github.com/TheAlgorithms/PHP/pull/166
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\SegmentTree;

use InvalidArgumentException;
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/SegmentTree/SegmentTreeNode.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request #166
* https://github.com/TheAlgorithms/PHP/pull/166
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\SegmentTree;

class SegmentTreeNode
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/Trie/Trie.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #162
* https://github.com/TheAlgorithms/PHP/pull/162
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\Trie;

class Trie
Expand Down
8 changes: 8 additions & 0 deletions DataStructures/Trie/TrieNode.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #162
* https://github.com/TheAlgorithms/PHP/pull/162
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures\Trie;

class TrieNode
Expand Down
8 changes: 8 additions & 0 deletions tests/DataStructures/AVLTreeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #163
* https://github.com/TheAlgorithms/PHP/pull/163
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures;

require_once __DIR__ . '/../../DataStructures/AVLTree/AVLTree.php';
Expand Down
8 changes: 8 additions & 0 deletions tests/DataStructures/DisjointSetTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #160
* https://github.com/TheAlgorithms/PHP/pull/160
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures;

require_once __DIR__ . '/../../DataStructures/DisjointSets/DisjointSet.php';
Expand Down
8 changes: 8 additions & 0 deletions tests/DataStructures/SegmentTreeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request #166
* https://github.com/TheAlgorithms/PHP/pull/166
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures;

require_once __DIR__ . '/../../DataStructures/SegmentTree/SegmentTree.php';
Expand Down
8 changes: 8 additions & 0 deletions tests/DataStructures/TrieTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<?php

/*
* Created by: Ramy-Badr-Ahmed (https://github.com/Ramy-Badr-Ahmed) in Pull Request: #162
* https://github.com/TheAlgorithms/PHP/pull/162
*
* Please mention me (@Ramy-Badr-Ahmed) in any issue or pull request addressing bugs/corrections to this file.
* Thank you!
*/

namespace DataStructures;

require_once __DIR__ . '/../../DataStructures/Trie/Trie.php';
Expand Down

0 comments on commit f0acc06

Please sign in to comment.