Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/main/java/io/zipcoder/Problem1.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
package io.zipcoder;

import java.util.HashMap;

public class Problem1 {

String stringInput = "The Farmer went to the store to get 1 dollar’s worth of fertilizer";
char[] input = stringInput.toCharArray();
String result = "";

public String stringReplace() {

HashMap<Object, Object> replacerMap = new HashMap<Object, Object>();
replacerMap.put("f", 7);
replacerMap.put("s", "$");
replacerMap.put(1, "!");
replacerMap.put("a", "@");

for (HashMap.Entry<Object, Object> val : replacerMap.entrySet()) {

result = input.replace

}
return result;

}

}
24 changes: 24 additions & 0 deletions src/test/java/io/zipcoder/Problem1Test.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
package io.zipcoder;

import org.junit.Test;

public class Problem1Test {

@Test
public void interviewProblemOneIterationTest() {

String input = "The Farmer went to the store to get 1 dollar’s worth of fertilizer";

String expected = "";
String actual = "";


}

@Test

public void interviewProblemOneRecursionTest() {

String input = "The Farmer went to the store to get 1 dollar’s worth of fertilizer";

String expected = "";
String actual = "";

}
}