From 2c19ac5ae4c518f6b7fd24ce2549d2f416173d27 Mon Sep 17 00:00:00 2001 From: Ashish Bhanu Daulatabad Date: Mon, 8 Mar 2021 11:13:57 +0530 Subject: [PATCH] Re-documentation --- dynamic_programming/abbreviation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dynamic_programming/abbreviation.cpp b/dynamic_programming/abbreviation.cpp index 075888b44..c46b4a1f4 100644 --- a/dynamic_programming/abbreviation.cpp +++ b/dynamic_programming/abbreviation.cpp @@ -49,8 +49,8 @@ namespace abbreviation { * @param result resultant abbreivated string * @param str_idx pointer for string `str`, helpful for transitions * @param result_idx pointer for string `result`, helpful for transitions - * @returns boolean (`true` or `false`) whether string `str` can be converted to - * `result` + * @returns `false` if string `str` cannot be converted to `result` + * @returns `true` if string `str` can be converted to `result` */ bool abbreviation_recursion(std::vector> *memo, std::vector> *visited, @@ -109,8 +109,8 @@ bool abbreviation_recursion(std::vector> *memo, * Note: The transition states for iterative is similar to recursive as well * @param str given string, which might not be abbreivated * @param result resultant abbreivated string - * @returns boolean (`true` or `false`) whether string `str` can be converted to - * `result` + * @returns `false` if string `str` cannot be converted to `result` + * @returns `true` if string `str` can be converted to `result` */ bool abbreviation(const std::string &str, const std::string &result) { std::vector> memo(