PostAddsense


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

1 2 3

MineField

Codepublic class MineField{    public String[] getMineField(String mineLocations) {        char[][] board = new char[9][9];  &nb...

MissingLetters

Codeimport java.util.Arrays;public class MissingLetters{    public String getMissingLetters(String sentence) {        sentence = sentence....

ParallelSpeedup

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

Justifier

Codepublic class Justifier{    public String[] justify(String[] textIn) {        int longest = 0;        for (int i = 0; i < textIn.length; i++)&...

DivideByZero

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

Inchworm

Codepublic class Inchworm {    public int gcd(int a, int b) {        return b==0 ? a : gcd(b,a%b);    }    int lcm(int a, i...

Rochambo

Codepublic class Rochambo {    public int wins(String opponent) {        int w=0;        if(opponent.charAt(0) == 'S') w++;      &nbs...

Commision

Codepublic class Commission{    public double equivalentSales(double sales, double cost, double commission) {        return sales * (100 - 20 - cost) / (100 - commissio...

DQuads

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

Bearball

Codeimport java.util.HashSet;import java.awt.Point;public class BearBall{    public int gcd(int a, int b) {        return b==0 ? a : gcd(b,a%b);    }  &n...
1 2 3