mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-08 15:14:01 +08:00
Update search/median_search2.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user