This file contains hidden or 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
| public class Array<E> { | |
| public Unit[] arr; | |
| public int size; | |
| private int last_inserted = -1; | |
| private class Unit<E> { | |
| public E data; | |
| Unit(E thing) { | |
| this.data = thing; | |
| } |
This file contains hidden or 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
| public class Array<E> { | |
| public Unit[] arr; | |
| public int size; | |
| private int last_inserted = -1; | |
| private class Unit<E> { | |
| public E data; | |
| Unit(E thing) { | |
| this.data = thing; | |
| } |