Skip to content

Latest commit

ย 

History

History
8 lines (5 loc) ยท 510 Bytes

README.md

File metadata and controls

8 lines (5 loc) ยท 510 Bytes

[baekjoon-11931] ์ˆ˜ ์ •๋ ฌํ•˜๊ธฐ 4

image

์ฒ˜์Œ์— ํ€ต์†ŒํŠธ๋กœ ํ’€์–ด๋ณด๋ ค ํ–ˆ๋Š”๋ฐ, ์‹œ๊ฐ„ ์ œํ•œ๊ณผ ์ˆซ์ž ๋ฒ”์œ„๋ฅผ ์ƒ๊ฐํ–ˆ์„ ๋•Œ ํ€ต์†ŒํŠธ์˜ Worst Case ์‹œ๊ฐ„๋ณต์žก๋„๊ฐ€ O(N^2)์ด๊ธฐ ๋•Œ๋ฌธ์— ์˜ณ์ง€ ์•Š๋‹ค. ๊ทธ๋ž˜์„œ ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ merge sort๋ฅผ ๊ตฌํ˜„ํ•ด ํ’€์—ˆ๋‹ค.

image