์ฝ๋ฉํ
์คํธ/LeetCode
2022. 6. 19.
[LeetCode] search-suggestions-system
๋ฌธ์ ๋งํฌ Search Suggestions System - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com ์ฃผ์ด์ง ๋ฌธ์์ด products์ ์์ ์ค ์ฃผ์ด์ง ๊ฒ์ ๋จ์ด searchWord์ ์ฒซ ๋จ์ด, ์ฒซ ๋จ์ด + ๋ ๋ฒ์งธ ๋จ์ด, ์ฒซ ๋จ์ด + ๋๋ฒ์งธ ๋จ์ด + ์ธ๋ฒ์งธ ๋จ์ด... ๋ชจ๋ ๋จ์ด ์ ์ผ์นํ๋ ๋จ์ด๋ค์ ์ฐพ์ ์ฌ์ ์์ผ๋ก ์ ๋ ฌํ๊ณ ์ 3๋จ์ด๋ฅผ ์ถ์ถํ๋ ๋ฌธ์ ์ด๋ค. (ex. products = ['a', 'abc', 'abd, 'eed', 'abcd'], search..