프로그래머스 Lv.1 없는 숫자 더하기
개발자가 되기까지 (2023.08.16~2024.04.15)/[Algorithm] Programmers ver.Java2024. 4. 4. 21:52프로그래머스 Lv.1 없는 숫자 더하기

class Solution { public int solution(int[] numbers) { int answer = 0; for (int i = 0; i < 10; i++) { answer += i; } fo..

프로그래머스 Lv.1 나누어 떨어지는 숫자 배열
개발자가 되기까지 (2023.08.16~2024.04.15)/[Algorithm] Programmers ver.Java2024. 2. 1. 13:49프로그래머스 Lv.1 나누어 떨어지는 숫자 배열

import java.util.*;class Solution { public int[] solution(int[] arr, int divisor) { int[] answer = Arrays.stream(arr) .filter(item -> (item % divisor) == 0) .sorted() ..

프로그래머스 Lv.0 수열과 구간 쿼리 3
개발자가 되기까지 (2023.08.16~2024.04.15)/[Algorithm] Programmers ver.Java2024. 1. 31. 14:40프로그래머스 Lv.0 수열과 구간 쿼리 3

class Solution { public int[] solution(int[] arr, int[][] queries) { for(int i = 0; i < queries.length; i++) { int idx1 = queries[i][0]; int idx2 = queries[i][1]; int tmp = arr[idx1]; arr[idx1] = arr[idx2]; arr[idx2] = tmp; } int[] answer = arr; return answer; } }

프로그래머스 Lv.0 배열 만들기 5
개발자가 되기까지 (2023.08.16~2024.04.15)/[Algorithm] Programmers ver.Java2024. 1. 31. 13:35프로그래머스 Lv.0 배열 만들기 5

import java.util.*; class Solution { public int[] solution(String[] intStrs, int k, int s, int l) { return Arrays.stream(intStrs) .mapToInt(item -> Integer.parseInt(item.substring(s, s+l))) .filter(item -> k < item) .toArray(); } }

개발자가 되기까지 (2023.08.16~2024.04.15)/[Spring] Basic Web2024. 1. 31. 02:03[Spring] 27. 게시물/댓글 - 작성자가 일치하면 수정/삭제

register.jsp 글쓰기 제목 작성자 내용 파일 업로드 등록 취소 detail.jsp No. 제목 작성자 작성일 ${bvo.readCount } 수정일 내용 수정 삭제 목록 ${authEmail } 등록 등록 Writer 댓글등록일 content 댓글 더보기 ${authEmail } 등록 닫기 boardComment.js console.log('boardComment.js in~!!'); console.log(bnoVal); console.log(userEmail); document.getElementById('cmtPostBtn').addEventListener('click',()=>{ const cmtText = document.getElementById('cmtText'); if(cmtText..

728x90
반응형
image