Created
April 18, 2022 08:54
-
-
Save gaeng2y/532b3530e6ea03bf92593f04a9fffb39 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 f(_ nums: [Int]) -> Int { | |
sleep(1) | |
let sum = nums.reduce(0, +) | |
return sum | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment