๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

LeetCode1

1678. Goal Parser Interpretation leetcode javascript ํ•ด์„ ๋ฐ ํ’€์ด 1678. Goal Parser Interpretation leetcode javascript ํ•ด์„ ๋ฐ ํ’€์ด LeetCode ๋ฌธ์ œ ํ•ด์„ LeetCode์˜ "1678. Goal Parser Interpretation" ๋ฌธ์ œ๋Š” ๋ฌธ์ž์—ด ํ•ด์„๊ณผ ๊ด€๋ จ๋œ ๊ฐ„๋‹จํ•˜๋ฉด์„œ๋„ ํฅ๋ฏธ๋กœ์šด ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ์˜ ํ•ต์‹ฌ์€ ์ฃผ์–ด์ง„ ๋ฌธ์ž์—ด์—์„œ ํŠน์ • ํŒจํ„ด์„ ์‹๋ณ„ํ•˜๊ณ , ๊ทธ ํŒจํ„ด์— ๋”ฐ๋ผ ๋‹ค๋ฅธ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋ฌธ์ œ ์„ค๋ช… ์ด ๋ฌธ์ œ์—์„œ ์ฃผ์–ด์ง„ ๋ฌธ์ž์—ด์€ 'G', '()' ๋ฐ '(al)'์˜ ์„ธ ๊ฐ€์ง€ ํŒจํ„ด์œผ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ 'G'๋Š” ๊ทธ๋Œ€๋กœ 'G'๋กœ ํ‘œํ˜„๋˜๊ณ , '()'๋Š” 'o'๋กœ, ๊ทธ๋ฆฌ๊ณ  '(al)'์€ 'al'๋กœ ๋ณ€ํ™˜๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ, ์ž…๋ ฅ๋œ ๋ฌธ์ž์—ด์— ๋”ฐ๋ผ ํ•ด๋‹น ๊ทœ์น™์„ ์ ์šฉํ•ด ์ƒˆ๋กœ์šด ๋ฌธ์ž์—ด์„ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์ด ์ด ๋ฌธ์ œ์˜ ๋ชฉํ‘œ.. 2023. 11. 20.