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
💬 문제
바탕화면 정리
💬 Idea
#
💬 풀이
import Foundation func solution(_ wallpaper:[String]) -> [Int] { var coordinate = [50, 50, 0, 0] for (idx, i) in wallpaper.enumerated() { for (jdx, j) in i.enumerated() { if j == "#" { coordinate[0] = min(idx, coordinate[0]) coordinate[1] = min(jdx, coordinate[1]) coordinate[2] = max(idx + 1, coordinate[2]) coordinate[3] = max(jdx + 1, coordinate[3]) } } } return coordinate }
The text was updated successfully, but these errors were encountered:
#122 - 바탕화면 정리 문제 풀이
5bab432
hwangJi-dev
No branches or pull requests
💬 문제
바탕화면 정리
💬 Idea
#
문자가 나올 시 coordinate의 0,1,2,3 인덱스에 min, max값을 비교하여 저장해준다.💬 풀이
The text was updated successfully, but these errors were encountered: