PostAddsense


태그 : BruteForce 요약보기전체보기목록닫기

1

Masterbrain

Codepublic class Masterbrain{    String score(String g, String p) {        int b = 0, w = 0;       &nbs...

BridgeCrossing

Codeimport java.util.Arrays;public class BridgeCrossing{    int n, min;    boolean[] a;    int[] times;    void go(int...

WhichData

Codeimport java.util.ArrayList;import java.util.Arrays;public class WhichData{    public int[] bestVariance(int[] sampleData, int varNum, int varDen) {    &nb...

ResistorCombinations

Codeimport java.util.ArrayList;import java.util.HashSet;public class ResistorCombinations{    double t, closest, res;    ArrayList<ArrayList<Integer>...

ParallelSpeedup

Codepublic class ParallelSpeedup{    public int numProcessors(int k, int overhead) {        int min = k;     &nbs...

DivideByZero

Codeimport java.util.Arrays;import java.util.HashSet;public class DivideByZero{    public int CountNumbers(int[] numbers) {        HashSet...

TennisRallies

Codepublic class TennisRallies{    int rec(int index, int numLength, String curr, int allowed, String[] forbidden) {        if(index == nu...

DQuads

Codepublic class DQuads{    public int count(String[] flights) {        int n = flights.length;       &...

PickTeam

Codeimport java.util.Arrays;public class PickTeam{    int n, bestSum;    int[] team;    int[][] nums;    String[] name...

Isoceles

Codepublic class Isoceles {    int[] x;    int[] y;    int dst(int a, int b) {        return (x[a]-x[b])*(x[a]-x[b])+(y[a]-y[b])*(y[a]-y[b]);  ...
1