나으ㅣ 코딩일지

  • 홈
  • 태그
  • 방명록

UIScrollView 1

16일차 TIL

Swift 알고리즘 및 언어공부 //37. 행렬의 덧셈 func solution(_ arr1:[[Int]], _ arr2:[[Int]]) -> [[Int]] { var arrResult:[[Int]] = [] for i in 0.. [[Int]] { return zip(arr1, arr2).map{zip($0,$1).map{$0+$1}} } ㅠㅠ 아 ㅠㅠ 코드 줄이기 정말 너무 어렵다.. ㅠ 내가 for문으로 돌려준 것을 map 고차함수로 간단하게 표현했다. 난 사실 for문을 map 고차함수로 사용하는 게 제일 어렵다 . . . ㅠ //38. 직사각형 별 찍기 import Foundation let n = readLine()!.components(separatedBy: [" "]).map { Int($..

TIL 2024.03.19
이전
1
다음
더보기
프로필사진

나으ㅣ 코딩일지

부족함으로 가득한

  • 분류 전체보기 (58)
    • TIL (43)
    • 개인공부 (15)

Tag

autolayout코드로, allSatisfy, codebaseui, isLowerCase, zip함수, InsertRows(), Uppercased(), firstIndex(), Counter예제, Set와일반배열, AutoLayout, joined(), enumerated(), repeating, isUpperCase, reloadData(), Lowcased(), forEach(_:), UISlider, UIAlertAction,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바