Skip to content

Add toArray method to the Collection interface #2

@robbmj

Description

@robbmj

In addition implement these methods in each of the following classes

  • AVLTree, RedBlackTree: should produce a sorted array, via an in order traversal.
  • Heap: should just return a clone of the internal heap array
  • The list classes
  • ListQueue, Stack: list.toArray()
  • PriorityQueue: heap.toArray()

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions