문제 링크 메모리: 126856 KB, 시간: 996 ms깊이 우선 탐색(dfs), 그래프 이론(graphs), 그래프 탐색(graph_traversal), 정렬(sorting)배열의 map() 메서드를 통해 값을 바꿀 줄 알게되었다.JavaScript에서 그래프를 사
https://school.programmers.co.kr/learn/courses/30/lessons/42747?문제를 읽고 아 ! 이건 대놓고 정렬이구나 생각을 했다.바로 배열(citations)을 정렬하고 정렬한 배열(citations)의 인덱스(i)와
문제 링크 메모리: 11148 KB, 시간: 228 ms다이나믹 프로그래밍(dp)DP(Dynamic Programming)에 대해 공부하고 의도적으로 문제 유형을 맞춰서 푼 문제라 그런지 난이도가 어렵지 않았다.공부한 내용대로 Ai=Ai-1+1 || Ai-j+1 라고