From da0c875504ab91edae306f427414fb5fae626b53 Mon Sep 17 00:00:00 2001 From: weiss-ben <90002567+weiss-ben@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:47:59 +0300 Subject: [PATCH] Update search/median_search2.cpp Co-authored-by: David Leal --- search/median_search2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/search/median_search2.cpp b/search/median_search2.cpp index d0de62a36..bd241d9f5 100644 --- a/search/median_search2.cpp +++ b/search/median_search2.cpp @@ -22,11 +22,11 @@ * Definition for singly-linked list. */ struct ListNode { - int val; // The value stored in the node - ListNode *next; // Pointer to the next node - ListNode() : val(0), next(nullptr) {} // Default constructor - ListNode(int x) : val(x), next(nullptr) {} // Constructor with value for node->val provided - ListNode(int x, ListNode *next) : val(x), next(next) {} // Constructor with values provided for node->val and node->next + int val; ///< the value stored in the node + ListNode *next; ///< pointer to the next node + ListNode() : val(0), next(nullptr) {} ///< default constructor + ListNode(int x) : val(x), next(nullptr) {} ///< constructor with value for node->val provided + ListNode(int x, ListNode *next) : val(x), next(next) {} ///< constructor with values provided for node->val and node->next }; #include /// for IO operations