From 28a8716bf431a8a67aa9e2f152aa7a455cbeea8e Mon Sep 17 00:00:00 2001 From: HyeonWook Jung <68739701+KirschX@users.noreply.github.com> Date: Fri, 24 Jun 2022 13:55:35 +0900 Subject: [PATCH 1/3] Create banUsers --- HyeonWook/DFS&BFS/banUsers | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 HyeonWook/DFS&BFS/banUsers diff --git a/HyeonWook/DFS&BFS/banUsers b/HyeonWook/DFS&BFS/banUsers new file mode 100644 index 0000000..1d529bb --- /dev/null +++ b/HyeonWook/DFS&BFS/banUsers @@ -0,0 +1,38 @@ +function solution (user_id, banned_id) { + + let banLists = []; + + //배열을 DSF 탐색 + function DSF(users, bIds, bans){ + if(bIds.length === 0) { + banLists.push(bans) + + return; + } + + for(let i =0; i JSON.stringify(list.sort())) + + return Array.from(new Set(...[banLists])).length + + // for문으로 문자열 일치 판별 + function match(idA, idB){ + if(idA.length !== idB.length) return false; + for(let i =0; i Date: Fri, 24 Jun 2022 13:56:36 +0900 Subject: [PATCH 2/3] Delete banUsers --- HyeonWook/DFS&BFS/banUsers | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 HyeonWook/DFS&BFS/banUsers diff --git a/HyeonWook/DFS&BFS/banUsers b/HyeonWook/DFS&BFS/banUsers deleted file mode 100644 index 1d529bb..0000000 --- a/HyeonWook/DFS&BFS/banUsers +++ /dev/null @@ -1,38 +0,0 @@ -function solution (user_id, banned_id) { - - let banLists = []; - - //배열을 DSF 탐색 - function DSF(users, bIds, bans){ - if(bIds.length === 0) { - banLists.push(bans) - - return; - } - - for(let i =0; i JSON.stringify(list.sort())) - - return Array.from(new Set(...[banLists])).length - - // for문으로 문자열 일치 판별 - function match(idA, idB){ - if(idA.length !== idB.length) return false; - for(let i =0; i Date: Fri, 24 Jun 2022 13:58:35 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[PGM]=20=EB=B6=88=EB=9F=89=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=9E=90=20/=20level3=20/=201=EC=8B=9C=EA=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HyeonWook/DFS&BFS/banUsers | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 HyeonWook/DFS&BFS/banUsers diff --git a/HyeonWook/DFS&BFS/banUsers b/HyeonWook/DFS&BFS/banUsers new file mode 100644 index 0000000..1d529bb --- /dev/null +++ b/HyeonWook/DFS&BFS/banUsers @@ -0,0 +1,38 @@ +function solution (user_id, banned_id) { + + let banLists = []; + + //배열을 DSF 탐색 + function DSF(users, bIds, bans){ + if(bIds.length === 0) { + banLists.push(bans) + + return; + } + + for(let i =0; i JSON.stringify(list.sort())) + + return Array.from(new Set(...[banLists])).length + + // for문으로 문자열 일치 판별 + function match(idA, idB){ + if(idA.length !== idB.length) return false; + for(let i =0; i