목록분류 전체보기 (234)
honey_pot
https://programmers.co.kr/learn/courses/30/lessons/84512 풀이 참고 -> https://programmers.co.kr/questions/25140 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 def solution(word): # 인덱스가 순서 다섯개의 문자로 한 자리 단어만 만들면 A,E,I,O,U 순서 vowels = ['A', 'E', 'I', 'O', 'U'] p = [5 ** i for i in range(1,6)] # 각 문자길이에 따라 만들 수 있는 문자열 경우의 수 max_num = sum(p) # 경우의 수 총합 (사전의 맨 끝 단어) answer = 0 # 문자간의 간격을 더하여..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/NkL0k/btrFuDR44tC/GnCVZldrC0hqsDlcX3LvTK/img.png)
https://programmers.co.kr/learn/courses/30/lessons/87377 더보기 일반형 식에서의 교점 1234567891011121314151617181920212223242526272829303132333435363738394041from itertools import combinations def find_interaction(line1, line2): a,b,e = line1 c,d,f = line2 deno = a*d - b*c # 분모 if deno == 0: # 교점 없음 return # 통과 x = (b*f - e*d) / deno y = (e*c - a*f) / deno # 정수 좌표에만 별을 그리기 때문에 정수를 판별한다 if x == int(x) and y ..
문제 https://leetcode.com/problems/4sum/ 4Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이법 참고 https://leetcode.com/problems/4sum/discuss/2031134/Easy-Python-Solution 리트코드 문제풀이 책 3회독 하고 다른 문제들 푸는중 이 문제는 뭐야~? 당연히 DFS지~ 하고 DFS로 풀어봤지만 털렸습니다 디스커션 가니까 다들 투포인터로 풀더라 하지만 포인터가 4개면 투포인..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bvttr5/btrvKrfCogj/4qO8wNFmNM6y0CUY80CdwK/img.jpg)
이 글은 유데미 코리아의 얼리에듀터 이벤트로 강의 쿠폰을 받아 수강한 후 리뷰를 작성한 것입니다. Python 부트캠프 강의 외엔 모두 '내돈내산' 강의입니다. 비전공자가 프로그래밍에 접근하기 정말 좋은 시대인 요즘 생활코딩부터 구름, edwith, 인프런 등 유명한 강의 사이트에서 개발 입문 강의부터 프레임워크 입문 강의까지 뭐든 하나씩은 수강해봤다. 나같은 개발 취준생이 많을 거라고 생각한다. 온라인 개발강의 플랫폼인 인프런이나 패스트캠퍼스 등에서 제공하는 강의 또한 다양하고 훌륭하지만 입문자로서 선뜻 구매하기 쉽지 않은 건 확실하다. 더구나 구매하고 기한이 제한되어 있으면 미루다가 허겁지겁 강의를 듣거나 한 부분에서 막히면 남은 기간을 보면서 초조해지기 마련이다. 그래서 유데미를 추천하는 사람들이 ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/9la8s/btrqBHImvmK/lsWYJtBojsRLAbKto3k2n1/img.png)
https://downloads.mysql.com/archives/workbench/ MySQL :: Download MySQL Workbench (Archived Versions) Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Workbench, please visit MySQL Downloads. MySQL open source software is provided under the GPL License. downloads.mysql.com 업데이트 이후에는 다운그레이드 하지 않고 최신 버전 받아도 설치된다 ..
https://programmers.co.kr/learn/courses/30/lessons/17677 from collections import Counter def solution(str1, str2): answer = 0 str_1 = [] str_2 = [] # 알파벳만 소문자로 2글자씩 담기 for i in range(0,len(str1)): if len(str1[i:i+2]) >= 2: if str1[i:i+2].isalpha(): str_1.append(str1[i:i+2].lower()) for i in range(0,len(str2)): if len(str2[i:i+2]) >= 2: if str2[i:i+2].isalpha(): str_2.append(str2[i:i+2].lower()) ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bG1JD5/btrmKhNhlWl/Q7wV1gXF6Ynp7oniVqkWek/img.png)
Automatic Restart : classpath에 있는 파일이 변경될 때마다 애플리케이션 자동 재시작 Live Reload : 정적 자원(html, css, js) 수정 시 새로 고침 없이 바로 적용 Property Defaults : 개발하는 과정에서 캐싱 기능을 사용하지 않기 위해 cache 기본값 false로 설정 Automatic Restart pom.xml 에 의존성 추가하기 org.springframework.boot spring-boot-devtools Shift 2번 연속으로 누르면 나오는 검색창에 Actions 탭에서 registry 검색 Live Reload 적용 application.properties 에 추가 #Live Reload 기능 활성화 spring.devtools.li..
https://programmers.co.kr/learn/courses/30/lessons/42888 def solution(record): answer = [] dic = dict() codes = [] for rec in record: codes = list(rec.split(" ")) # 명령어, 아이디, (닉네임) if rec[0] != "L": dic[codes[1]] = codes[2] for rec in record: codes = list(rec.split(" ")) if codes[0] == "Enter": nick = dic[codes[1]] answer.append(nick+"님이 들어왔습니다.") if codes[0] == "Leave": nick = dic[codes[1]] ans..