Created
January 4, 2020 14:39
-
-
Save AppleCEO/da7c4221d934ee2471f928dbc8466111 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func solution(_ n:Int) -> String { | |
var result = "" | |
for index in 0..<n { | |
if index % 2 == 0 { | |
result.append("수") | |
} else { | |
result.append("박") | |
} | |
} | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment