Skip to content

Instantly share code, notes, and snippets.

@AppleCEO
Created January 4, 2020 14:39
Show Gist options
  • Save AppleCEO/da7c4221d934ee2471f928dbc8466111 to your computer and use it in GitHub Desktop.
Save AppleCEO/da7c4221d934ee2471f928dbc8466111 to your computer and use it in GitHub Desktop.
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