(feat) Date ↔️ LocalDate
✅ Date to LocalDate change datatype Date to LocalDate 🟢 Date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate() ReleaseDate type: Date localReleaseDate type: LocalDate Date releaseDa...
✅ Date to LocalDate change datatype Date to LocalDate 🟢 Date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate() ReleaseDate type: Date localReleaseDate type: LocalDate Date releaseDa...
✅ GOAL only user who registered the reservation/review can update/delete 내가 만든 예약/리뷰만 수정 또는 삭제할 수 있다. 🟢 TRYOUT 1: find reservation/review with id and User As request, we get the user custom ...
✅ 0과 1로 이루어진 수열이 있다. 이 수열에서 최대 k번 0을 1로 바꿀 기회가 주어졌을 때, 1로만 이루어진 연속 부분 수열의 최대 길이는?? class Main { public int solution(int n, int k, int[] intArr){ int answer= 0; int lt=0; int count...
✅ n이라는 자연수가 주어졌을 때 연속된 자연수의 합으로 n이 구해지는 경우의 수 class Main { public int solution(int n){ int answer= 0; int howManyContinuousNum=1; n--; while(n>0){ howManyContinuous...
✅ n개로 이루어진 수열이 주어질 때, 연속부분수열의 합이 m이 되는 경우가 몇 번 있는지 구하세요 class Main { public int solution(int n, int m, int[] intArr){ int answer= 0; int sum=0; int lt= 0; int rt=lt; while...
✅ n개 숫자의 배열이 주어졌을 때, 연속된 k개의 숫자를 더했을 때 최댓값을 구하세요 class Main { public int solution(int n, int k, int[] intArr){ int answer= 0; //배열의 첫 k개 합 구하기 for(int i=0; i<k; i++){ ...
1. Make an intelliJ project with SpringBoot 만들 때 스프링부트 가지고 실행 2. I dont have a github repository yet 이 경우는 쉽다. git으로 가서 share project on github 3. I have a github repository already 이럴 경...
✅ 두 집합의 교집합을 오름차순으로 구하세요 class Main { public ArrayList<Integer> solution(int n, int[] intArrA, int m, int[] intArrB){ ArrayList<Integer> answer= new ArrayList<>(); ...
✅ 오름차순으로 정렬된 두 배열이 주어지면 두 배열을 오름차순으로 합쳐 출력하세요 class Main { public ArrayList<Integer> solution(int n, int[] intArrOne, int m, int[] intArrTwo){ ArrayList<Integer> answer= n...
✅ 조건(카테고리, 키워드)이 있도록 JPA에서 찾아올 떄 1. 먼저, 내가 가져오려는 값이 1개의 테이블에서 가져오는지, 여러개의 테이블에서 필요한지 파악하기 1개의 테이블에서만 정보 가져오기 필요하다면: findBy하고 끝 여러개의 테이블에서 정보 조금씩 필요: JPQL에서 JOIN TABLE하거나 ...