PostAddsense


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

1

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...

MineField

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

Planets

Codeimport java.text.DecimalFormat;public class Planets{    public String[] locations(String[] planets, int time) {        double G = 6.67...

MissingLetters

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

Justifier

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

UserId

Codepublic class UserId{    String[] iu;    String delch(String s) {        return s.replace(" ","").replace("'","");    }    boolean...

StringTrain

Codepublic class StringTrain{    public String buildTrain(String[] cars) {        String train = cars[0];        for (int i=1; i < cars.length; i...

Scale

Codepublic class Scale{    public String[] scale(int x, int y, String[] image) {        int m = image.length;        int n = image[0].length(); ...
1