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
import sys | |
SENTINEL = -1 | |
def lookandsay(num): | |
"""Return the look and say version of num.""" | |
num = str(num) |
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
import java.util.*; | |
import java.lang.*; | |
public class ObjectTracker{ | |
// Code for grader | |
private static HashMap<String, ArrayList<Object>> objTracker = new HashMap<String, ArrayList<Object>>(); | |
// create instancetracker | |
private static final int CALLER_INDEX = 3; |
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
import java.util.*; | |
public class Randomizer{ | |
public static Random theInstance = null; | |
public Randomizer(){ | |
} | |
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
import java.util.*; | |
public class ConsoleProgram{ | |
private Scanner scanner; | |
public static void main(String[] args){ | |
// Assume the class name is passed in as the first argument. | |
if(args.length == 0){ |
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
import csv | |
import sys | |
import pprint | |
FIRST_ROW = 6 | |
DATE_INDEX = 1 | |
EMAIL_INDEX = 7 | |
FARE_INDEX = 14 |
NewerOlder