Banner

My Tech Blog (Common)

์˜ค๋Š˜์˜ ๋ช…์–ธ
" ๋ฐ˜์„ฑ๋˜์ง€ ์•Š๋Š” ์‚ถ์€ ์ธ๊ฐ„์œผ๋กœ์„œ ์‚ด ๊ฐ€์น˜๊ฐ€ ์—†๋‹ค. "
- ์†Œํฌ๋ผํ…Œ์Šค (์ฒ ํ•™์ž)
๐Ÿ“‘ 1. ๋ฌธ์ œ์„ค๋ช…Write a function to find the longest common prefix string amongst an array of strings.If there is no common prefix, return an empty string "".Note: All given inputs are in lowercase letters a-z. a-z์˜ ์†Œ๋ฌธ์ž ์•ŒํŒŒ๋ฒณ์œผ๋กœ ๋‹จ์–ด๋“ค๋กœ ๊ตฌ์„ฑ๋œ ๋ฐฐ์—ด์ด ์ฃผ์–ด์กŒ์„ ๋•Œ, ๋ชจ๋“  ๋ฌธ์ž์—ด์— ๊ณตํ†ต๋˜๋Š” ๊ฐ€์žฅ ๊ธด ์ ‘๋‘์‚ฌ๋ฅผ ๋ฆฌํ„ดํ•˜๋ผ. ์ ‘๋‘์‚ฌ๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ์—๋Š” ๋นˆ ๋ฌธ์ž์—ด์„ ๋ฆฌํ„ดํ•˜๋ผ. Example 1Input: ["flower","flow","flight"] Output: "fl" Example 2Input: ["dog","racecar","car"] Output..
์ƒ๋‹จ์œผ๋กœ