Two-pointer trapping is the same “bounded by shorter side” reasoning as resource pooling and memory compaction interview stories.
Enable JavaScript for the full StreamPrep guide.