Banner

My Tech Blog (์กฐํ•ฉ)

๐Ÿ“‘ 1. ๋ฌธ์ œ์„ค๋ช…๐Ÿ’ก 2. ์ ‘๊ทผ๋ฐฉ์‹ dfs(๊นŠ์ด ์šฐ์„  ํƒ์ƒ‰)์œผ๋กœ A,E,I,O,U๋กœ ์กฐํ•ฉํ•ด์„œ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๋ชจ๋“  ๋‹จ์–ด๋ฅผ ๋ฆฌ์ŠคํŠธ์— ๋„ฃ์–ด ์ค€๋‹ค.๊ทธ๋ฆฌ๊ณ  list์˜ ์‚ฌ์ด์ฆˆ๋งŒํผ ๋ฐ˜๋ณต๋ฌธ์„ ๋Œ๋ฆฌ๋ฉด์„œ word๋ž‘ ์ผ์น˜ํ•˜๋Š” ๋‹จ์–ด๊ฐ€ ๋“ค์–ด ์žˆ๋Š” ์นธ์˜ ์ธ๋ฑ์Šค๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค.  โญ 3. ์ •๋‹ต์ฝ”๋“œimport java.util.*;class Solution { static List list; static String [] words = {"A", "E", "I", "O", "U"}; public int solution(String word) { int answer = 0; list = new ArrayList(); dfs("", 0); ..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'์กฐํ•ฉ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ