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: Justin Tew | |
Class: CSCD 327 | |
Professor: Chris Peters | |
Date: 3/11/2015 | |
Extra Credit Attempted (and Completed!) | |
All code written by myself with the exception of the getConnection method, which was written by Dr. Dan Li |
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
/* | |
A singly linked list-based implementation of the stack data structure. | |
Justin Tew | |
*/ | |
public class ListStack implements Stack{ | |
protected int size; //the number of items in the stack | |
protected Node top; //reference to the head node of the list, which is also viewed as the top item in the stack | |
public ListStack(){ |
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
/* | |
HashTable Object that solves hash collisions with chains | |
Program 7 | |
Written by: Justin Tew, [email protected] | |
Created with the help of Dr. Xu's hash table psudocode | |
*/ | |
public class HashChain | |
{ |
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
//Justin Tew | |
//October 13, 2012 | |
//CSCD 211 @ 11am | |
public class Triangle { | |
private int rows; | |
private int[][] ara; |