
헤비 유저가 소유한 장소는 못 풀어서 다른 풀이 봤다. 지금 보니까 그냥 프로그래머스 나머지 문제는 유형이 비슷해서 푼거지 다른 문제나오면 풀 수 있을지 모르겠따,, 1 2 3 4 5 6 7 8 9 SELECT * FROM PLACES WHERE HOST_ID IN ( SELECT HOST_ID FROM PLACES GROUP BY HOST_ID HAVING count(*) >= 2 ) ORDER BY ID cs 헤비 유저가 소유한 장소 풀이 다르게 푼 풀이도 많은데 이게 제일 와닿았다.
1주차 1 2 3 4 5 6 7 8 9 10 11 12 class Solution { public long solution(int price, int money, int count) { long totalPrice = 0; for(int i = 1; i 0 ? 0 : -result; } } Colored by Color Scripter cs 2주차 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 7..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455import java.util.*; public class Level2_카펫 { public static int[] solution(int brown, int yellow) { // yellow 의 약수 쌍을 구한다. // 약수 쌍을 돌며 가능한 경우 모두 수식에 맞춰 brown 값을 맞춰본다. // w >= h // yellow 블럭의 w, h 를 구하는거니 return 할때는 w+2, h+2 해준다. List divisor = getDivisor(yellow); return findBrownCount(brown, divis..
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 import java.util.Arrays; public class Level2_HIndex { public static int solution(int[] citations) { Arrays.sort(citations); int hIndex = 0; int n = citations.length; for (int i = 0; i = h) { hIndex = h; break; } } return hIndex; } public static void main(String[] args) { int[] citations = {3, 0, 6, 1, 5}; System.out.println(soluti..
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 import java.util.*; public class Level2_위장 { public static int solution(String[][] clothes) { Map map = new HashMap(); for (String[] str: clothes) { String key = str[1]; map.put(key, map.getOrDefault(key, 0) + 1); } int answer = 1; for (int value : map.values()) { answer *= (value + 1); } return answer - 1; } public static void ma..
- Total
- Today
- Yesterday
- 킹수빈닷컴
- 이펙티브자바
- http
- dreamcoding
- 백준
- HTTP 완벽 가이드
- JS 딥다이브
- 패스트캠퍼스 컴퓨터공학 완주반
- 이펙티브자바 아이템60
- 드림코딩
- 프로그래머스 SQL
- 김영한 http
- HTTP 완벽가이드
- BOJ
- js array
- 이펙티브자바 스터디
- 김영한 JPA
- Spring Security
- java
- js api
- 백기선 스터디
- 프로그래머스
- 이펙티브자바 아이템59
- GCP
- REST API
- 집 구하기
- JPA 연관관계 매핑
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- js promise
- 모던자바스크립트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |