![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/c9ma5G/btrIGymqQHq/L3gULeZs6Rkkkd3PBrWKB1/img.png)
1406번: 에디터 첫째 줄에는 초기에 편집기에 입력되어 있는 문자열이 주어진다. 이 문자열은 길이가 N이고, 영어 소문자로만 이루어져 있으며, 길이는 100,000을 넘지 않는다. 둘째 줄에는 입력할 명령어의 개수 www.acmicpc.net 문제 요약 커서를 기준으로 하는 편집기를 만들자. 시간 초과 1 import Foundation var arr = Array(readLine()!) var M = Int(readLine()!)! var index = arr.count func P(_ x: Character) { arr.insert(x, at: index) index += 1 } func L() { if index > 0 { index -= 1 } } func D() { if index < arr...
Algorithm/백준
2022. 8. 1. 16:59
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- BOJ 10866
- Card CollectionVIew
- BOJ 17298
- Gradient View
- Stack
- github
- BOJ 17413
- UICollectionView banner
- BOJ 10799
- git
- BOJ 10809
- 1406 에디터
- CAGradientLayer
- swift
- 요시푸스
- Custom Detent
- UICollectionView Error
- crud
- BOJ 10808
- bottom sheet
- ios
- sheetPresentationController
- Sheet Height
- NaverMaps
- Algorithm
- BOJ 10820
- BOJ 1935
- Carousel Effect
- 2023 회고
- autolayout
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함