์ ์ฒด ๊ธ271 [python] ํ๋ก๊ทธ๋๋จธ์ค - ์์์ฐพ๊ธฐ [python] ํ๋ก๊ทธ๋๋จธ์ค - ์์์ฐพ๊ธฐ https://school.programmers.co.kr/learn/courses/30/lessons/42839 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr from itertools import permutations #์์ ํ๋ณ def isPrime(n): if n 2022. 11. 6. [ํ๋ก๊ทธ๋๋จธ์ค] MySQL - SELECT | ๊ณผ์ผ๋ก ๋ง๋ ์์ด์คํฌ๋ฆผ ๊ณ ๋ฅด๊ธฐ [ํ๋ก๊ทธ๋๋จธ์ค] MySQL - SELECT | ๊ณผ์ผ๋ก ๋ง๋ ์์ด์คํฌ๋ฆผ ๊ณ ๋ฅด๊ธฐ https://school.programmers.co.kr/learn/courses/30/lessons/133025 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr -- ์ฝ๋๋ฅผ ์ ๋ ฅํ์ธ์ SELECT A.FLAVOR FROM FIRST_HALF A JOIN (SELECT * FROM ICECREAM_INFO) B ON A.FLAVOR = B.FLAVOR WHERE A.TOTAL_ORDER >= 3000 AND B.INGREDIENT_TYPE = 'fruit_based' ORDER .. 2022. 11. 5. [ํ๋ก๊ทธ๋๋จธ์ค] MySQL - SELECT | 12์ธ ์ดํ์ธ ์ฌ์ ํ์ ๋ชฉ๋ก ์ถ๋ ฅํ๊ธฐ [ํ๋ก๊ทธ๋๋จธ์ค] MySQL - SELECT | 12์ธ ์ดํ์ธ ์ฌ์ ํ์ ๋ชฉ๋ก ์ถ๋ ฅํ๊ธฐ https://school.programmers.co.kr/learn/courses/30/lessons/132201 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr -- ์ฝ๋๋ฅผ ์ ๋ ฅํ์ธ์ -- NVL(ISNULL,ISFULL) -- SELECT IFNULL(Column๋ช , "Null์ผ ๊ฒฝ์ฐ ๋์ฒด ๊ฐ") FROM ํ ์ด๋ธ๋ช ; SELECT PT_NAME, PT_NO, GEND_CD, AGE, IFNULL(TLNO,'NONE') AS TLNO FROM PATIENT WHERE AGE 2022. 11. 4. [React-Native] KeyboardAwareScrollView KeyboardAwareScrollView ํค๋ณด๋๋ฅผ ์ฐ๋ค ๋ณด๋ ์ค์ ๋ชจ๋ฐ์ผ ๊ธฐ๊ธฐ์์ ํค๋ณด๋๊ฐ ์ฌ๋ผ์์ ๋์ ์ํฉ์ ์ธ์งํ์ง ๋ชปํจ. ํด๊ฒฐ๋ฐฉ๋ฒ1 ๋ฆฌ์กํธ ๋ค์ดํฐ๋ธ์์ ์ ๊ณตํ๋ [KeyboardAvoidingView](https://facebook.github.io/react-native/docs/keyboardavoidingview#docsNav) API๋ฅผ ์ ์ฉ -> ํ์ง๋ง `ScrollView` ๋ด์์ ์๋ํ์ง ์๋ ๋จ์ ํด๊ฒฐ๋ฐฉ๋ฒ 2 [react native keyboard aware scroll view](https://github.com/APSL/react-native-keyboard-aware-scroll-view) Focus๋ InputForm์ ํค๋ณด๋๊ฐ ๊ฐ๋ฆฌ์ง ์๊ฒ ํจ ์๋์๋ InputForm์ .. 2022. 11. 4. [ํ๋ก๊ทธ๋๋จธ์ค] MySQL - SELECT | ํ๋ถ์ธ๊ณผ ๋๋ ์ผ๋ฐ์ธ๊ณผ ์์ฌ ๋ชฉ๋ก ์ถ๋ ฅํ๊ธฐ [ํ๋ก๊ทธ๋๋จธ์ค]MySQL - SELECT | ํ๋ถ์ธ๊ณผ ๋๋ ์ผ๋ฐ์ธ๊ณผ ์์ฌ ๋ชฉ๋ก ์ถ๋ ฅํ๊ธฐ https://school.programmers.co.kr/learn/courses/30/lessons/132203 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr -- ์ฝ๋๋ฅผ ์ ๋ ฅํ์ธ์ --DATE_FORMAT()์ ์ด์ฉํด FORMATING ๊ฐ๋ฅ SELECT DR_NAME, DR_ID, MCDP_CD,DATE_FORMAT(HIRE_YMD,'%Y-%m-%d') AS HIRE_YMD FROM DOCTOR WHERE MCDP_CD = 'GS' OR MCDP_CD = 'CS'.. 2022. 11. 3. [python]ํ๋ก๊ทธ๋๋จธ์ค - ๊ฒ์ ๋งต ์ต๋จ๊ฑฐ๋ฆฌ [python]ํ๋ก๊ทธ๋๋จธ์ค - ๊ฒ์ ๋งต ์ต๋จ๊ฑฐ๋ฆฌ https://school.programmers.co.kr/learn/courses/30/lessons/1844 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr from collections import deque def solution(maps): answer = 0 r = len(maps) c = len(maps[0]) #์ด๋ฏธ ์ง๋๊ฐ ๊ณณ ์ฒดํฌ visit=[[-1]*c for _ in range(r)] queue = deque() #์์์ ์ถ๊ฐ queue.append((0,0)) visit[0][0]=1 w.. 2022. 11. 2. [python]ํ๋ก๊ทธ๋๋จธ์ค - ์ฌ๋ฐ๋ฅธ ๊ดํธ [python]ํ๋ก๊ทธ๋๋จธ์ค - ์ฌ๋ฐ๋ฅธ ๊ดํธ https://school.programmers.co.kr/learn/courses/30/lessons/12909?language=python3 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr from collections import deque def solution(s): answer = True # stack ๋ง๋ค๊ธฐ stack=deque() for i in s: #stack์ด ๋น์ด์๊ณ i๊ฐ ๋ซ๋ ๊ดํธ์ผ ๋ false if i==")" and not stack: return False #stack์ ๋ง์ง๋ง์ด ์ฌ.. 2022. 11. 1. [python] ํ๋ก๊ทธ๋๋จธ์ค - ํ๋ฆฐํฐ https://school.programmers.co.kr/learn/courses/30/lessons/42587 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr from collections import deque def solution(priorities, location): answer = 0 #์ด๋ป๊ฒ location์ ์ฒดํฌํ๋๊ฐ? enumerate์ด์ฉ (python์์๋ idx, val์) dque = deque([(val,idx) for idx,val in enumerate(priorities)]) print(dque) #์ฒซ๋ฒ์งธ ์์๊ฐ max๋ณด๋ค .. 2022. 10. 31. [python]ํ๋ก๊ทธ๋๋จธ์ค - ๊ธฐ๋ฅ๊ฐ๋ฐ [python]ํ๋ก๊ทธ๋๋จธ์ค - ๊ธฐ๋ฅ๊ฐ๋ฐ https://school.programmers.co.kr/learn/courses/30/lessons/42586 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr import math # math.ceil() ์ฌ๋ฆผ def solution(progresses, speeds): answer = [] days=[] for i in range(len(speeds)): days.append(math.ceil((100-progresses[i])/speeds[i])) front = 0 for idx in range(len(days.. 2022. 10. 30. ๐๐จ๐๐๐ฒ ๐ ๐๐๐๐ซ๐ง 2022.10.30.์ผ 2022.10.30 - [React-native] - React-Native | Button React-Native | Button React-Native์ Button์ styling์ด ์ ํ์ Button์ ์ฌ์ฉํ์ฌ Color๋ฅผ ์ง์ ํ ๋ ๊ณต์๋ฌธ์์ props๋ฅผ ๋ณด๋ฉด Color๋ฐ์ ์์ผ๋ฉฐ ๋ํ ๋ฒํผ ์์ ๊ฒฝ์ฐ title={} ํ์์ผ๋ก ๋ณด๋ด์ฃผ๊ธฐ ๋๋ฌธ์ ๊ธ์จ์ฒด Color๋ ์ง์ ๋ถ๊ฐ R.. luminous24.tistory.com 2022. 10. 30. ์ด์ 1 ยทยทยท 4 5 6 7 8 9 10 ยทยทยท 28 ๋ค์