250x250
반응형
Notice
Recent Posts
Recent Comments
Link
목록이진탐색 (2)
N
(프로그래머스 JS)지형 편집
https://school.programmers.co.kr/learn/courses/30/lessons/12984 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr function solution(land, P, Q) { // variables and functions const N = land.length; const arr = []; let answer = Infinity; const getCost = (height, arr) => { let cost = 0; for(let i = 0; i < arr.length; i++){ if(height < arr[..
프로그래머스 알고리즘/4단계
2022. 8. 7. 20:53
(Leet Code c++)Two Sum(2) - Input array is sorted
167. Two Sum II - Input array is sorted Given an array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Return the indices of the two numbers (1-indexed) as an integer array answer of size 2, where 1
Leet Code 알고리즘
2021. 7. 20. 09:51