Skip to main content
  1. /classes/
  2. Classes, Fall 2025/
  3. CS 2381 Fall 2025: Course Site/

CS2381 Fall 2025: Sample Exam Review

·61 words·1 min·
  • Check the sample exam.

Here’s a couple more questions:

  • Consider a trinary TreeSet.
    • Each node has two values: lval, rval
    • Each node has three children: left, right, and center.
    • What’s the asymptotic complexity for add and contains?
  • Consider a set implemented with the data stored in a stack.
    • How do we implement add, contains, remove?
    • What’s the complexity of those operations?
Nat Tuck
Author
Nat Tuck