Update search/median_search2.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
weiss-ben
2022-09-25 11:39:20 +03:00
committed by GitHub
parent daba0775c5
commit d8b1f35a77

View File

@@ -100,14 +100,6 @@ static void test() {
assert(3 == median->val); // 3 is the value of the median node.
std::cout << "test case:1 passed\n";
// Clean up
while (head1) {
ListNode* t = head1;
head1 = head1->next;
delete t;
}
delete head1;
delete temp;
// Test case # 2
auto* head2 = new ListNode;