Posts by Tag

Swift

Two Sum

#Array #Hash Table

readLine

readLine(strippingNewline:)

[Swift] 8393 - ํ•ฉ

1๋ถ€ํ„ฐ N๊นŒ์ง€์˜ ํ•ฉ์„ ๊ตฌํ•˜๋Š” ๋ฌธ์ œ

[Swift] 11022 - A + B

A+B๋ฅผ ๋ฐ”๋กœ ์œ„ ๋ฌธ์ œ๋ณด๋‹ค ์•„๋ฆ„๋‹ต๊ฒŒ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 11021 - A + B

A+B๋ฅผ ์กฐ๊ธˆ ๋” ์•„๋ฆ„๋‹ต๊ฒŒ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10950 - A + B

A+B๋ฅผ ์—ฌ๋Ÿฌ ๋ฒˆ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10926 - ??!

์ž…์ถœ๋ ฅ์„ ์‘์šฉํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10718 - We Love Krill

์ฃผ์–ด์ง„ ์˜ˆ์ œ์ฒ˜๋Ÿผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10172 - ๊ฐœ

์ฃผ์–ด์ง„ ์˜ˆ์ œ์ฒ˜๋Ÿผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 1001 - A - B

๋‘ ์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›๊ณ  ๋บ„์…ˆ์„ ํ•œ ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 1000 - A + B

๋‘ ์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›๊ณ  ํ•ฉ์„ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

๋งจ ์œ„๋กœ ์ด๋™ ↑

๋ฐฑ์ค€

[Swift] 8393 - ํ•ฉ

1๋ถ€ํ„ฐ N๊นŒ์ง€์˜ ํ•ฉ์„ ๊ตฌํ•˜๋Š” ๋ฌธ์ œ

[Swift] 11022 - A + B

A+B๋ฅผ ๋ฐ”๋กœ ์œ„ ๋ฌธ์ œ๋ณด๋‹ค ์•„๋ฆ„๋‹ต๊ฒŒ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 11021 - A + B

A+B๋ฅผ ์กฐ๊ธˆ ๋” ์•„๋ฆ„๋‹ต๊ฒŒ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10950 - A + B

A+B๋ฅผ ์—ฌ๋Ÿฌ ๋ฒˆ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10926 - ??!

์ž…์ถœ๋ ฅ์„ ์‘์šฉํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10718 - We Love Krill

์ฃผ์–ด์ง„ ์˜ˆ์ œ์ฒ˜๋Ÿผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 10172 - ๊ฐœ

์ฃผ์–ด์ง„ ์˜ˆ์ œ์ฒ˜๋Ÿผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 1001 - A - B

๋‘ ์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›๊ณ  ๋บ„์…ˆ์„ ํ•œ ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

[Swift] 1000 - A + B

๋‘ ์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›๊ณ  ํ•ฉ์„ ์ถœ๋ ฅํ•˜๋Š” ๋ฌธ์ œ

๋งจ ์œ„๋กœ ์ด๋™ ↑

LeetCode

Two Sum

#Array #Hash Table

๋งจ ์œ„๋กœ ์ด๋™ ↑