Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- 예외처리
- 백준1654번js
- API
- 프로그래머스
- 웹
- CS
- 파이프라인
- 리액트
- var와let과const차이
- 타입스크립트
- 리팩토링
- 백준13549번js
- 자바
- 변수
- 자바스크립트
- 데이터베이스
- 깃
- 객체
- Node.js
- Express
- post
- 컴퓨터공학
- 오픈소스
- 브랜치
- 좋아요추가
- js
- 깃허브
- npm
- 백준13549번
- gui
Archives
- Today
- Total
목록프로그래머스구명보트 (1)
Nevertheless

import java.util.*;class Solution { public int solution(int[] people, int limit) { int answer = 0; Arrays.sort(people); // 배열 오름차순 정렬 int index = 0; for (int i = people.length - 1; i >= index; i--) { if (people[i] + people[index] i 번째 사람 혼자 탐 } } return answer; }} ✏️ 풀이 방법 1. 배열을 오름차순 정렬한다. ( 맨 앞에는 가장 작은 수, ..
코딩테스트/Programmers
2024. 4. 25. 17:06