일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- objecterror
- 티스토리챌린지
- 테스트코드
- java
- 코드트리
- 서블릿
- HttpServletResponse
- 프록시
- 오버라이딩
- 추상클래스
- fielderror
- 코드트리조별과제
- equals()
- 김영한
- 백준
- http 메시지 컨버터
- 참조변수
- 스프링컨테이너
- 스프링
- 싱글톤
- 프로그래머스
- DI
- 오블완
- html form
- 다익스트라
- 코딩테스트
- 인터페이스
- @configuration
- 예외와 트랜잭션 커밋
- 의존관계
- Today
- Total
목록전체 글 (182)
minOS
경로 표현식- .(점)을 찍어 객체 그래프를 탐색하는 것select m.username -> 상태 필드from Member mjoin m.team t -> 단일 값 연관 필드join m.orders o -> 컬렉션 값 연관 필드where t.name = '팀A' 경로 표현식 용어 정리- 상태 필드(state field): 단순히 값을 저장하기 위한 필드 (ex: m.username)- 연관 필드(association field): 연관관계를 위한 필드 1) 단일 값 연관 필드: @ManyToOne, @OneToOne, 대상이 엔티티(ex: m.team) 2) 컬렉션 값 연관 필드: @OneToMany, @ManyToMany, 대상이 컬렉션(ex: m.orders) 경로 표현식 특징- 상태 필드(..
https://www.acmicpc.net/problem/2578def check_line(cnt): for i in range(5): if sum(check[i]) == 5: cnt+=1 for i in range(5): temp =0 for j in range(5): temp += check[j][i] if temp == 5: cnt+=1 temp =0 for i in range(5): for j in range(5): if i== j : temp += check[i][j] if..
https://school.programmers.co.kr/learn/courses/30/lessons/12927 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr import heapqdef solution(n, works): ans = 0 if sum(works) 0: negative, positive = heapq.heappop(pq) if positive > 0: negative += 1 positive -= 1 n -= 1 heapq.heappush(pq,(negative,positive))..
https://www.acmicpc.net/problem/1719 import sysimport heapqINF = sys.maxsizen,m = map(int,input().split())graph = [[] for _ in range(n+1)]for _ in range(m): a,b,time = map(int,input().split()) graph[a].append((time,b)) graph[b].append((time,a))def dijkstra(start): dist[start] =0 heapq.heappush(pq,(0,start)) while pq : min_dist,min_node = heapq.heappop(pq) ..
https://school.programmers.co.kr/learn/courses/30/lessons/258712 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr def solution(friends, gifts): n = len(friends) d = dict() d = {friends[i]: i for i in range(n)} ans = {i : 0 for i in range(n)} array = [[0 for _ in range(n)] for _ in range(n)] for gift in gifts: arr = gift.split() array[..
https://school.programmers.co.kr/learn/courses/30/lessons/12980 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 처음에 BFS 풀었다가 효율성에서 막혔다 from collections import dequedef solution(n): q= deque() visited = [0 for _ in range(n+1)] q.append((1,1)) visited[1] =1 while q : x,step = q.popleft() if x == n : return step ..