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
% James Park - CIS 554 | |
% HW #1, part 1, "Schools Out" | |
% Each teacher is either male or female, teaches one subject, and is planning to visit | |
% a state and do an activity. | |
state(california). | |
state(florida). | |
state(maine). | |
state(oregon). | |
state(virginia). |
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
/* James Park | |
* CIT 595 HW #5 | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
#include <string> | |
#include <string.h> | |
#include <fstream> | |
#include <time.h> |
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
/* | |
* @author : James Park, Ryan Smith, Rajveer Parikh | |
*/ | |
#include <sys/types.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <string.h> |
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
/* James Park | |
* CIT 595 HW #1 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "hashtable.h" | |
#include <assert.h> | |
int main(int argc, char* argv[]) { |
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
void top_ten(hashtable* h){ | |
node* top_hashtags[10] = { NULL }; | |
for (int i = 0; i < CAPACITY; i++){ | |
node* curr_node = h->list[i]; | |
while (curr_node != NULL){ | |
for (int j = 0; j < 10; j++){ | |
node* top_node = top_hashtags[j]; |
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
package collatz; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
public class Collatz { | |
static int[] simpleComputeSequenceLengths(long n) { | |
if (n < 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
#include <stdio.h> | |
#include <assert.h> | |
/* | |
James Park | |
CIT 595 - Lab #1, Part 2 | |
*/ | |
int common(char* s1, char* s2, int *c){ | |
//s1 and s2 points to strings, c points to an integer |
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
package negadecimalCalculator; | |
public class NegadecimalNumber { | |
NegadecimalNumber number; | |
int negaNumber; | |
int deciNumber; | |
String s; | |
public NegadecimalNumber(String s){ | |
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
package negadecimalCalculator; | |
import java.util.Scanner; | |
public class NegadecimalCalculator { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
new NegadecimalCalculator().REPL(); | |
} | |
public String evaluate(String s){ | |
} |
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 unittest | |
from library import * | |
lib = Library() | |
lib.open() | |
class CalendarTest(unittest.TestCase): | |
def test_calendar(self): | |
cal = Calendar() |
NewerOlder