Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- OperationQueue
- cleanarchitecture
- 알고리즘
- Content Hugging priority
- 동시성프로그래밍
- gitlabci/cd
- Autolayout
- RxCocoa
- RxSwift요약
- gitlab
- swift알고리즘
- CI/CD
- 백준
- mvvm
- ai expo
- ReactiveX
- AI
- 자료구조
- Union-Find
- LLM
- apple intelligence
- 애플인텔리전스
- 클린아키텍처
- swift
- CICD
- rxswift
- 동작과정
- Content Compression Resistance priority
- IOS
- 오토레이아웃
Archives
- Today
- Total
목록자료구조 (2)
JosephCha의 개발일지

let firstLineInput = readLine()!.split(separator: " ").map{Int(String($0))!} let secondLineInput = readLine()!.split(separator: " ").map{Int(String($0))!} let limit: Int = firstLineInput.last! let length: Int = secondLineInput.count var result: Int = 0 for i in 0..
알고리즘 및 자료구조
2022. 7. 26. 23:37

let input = readLine()!.split(separator: " ") if input == input.sorted() { print("ascending") } else if input == input.sorted(by: >) { print("descending") } else { print("mixed") } 설명 ascending일 경우는 즉 오름차수로 정렬된 상태 dscending일 경우는 즉 내림차수로 정렬된 상태 나머지는 mixed 참고: https://www.acmicpc.net/problem/2920
알고리즘 및 자료구조
2022. 7. 26. 23:28