CS130-lecture-20201102

IMAGE IMAGE

One line is black, 2 lines is red

IMAGE IMAGE

IMAGE IMAGE

IMAGE IMAGE

  1. is false

IMAGE IMAGE IMAGE

Runtime of rotateLeft is O(1). Space complexity is O(1).

IMAGE IMAGE IMAGE

Our definition is left leaning so it needs to be rotated left.

IMAGE IMAGE IMAGE IMAGE IMAGE

The runtime of put is O(lgn). Space complexity is O(lgn).

IMAGE IMAGE IMAGE IMAGE