전체 글136 Course Schedule Course Schedule LeetCode 207번 문제 https://leetcode.com/problems/course-schedule/ Course Schedule - 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 1. 문제 There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites w.. 2022. 6. 13. Longest Increasing Path in a Matrix Longest Increasing Path in a Matrix LeetCode 329번 문제. https://leetcode.com/problems/longest-increasing-path-in-a-matrix/ Longest Increasing Path in a Matrix - 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 1. 문제 Given an m x n integers matrix, return the length of the longest incr.. 2022. 6. 13. RelationController RelationController 사전에 정의한 API 명세에 따른 Controller를 구현한다. 1. RelationValidator Controller로 들어오는 accountId 간에 검증을 처리한다. Controller로 들어오는 accountId는 별개의 파라미터로 Spring에서 제공하는 Validator 기능을 사용할 수 없기에 따로 RelationValidator 클래스를 생성하고 Controller에서 해당 Validator를 적용한다. ■ RelationValidator Account간 Relation의 상태에 대해 검증을 시행한다. [RelationValidator] @Component @RequiredArgsConstructor public class RelationValidato.. 2022. 6. 3. RelationService RelationService Relation에 대한 business Logic을 처리하는 RelationService를 생성하고 구현한다. 1. RelationService ■ RelationService [RelationService] @Service @Transactional(readOnly = true) @RequiredArgsConstructor public class RelationService { private final AccountRepository accountRepository; private final RelationRepository relationRepository; . . . } □ requestFriend fromAccountId -> toAccountId 방향의 "친구 요청".. 2022. 6. 3. 이전 1 ··· 11 12 13 14 15 16 17 ··· 34 다음