From 4d9470555f546f38d3c5b4a024ab88d133d27114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E6=B7=9E=E4=B8=B0?= <50102735+Arctic2333@users.noreply.github.com> Date: Mon, 2 Dec 2019 11:12:56 +0800 Subject: [PATCH] hash_search --- search/hash_search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/search/hash_search.cpp b/search/hash_search.cpp index 6d591f376..cd122fe2c 100644 --- a/search/hash_search.cpp +++ b/search/hash_search.cpp @@ -25,8 +25,7 @@ void create_list(int key) { if (p != NULL) { n -> next = p; hashtab[index].next = n; - } - else + } else hashtab[index].next = n; } int hash_search(int key) {