Code import java.util.*; class Solution { Comparator comp = new Comparator() { int countBits(int n){ int ret = 0 ; while(n!=0){ if((n&1) != 0) ++ ret; n = n >>1; } return ret; } @Override public int compare(Integer o1, Integer o2) { int x = countBits(o1), y= countBits(o2); return x-y; } }; public int solution(String[][] relation){ int answer = 0; int row = relation.length; int cols = relation[0]..
Link 코딩테스트 연습 - 프린터 Code import java.util.*; class Solution { public int solution(int[] priorities, int location) { int answer = 0 ; PriorityQueue queue = new PriorityQueue(Collections.reverseOrder()); for(int i : priorities){ queue.add(i); } int count = 0 ; while(!queue.isEmpty()){ for(int i =0 ; i < priorities.length; i++){ if(priorities[i] == queue.peek()){ count++; queue.poll(); if(i == loca..
Link 코딩테스트 연습 - 스킬트리 Code class Solution { public int solution(String skill, String[] skill_trees) { int answer = 0; Skilldata[] skillPrev = new Skilldata[skill_trees.length]; for(int i =0 ; i < skillPrev.length ; i++){ skillPrev[i] = new Skilldata(); } for(int i = 0 ; i
Link 코딩테스트 연습 - 메뉴 리뉴얼 Code import java.util.*; class Solution { public String[] solution(String[] orders, int[] course) { String[] answer = {}; HashMap map = new HashMap(); for(int i = 0 ; i < orders.length; i++){ HashSet set = new HashSet(); char[] charArr = orders[i].toCharArray(); Arrays.sort(charArr); String result = new String(charArr); solve(set, course, result); for(String s : set){ if(m..
Link 코딩테스트 연습 - 다리를 지나는 트럭 Code import java.util.*; class Solution { public int solution(int bridge_length, int weight, int[] truck_weights) { int answer = 0; HashMap map = new HashMap(); Queue queue = new LinkedList(); Queue queue2 = new LinkedList(); for (int i = 0; i < truck_weights.length; i++) { map.put(i,0); queue.add(truck_weights[i]); queue2.add(truck_weights[i]); } int current = 0 ; int..
- Total
- Today
- Yesterday
- Spring Data
- 비정형데이터
- 프로그래머스 - 모의고사
- 지연로딩
- 투 포인터
- Redis
- 레디스 자료구조
- JSX
- http https
- 필드 컬럼 매핑
- Spring MVC
- spring redis
- GREEDY
- 동적 계획법
- redis 명령어
- web.xml
- 레디스
- HTTP
- HTTP 와 HTTPS 알아보기
- 스프링 레디스
- ORM
- spring annotation
- JPA에 대하여
- nosql
- redis자료구조
- 즉시 로딩
- spring boot
- Spring
- 스프링부트
- spring cloud
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |