From 6663406f53ce24ccfd13a2d6a2542b16cedfc68c Mon Sep 17 00:00:00 2001 From: Jxtopher <39927513+Jxtopher@users.noreply.github.com> Date: Tue, 13 Jul 2021 23:19:18 +0200 Subject: [PATCH] Update magic_sequence.cpp --- backtracking/magic_sequence.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backtracking/magic_sequence.cpp b/backtracking/magic_sequence.cpp index 61e49e1ff..6c7e6e2cf 100644 --- a/backtracking/magic_sequence.cpp +++ b/backtracking/magic_sequence.cpp @@ -60,11 +60,10 @@ bool is_magic(const sequence_t& s) { /** * @brief Sub-solutions filtering - * * @param s a magic sequence * @param depth tree depth - * @return true if the sub-solution is valid - * @return false otherwise + * @returns true if the sub-solution is valid + * @returns false if the sub-solution is NOT valid */ bool filtering(const sequence_t& s, unsigned int depth) { return std::accumulate(s.cbegin(), s.cbegin() + depth, @@ -73,7 +72,6 @@ bool filtering(const sequence_t& s, unsigned int depth) { /** * @brief Solve the Magic Sequence problem - * * @param s a magic sequence * @param ret list of valid magic sequences * @param depth depth in the tree