Lab 110, not hight count is funky (can be impossibly low) and seems to be incredibly unperformant. Im going to sleep on it.
This commit is contained in:
parent
29c576c988
commit
dd9c437269
12 changed files with 854 additions and 0 deletions
21
Lab110-VenbergGE/src/Position.java
Normal file
21
Lab110-VenbergGE/src/Position.java
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Data Structures & Algorithms 6th Edition
|
||||
* Goodrich, Tamassia, Goldwasser
|
||||
* Code Fragment 7.7
|
||||
*
|
||||
* An implementation of the position interface
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Gabriel Venberg
|
||||
*/
|
||||
public interface Position<E> {
|
||||
/**
|
||||
* Returns the element stored at this position
|
||||
*
|
||||
* @return the stored element
|
||||
* @throws IllegalStateException if position no longer valid.
|
||||
*/
|
||||
E getElement() throws IllegalStateException;
|
||||
}
|
Reference in a new issue