From eb5899ed15d09c88a883e0c184dcf9ef6f2817f6 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:10:17 +0800 Subject: [PATCH] hash_search --- search/hash_search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/hash_search.cpp b/search/hash_search.cpp index 7ed7e5628..6d591f376 100644 --- a/search/hash_search.cpp +++ b/search/hash_search.cpp @@ -25,7 +25,8 @@ 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) { @@ -76,7 +77,6 @@ int main() { printf("search time = %d\n", counter); else printf("no found!\n"); - } return 0; }