We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💬 문제
[코딩테스트 연습 - 행렬의 덧셈](https://school.programmers.co.kr/learn/courses/30/lessons/12950)
💬 풀이
func solution(_ arr1:[[Int]], _ arr2:[[Int]]) -> [[Int]] { var result = arr1 for i in 0..<arr1.count { for j in 0..<arr1[i].count { result[i][j] = arr1[i][j] + arr2[i][j] } } return result }
💬 더 나은 방법?
func solution(_ arr1:[[Int]], _ arr2:[[Int]]) -> [[Int]] { return zip(arr1, arr2).map{ zip($0, $1).map{ $0 + $1 } } }
The text was updated successfully, but these errors were encountered:
#88 - 행렬의 덧셈 문제 풀이
4bef631
hwangJi-dev
No branches or pull requests
💬 문제
[코딩테스트 연습 - 행렬의 덧셈](https://school.programmers.co.kr/learn/courses/30/lessons/12950)
💬 풀이
💬 더 나은 방법?
The text was updated successfully, but these errors were encountered: