InterviewDigestInterviewDigest

OA Practice Workspace

Technical2026-08-16

Implement the iterator operator for a vector in C++.

AI-Expanded — inferred from the question title, not from the original candidate report

Implement a custom iterator class for a dynamic array-based vector in C++ that supports bidirectional traversal, including the increment, decrement, and dereference operators. Ensure your implementation correctly handles pointer arithmetic and provides the necessary type aliases to be compatible with standard library algorithms.

Context & Summary

Discussion about work-related areas followed by a coding problem.

💻 Coding practice works best on desktop.
Code editors are too cramped on mobile screens.