|
ADS
Algorithms and Data Structures
|
a segment \( D[ f .. f + \ell - 1 ] \) of the array and its sum, with \( f \) the place first and \( \ell \) the length More...
#include <ADS/algorithm/MaximumSegments.h>
Public attributes | |
| T | sum {} |
| the sum of its items | |
| std::size_t | first = 0 |
| the place of its first item | |
| std::size_t | length = 0 |
| 0 for no segment | |
a segment \( D[ f .. f + \ell - 1 ] \) of the array and its sum, with \( f \) the place first and \( \ell \) the length
| std::size_t ADS::Segment< T >::first = 0 |
the place of its first item
| std::size_t ADS::Segment< T >::length = 0 |
0 for no segment
| T ADS::Segment< T >::sum {} |
the sum of its items