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
- KEVISS
- AOP
- Exception
- VUE
- DDL
- 열 속성
- equals
- static
- redis
- Spring
- MSA
- docker
- select_type
- 재정의
- 필드 주입
- jpa
- 인덱스
- jwt
- lambda
- DI
- java
- 테스트 코드
- stream
- StringBuilder
- hashcode
- SQL
- Test
- 조합
- 생성자 주입
- cache
Archives
- Today
- Total
목록조합 (1)
백엔드 개발자 블로그
조합
구현 방식조합 구현 방식은 크게 2가지가 있습니다. 1. 재귀만 쓰는 방식private static void comb1(int selectIdx, int elementIdx) { if(selectIdx == m) { for(int num : select) { sb.append(num).append(" "); } sb.append("\n"); return; } // 재귀만 쓰는 방식 if(elementIdx == n+1) return; // 선택하고 넘어감 select[selectIdx] = elementIdx; comb1(selectIdx+1,elementIdx+1); // 선택 안하고 넘..
ETC/트러블 슈팅
2024. 8. 14. 15:22