목록전체 글 (435)
보라코딩
SPA(Single Page Application)는 하나의 웹 페이지로 구성된 웹 애플리케이션을 말합니다. 기존의 다중 페이지 웹 애플리케이션과는 달리, SPA는 단 하나의 HTML 페이지를 사용하고, JavaScript를 이용해 동적으로 내용을 갱신합니다. 이는 웹 애플리케이션을 보다 빠르고 사용자 친화적으로 만들어줍니다. 다음은 SPA의 주요 특징과 장점, 그리고 몇 가지 대표적인 프레임워크에 대한 설명입니다.주요 특징단일 HTML 파일: 초기 로딩 시에 하나의 HTML 파일을 서버로부터 가져옵니다. 이후 페이지 이동은 JavaScript를 통해 이루어집니다.클라이언트 사이드 라우팅: 페이지 이동 시 전체 페이지를 다시 로딩하는 것이 아니라, JavaScript를 통해 필요한 부분만 갱신합니다.빠른..

재귀함수~~ class Solution { int count = 0; public int solution(int[] numbers, int target) { int answer = 0; dfs(numbers, target, 0, 0); answer = count; return answer; } public void dfs(int[] numbers, int target, int depth, int result){ if(depth == numbers.length){ if (result == target){ ..
import java.util.*; class Solution { public static int n,m; public static int answer = -1; public static int dx[] = {-1,1,0,0}; public static int dy[] = {0,0,-1,1}; public static boolean visited[][]; public int solution(int[][] maps) { n = maps.length; // 행 m = maps[0].length; // 열 visited = new boolean[n][m]; // 방문배열여부 모두 ..