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 |
Tags
- 20055
- 2108_통계학
- 이산수학
- Java
- 프로그래머스
- 21278
- documentationpluginsbootstrapper
- CMD
- 이클립스
- 소가길을건너간이유6
- 백준
- 호석이두마리치킨
- 별자리 만들기
- 자바
- dockercompose
- Error
- 투에모스문자열
- to display the conditions report re-run your application with 'debug' enabled
- Error fetching remote repo 'origin'
- jenkins
- 14466
- docker
- 18222
- SpringBoot
- Eclipse
- 설정
- 날짜일수
- 2167. 2차원 배열의 합
- 알고리즘
- EC2
Archives
- Today
- Total
목록bfs (1)
계단을 오르듯이

'+' 와 '-' 를 모든 경우에 대입하여 알아보는 문제이므로, 부분집합을 이용해서 선택되면 +를 안되면 -를 연산하도록 했다. class Solution { static int count; public int solution(int[] numbers, int target) { int answer = 0; boolean[] add = new boolean[numbers.length]; subset(0,add,numbers,target); answer = count; return answer; } private static void subset(int cnt, boolean[] add, int[] numbers, int target){ if(cnt == numbers.length){ int sum = 0;..
알고리즘/프로그래머스
2022. 1. 8. 07:47