태그>simplesearch(총 5개의 글)
'simplesearch' 관련 최근글
-
- TreasureHunt
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/12/20 20:40
Code public class TreasureHunt{ int xLen,yLen; char[][] land; String[] inst; boolean instCheck(int x, int y) { int[] dx = {0,-1,1,0}; int[] dy = {-1,0,0,1}; fo..
- TreasureHunt
-
- T9Input
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/11/27 10:30
Code import java.util.Arrays;import java.util.HashMap;import java.util.TreeSet; public class T9Input { public String[] getKeypresses(String[] messages) { HashMap map = new HashMap(); HashMap dict = new HashMap()..
- T9Input
-
- SkipRope
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/11/21 07:56
Code import java.util.Arrays; public class SkipRope{ public int[] partners(int[] candidates, int height) { Arrays.sort(candidates); int[] res = new int[2]; int best = 201; for (int i = 0; i < candidates.length-1; i+) { if (..
- SkipRope
-
- MissingLetters
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/31 16:56
Code import java.util.Arrays; public class MissingLetters{ public String getMissingLetters(String sentence) { sentence = sentence.toUpperCase(); String res = ""; for (char c = 'A'; c <= 'Z'; c+) if (sentence...
- MissingLetters
-
- ParallelSpeedup
-
불타는 아잍(IT)스크림 by 불타는 아이스크림|2019/05/31 16:04
Code public class ParallelSpeedup{ public int numProcessors(int k, int overhead) { int min = k; for (int num = 2, j = 0, d = 1; ; num+, j = d+) { int cycleTime = (k%num = 0) ? k/num : k/num+1; int total = cycleTime + (j+d..
- ParallelSpeedup