This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MistakesActivity extends ActionBarActivity | |
{ | |
public static final String TABLE_NAME = "names"; | |
ExecutorService executorService = Executors.newFixedThreadPool(4); | |
@Override | |
protected void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_mistakes); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Rover { | |
public static int roverMove(int matrixSize, List<String> cmds) { | |
int result = 0; | |
for (int i = 0; i < cmds.size(); i++) { | |
result = process(cmds.get(i), matrixSize, result); | |
} | |
return result; | |
} | |
static int process(String cmd, int n, int current) { |