Skip to content

Instantly share code, notes, and snippets.

# SPECIFICATION:
#
# check_sudoku() determines whether its argument is a valid Sudoku
# grid. It can handle grids that are completely filled in, and also
# grids that hold some empty cells where the player has not yet
# written numbers.
#
# First, your code must do some sanity checking to make sure that its
# argument:
#
@feynmanliang
feynmanliang / calendar.java
Created March 8, 2012 22:24
Quick calendar hack-up for friend
import java.util.Scanner;
public class calendar {
// initialize static scanned
public static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
int month = getMonth();
int year = getYear();
@feynmanliang
feynmanliang / Solution.java
Created February 23, 2012 01:22
csfall11-insertionsort
/*
Please write complete compilable code.
Your class should be named Solution
Read input from standard input (STDIN) and print output to standard output(STDOUT).
For more details, please check http://www.interviewstreet.com/recruit/challenges/faq/view#stdio
*/
import java.util.Scanner;
public class Solution {
@feynmanliang
feynmanliang / Solution.java
Created February 22, 2012 23:41
Solution to 2s complement csfall11
/*
Please write complete compilable code.
Your class should be named Solution
Read input from standard input (STDIN) and print output to standard output(STDOUT).
For more details, please check http://www.interviewstreet.com/recruit/challenges/faq/view#stdio
*/
import java.util.Scanner;
public class Solution {