Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 436 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 436 Bytes

Chapter 17: Moderate

2. Tic-tac-toe

Design an algorithm to figure out if someone has won a game of tic-tac-toe.

13. BiNode: Dual-purpose Node

public class BiNode {
  public BiNode node1, node2;
  public int data;
}

Implement a method to convert a binary search tree into a doubly linked list (both implemented with BiNode). The values should be kept in order and the operation should be performed in place.