일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 프로그래밍 언어론
- 자바스크립트
- 프로그래머스 자바
- useEffect
- 컴퓨터 네트워크
- JavaScript
- 프로그래머스 완전탐색
- NextJS
- 리액트 훅
- react hook
- useState
- codesandbox
- 장고
- 자바 공부
- 디자인 패턴
- 코딩테스트 고득점 Kit 완전탐색
- websocket
- 자바
- vanillaJS
- 프로그래머스
- 코틀린
- 백준
- React JS
- 데이터모델링과마이닝
- Java
- design pattern
- react
- 리액트
- react firebase
- 코딩테스트 고득점 Kit
- Today
- Total
목록Algorithm (90)
기록하는 개발자

https://school.programmers.co.kr/learn/courses/30/lessons/42884 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 전체 코드 function solution(routes) { // 진입 시점을 기준으로 오름차순 정렬 routes.sort((a, b) => a[1] - b[1]); // 첫 진입 차량에 대해 카메라를 한 대 설치하고 시작 let answer = 1; // 최근 설치한 카메라의 위치 let nowPosition = routes[0][1]; // 앞서 0번째 차량에 대해 카메라를 설치했으므로 // ..

https://school.programmers.co.kr/learn/courses/30/lessons/42860 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 아스키코드 표 A B C D E F G H I J 65 66 67 68 69 70 71 72 73 74 K L M N O P Q R S T 75 76 77 78 79 80 81 82 83 84 U V W X Y Z 85 86 87 88 89 90 → B~M은 ▲ 를 사용하여 알파벳을 이동하고 N~Z는 ▼를 사용하여 알파벳을 이동한다 예시 완성할 이름 : BPAAAATSAAE 초기값 : AAAAAA..

https://school.programmers.co.kr/learn/courses/30/lessons/1844 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(maps) { const dx = [0, 0, 1, -1]; const dy = [1, -1, 0, 0]; const y = maps.length-1; const x = maps[0].length - 1; const queue = [[0, 0, 1]]; while (queue.length) { const now = queue.shift(); if (now[0] == ..

https://school.programmers.co.kr/learn/courses/30/lessons/86971 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(n, wires) { // n이 100 이하이므로 answer 101로 초기화 let answer = 101; // wires를 통해 tree 생성 let tree = Array.from(Array(n+1),()=>[]); wires.map((element)=>{ let [a,b] = element; tree[a].push(b); tree[b].push(a); })..

https://school.programmers.co.kr/learn/courses/30/lessons/87946 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(k, dungeons) { let answer = 0; // 주어지는 배열(dungeons) 크기와 같은 크기의 배열 선언 및 false로 초기화 const visited = Array.from({ length: dungeons.length }, () => false); // k : 현재 피로도 // count : 방문한 던전 수 function dfs(k, cou..

https://www.acmicpc.net/problem/1913 1913번: 달팽이 N개의 줄에 걸쳐 표를 출력한다. 각 줄에 N개의 자연수를 한 칸씩 띄어서 출력하면 되며, 자릿수를 맞출 필요가 없다. N+1번째 줄에는 입력받은 자연수의 좌표를 나타내는 두 정수를 한 칸 띄어서 www.acmicpc.net 구현 부분 코드 int[][] arr = new int[n][n]; int value =1,move =1; int x = n/2, y=n/2; while(true) { for(int i=0; i

https://programmers.co.kr/learn/courses/30/lessons/81301 코딩테스트 연습 - 숫자 문자열과 영단어 네오와 프로도가 숫자놀이를 하고 있습니다. 네오가 프로도에게 숫자를 건넬 때 일부 자릿수를 영단어로 바꾼 카드를 건네주면 프로도는 원래 숫자를 찾는 게임입니다. 다음은 숫자의 일부 자 programmers.co.kr * replace 함수는 문자열 내 특정 substring을 다른 문자열로 바꿔준다. [ 예시 ] String s = "aaabbb"; s.replace("aaa", "zzz"); → s = "zzzbbb" class Solution { public int solution(String s) { String[] words= {"zero" , "one" ..

https://programmers.co.kr/learn/courses/30/lessons/67256 코딩테스트 연습 - 키패드 누르기 [1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5] "right" "LRLLLRLLRRL" [7, 0, 8, 2, 8, 3, 1, 5, 7, 6, 2] "left" "LRLLRRLLLRR" [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] "right" "LLRLLRLLRL" programmers.co.kr 1 2 3 4 5 6 7 8 9 * 0 # 1. 맨 처음 왼손 엄지손가락은 * 키패드에 오른손 엄지손가락은 # 키패드 위치에서 시작 → '*' 키패드를 10, '0' 키패드를 11, ''#'키패드를 12로 간주한다. → Left와 Right의 값을 최초..