This question evaluates understanding of binary tree traversal, specifically computing the left and right views in a single traversal, depth-level boundary tracking, and the ability to contrast iterative versus recursive implementations.

Given the root of a binary search tree, return two arrays: the left view and the right view (the first and last node visible at each depth). Implement a solution that computes both views in a single traversal. Discuss iterative vs. recursive approaches, how you track depth-level boundaries, and analyze complexity.