-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchallenge.hpp
More file actions
56 lines (41 loc) · 1.3 KB
/
challenge.hpp
File metadata and controls
56 lines (41 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// challenge.hpp
// project-euler
//
// Created by Carlos Álvaro on 12/02/22.
// Copyright © 2022 cdalvaro.io. All rights reserved.
//
#ifndef challenges_c0025_challenge_hpp
#define challenges_c0025_challenge_hpp
#include <string>
#include "challenges/ichallenge.hpp"
namespace challenges {
/**
@class Challenge25
@brief This class is intended to solve Challenge 25
@link https://projecteuler.net/problem=25 @endlink
*/
class Challenge25 : virtual public IChallenge {
public:
//! @copydoc IChallenge::Type_t
using Type_t = std::size_t;
/**
@brief Class constructor
@param number_of_digits The number of digits of the number to be found
This is the main constructor of Challenge25 class
*/
explicit Challenge25(const std::size_t &number_of_digits);
/**
@brief Default destructor
*/
~Challenge25() override = default;
/**
This method contains the algorithm that solves challenge 25
@return The solution for challenge 25
*/
Solution_t solve() final;
private:
std::size_t number_of_digits; ///< The number of digits of the number to be found
};
} // namespace challenges
#endif /* challenges_c0025_challenge_hpp */