![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/yHMIZ/btq16hTYHCd/54xr7mX8lEMCQRiBYDRAFK/img.jpg)
#. Problem www.acmicpc.net/problem/1783 * The copyright in this matter is in acmicpc #. Resolution Process Read and understand problem Redefine the problem + abstract Create solution plan (select Algorithm, Data structure) Prove the plan (check performance time and usage memory) Carry out the plan Look back on the plan and find a way to improve it #. Solve 우선 N과 M은 "2,000,000,000보다 작거나 같은 자연수"라고..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/UtRFj/btqTPycRVBL/QpoBPetK4FrTL8xYqrYhd0/img.jpg)
| Lambda Expressions Lambda Expression 을 사용하면 단일 메서드 클래스의 인스턴스를 보다 간결하게 표현할 수 있다. // 단일 매개 변수 parameter -> expression // 둘 이상의 매개 변수 (parameter1, parameter2) -> expression // 반환 사용 (parameter1, parameter2) -> { code } | Lambda Expressions 이상적인 사용 사례 > Person Class public class Person { public enum Sex { MALE, FEMALE } String name; LocalDate birthday; Sex gender; String emailAddress; public int g..
#. Problemhttps://www.acmicpc.net/problem/4991* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 문제 길이에 비해 많은 생각이 필요..
#. Problemhttps://www.acmicpc.net/problem/17090* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 보기에 단순해 보여서 단순하게 풀..
#. Problemhttps://www.acmicpc.net/problem/17142* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 코로나 시대..문제처럼 바이러스가..
| 엔티티 그래프 엔티티 조회시점에 연관된 엔티티들을 함께 조회하는 기능- 정적으로 정의하는 Named 엔티티 그래프- 동적으로 정의하는 엔티티 그래프 || 정적 엔티티 그래프(Named) c. 주문을 조회 시 연관된 회원도 함께 조회하는 엔티티 그래프 정의123456789101112131415161718@NamedEntityGraph(name = "Order.withMember", attributeNodes = { @NamedAttributeNode("member")})@Entity@Table(name = "ORDERS")public class Order { @Id @GeneratedValue @Column(name = "ORDER_ID") private Long id; @ManyToOne(fetch ..
prior post : [Spring + JPA] Spring Data JPA 란? (1) | 명세(specification) - 명세를 이해하기 위한 핵심 단어는 술어(predicate), ㄴ 이것은 단순히 참이나 거짓으로 평가 ㄴ AND, OR 같은 연산자로 조합 가능 ㄴ 데이터를 검색하기 위한 제약 조건 하나하나를 술어라고 할 수 있음 - 술어를 Spring Data JPA는 org.springframework.data.jpa.domain.Specification 로 정의 - Specification은 composite pattern 으로 구성되어 여러 specification 조합 가능 (SQL Where) - Specification 기능 사용을 위해 org.springframework.data..
#. Problemhttps://www.acmicpc.net/problem/3197* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 문제를 풀면서 백조의 호수 BMG이..