Two Pointers Interview Questions

169+ real questions from verified interview reports across 12 companies.

Sourced from 1Point3Acres, Blind, Glassdoor, Reddit, and more. Translated and cleaned.

169
Questions
12
Companies
12
Top Askers

Top Companies Asking Two Pointers Questions

Sample Two Pointers Questions

Given two sorted iterators. Implement IntersectionIterator which returns only common elements in both iterators. If you are not familiar with Iterators check similar questions. public class IntersectionIterator implements Iterator<Integer> { public...

Interviewer discussed on the project and design of the project. What components I owned and the business impact. Post that interviewer asked simple question : https://leetcode.com/problems/backspace-s

📋 Interview Overview - **Interview Mode:** Blitz(Fast paced) - **Company:** DocuSign - **Position:** Software Engineer - **Total Rounds:** 2 (Both Coding + DSA) - **Platform:** Zoom (Meeting) + Hac

You are given an integer array nums containing only 0, 1, and 2. Sort the array in-place so that: - All 0s appear first - Followed by all 1s - Followed by all 2s You must: - Solve it in O(n) time comp

I was approached by a recruiter around 3 months back for a opportunity for a quantitative developer - python role at Millennium. The interview experience initially was good but later turned to be a gh

LeetCode #11: Container With Most Water. Difficulty: Medium. Topics: Array, Two Pointers, Greedy. Asked at Capital One in the last 6 months.

LeetCode #11: Container With Most Water. Difficulty: Medium. Topics: Array, Two Pointers, Greedy. Asked at Walmart Labs in the last 6 months.

LeetCode #15: 3Sum. Difficulty: Medium. Topics: Array, Two Pointers, Sorting. Asked at Visa in the last 6 months.

LeetCode #2491: Divide Players Into Teams of Equal Skill. Difficulty: Medium. Topics: Array, Hash Table, Two Pointers, Sorting. Asked at Visa in the last 6 months.

LeetCode #42: Trapping Rain Water. Difficulty: Hard. Topics: Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack. Asked at Visa in the last 6 months.

LeetCode #15: 3Sum. Difficulty: Medium. Topics: Array, Two Pointers, Sorting. Asked at Infosys in the last 6 months.

LeetCode #283: Move Zeroes. Difficulty: Easy. Topics: Array, Two Pointers. Asked at Infosys in the last 6 months.

LeetCode #15: 3Sum. Difficulty: Medium. Topics: Array, Two Pointers, Sorting. Asked at Tesla in the last 6 months.

LeetCode #161: One Edit Distance. Difficulty: Medium. Topics: Two Pointers, String. Asked at Yandex in the last 6 months.

LeetCode #443: String Compression. Difficulty: Medium. Topics: Two Pointers, String. Asked at Yandex in the last 6 months.

LeetCode #125: Valid Palindrome. Difficulty: Easy. Topics: Two Pointers, String. Asked at Yandex in the last 6 months.

LeetCode #11: Container With Most Water. Difficulty: Medium. Topics: Array, Two Pointers, Greedy. Asked at Yandex in the last 6 months.

LeetCode #986: Interval List Intersections. Difficulty: Medium. Topics: Array, Two Pointers, Sweep Line. Asked at Yandex in the last 6 months.

LeetCode #283: Move Zeroes. Difficulty: Easy. Topics: Array, Two Pointers. Asked at Yandex in the last 6 months.

LeetCode #392: Is Subsequence. Difficulty: Easy. Topics: Two Pointers, String, Dynamic Programming. Asked at Yandex in the last 6 months.

LeetCode #11: Container With Most Water. Difficulty: Medium. Topics: Array, Two Pointers, Greedy. Asked at Zoho in the last 6 months.

LeetCode #557: Reverse Words in a String III. Difficulty: Easy. Topics: Two Pointers, String. Asked at Zoho in the last 6 months.

LeetCode #283: Move Zeroes. Difficulty: Easy. Topics: Array, Two Pointers. Asked at Zoho in the last 6 months.

LeetCode #75: Sort Colors. Difficulty: Medium. Topics: Array, Two Pointers, Sorting. Asked at Agoda in the last 6 months.

LeetCode #42: Trapping Rain Water. Difficulty: Hard. Topics: Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack. Asked at Docusign in the last 6 months.

See All 169 Two Pointers Questions

Full question text, interview context, and company-specific frequency data for subscribers.

Get Access

Related Topics