PostAddsense


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

1 2 3 4 5 6

RectangularGrid

Codepublic class RectangularGrid{    public long countRectangles(int width, int height) {        long res = 0;    &nbs...

Bonuses

Codepublic class Bonuses{    public int[] getDivision(int[] points) {        int len = points.length;      &...

ExerciseMachine

Codepublic class ExerciseMachine {    public int getPercentages(String time) {        int total = Integer.parseInt(time.substring(0, 2)) *...

ArithmeticSequenceDiv1

Codepublic class ArithmeticSequenceDiv1 {    public int findMinCost(int[] x) {        int n = x.length;      ...

TreasureHunt

Codepublic class TreasureHunt{        int xLen,yLen;    char[][] land;    String[] inst;    boolea...

RepeatedSubstrings

Codepublic class RepeatedSubstrings{    public String decompress(String compressed) {        String[] sp = compressed.split("\\s*[^0-9]+\\...

T9Input

Codeimport java.util.Arrays;import java.util.HashMap;import java.util.TreeSet;public class T9Input {    public String[] getKeypresses(String[] messages) {    ...

WordForm

Codepublic class WordForm {    // The problem name is Stemmer.    public String getSequence(String word) {        word = word.to...

SkipRope

Codeimport java.util.Arrays;public class SkipRope{    public int[] partners(int[] candidates, int height) {        Arrays.sort(candidates)...

BadClock

Codepublic class BadClock{    public double nextAgreement (String trueTime, String skewTime, int hourlyGain) {        double tSec = Double...
1 2 3 4 5 6