- 원래 그 문자가 가진 뜻이 아닌 특별한 용도로 사용되는 문자
- .^$*+?{}[]|()
[ ] -> '[ 와 ] 사이의 문자들과 매치'
extension ViewController : UITextViewDelegate { | |
func textViewDidChange(_ textView: UITextView) { | |
let expendSize = CGSize(width: textView.frame.width, height : .infinity) | |
let estimatedSize = textView.sizeThatFits(expendSize) | |
let heightOffset = estimatedSize.height - CGFloat(37.verticalValueAppliedScreenSize) | |
def solution(A): | |
appear_set = set(range(1, len(A) + 2)) | |
return (appear_set - set(A)).pop() |
import math | |
def solution(X, Y, D): | |
return math.ceil((Y-X)/D) |
def solution(A): | |
left_sum, right_sum = A[0], sum(A[1:]) | |
result = abs(left_sum - right_sum) | |
for x in range(1, len(A) - 1): | |
left_sum, right_sum = left_sum + A[x], right_sum - A[x] | |
result = min(result, abs(left_sum - right_sum)) | |
return result |
import os | |
import sqlite3 | |
import logging | |
import re | |
from functools import wraps | |
from datetime import datetime, timedelta | |
from book_review_scraper.exceptions import BookIdCacheMissError, BookIdCacheExpiredError, ISBNError | |
class SqliteCache: |