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
- Eclipse
- Java
- CMD
- 이클립스
- documentationpluginsbootstrapper
- 21278
- Error fetching remote repo 'origin'
- 알고리즘
- 2108_통계학
- 2167. 2차원 배열의 합
- to display the conditions report re-run your application with 'debug' enabled
- dockercompose
- 호석이두마리치킨
- SpringBoot
- Error
- jenkins
- 프로그래머스
- docker
- 날짜일수
- 이산수학
- 설정
- 소가길을건너간이유6
- 투에모스문자열
- 14466
- EC2
- 별자리 만들기
- 백준
- 18222
- 20055
- 자바
Archives
- Today
- Total
목록소수찾기 (1)
계단을 오르듯이
[JAVA] 소수 찾기(완전탐색)
소수 찾기에서 2부터 시작하여 해당 num의 루트 Math.sqrt(num)까지를 포함해 구하였다. HashSet 자료구조를 이용해 개수를 구하였다. import java.util.*; class Solution { static Set set = new HashSet(); public int solution(String numbers) { int answer = 0; int len = numbers.length(); boolean[] visited = new boolean[len]; int[] choice = new int[len]; for(int i=1;i
알고리즘/프로그래머스
2022. 1. 7. 22:45