」 feat: added ex01, might need adjustments :c

This commit is contained in:
y-syo
2025-08-26 18:58:54 +02:00
parent fd0bfc5420
commit 021636df08
4 changed files with 167 additions and 0 deletions

20
ex01/Span.hpp Normal file
View File

@@ -0,0 +1,20 @@
#include <vector>
class Span {
public:
Span(void);
Span(unsigned int);
Span(Span &);
Span &operator=(Span &);
~Span(void);
void addNumber(int);
int shortestSpan(void);
int longestSpan(void);
private:
std::vector<int> _data;
std::size_t _size;
std::size_t _max_size;
};