Format: Paperback

Language: English

Format: PDF / Kindle / ePub

Size: 12.48 MB

Downloadable formats: PDF

Let T be a proper binary tree with height h and n nodes. Nevertheless, there is a way we can define two-dimensional arrays in Java— we can create a two-dimensional array as an array of arrays. These other structures may be more general than the array structure above, of course, and often they will have a lot more operations that they can perform than just add and remove. This encoding allows us to have a simple way of testing if a given board configuration is a win for X or O, namely, if the values of a row, column, or diagonal add up to −3 or 3.