two-pointer Interview Questions
95 interview questions in our bank cover two-pointer, most of them Coding & Leetcode-style Questions. They average 2.7/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about two-pointer: Amazon, Uber, Meta, Google, Apple, and 15 more.
Practice these on the problems board →Companies that ask about two-pointer
Question mix
- Coding & Leetcode-style Questions95
Difficulty
- 1/5 — warm-up4
- 2/5 — easy29
- 3/5 — medium56
- 4/5 — hard6
Questions tagged two-pointer
Payment Reconciliation - Transaction Matching
3/5This Stripe technical interview puzzle focuses on financial ledger reconciliation, requiring you to pair transaction records across two distinct systems while accounting for time windows and discrepancies. It evaluates your competency in designing robust matching algorithms, handling missing data fields, and categorizing various types of data mismatches. To review the full problem specification and reference implementation, a paid subscription is needed.
Coding & Leetcode-style QuestionsStripeReverse Words in a String (Preserve Spaces, In-Place)
3/5Challenge your string manipulation abilities with this classic algorithmic problem reported during coding rounds at ByteDance. The exercise requires you to reorder words within text efficiently while handling irregular whitespace, preserving specific formatting rules, and ultimately optimizing your memory footprint to operate directly within constant extra space. It tests your mastery of pointer manipulation and in-place transformation techniques commonly expected in top-tier technical screens. Reviewing the complete problem breakdown, optimal code, and alternative approaches requires a subscription.
Coding & Leetcode-style QuestionsByteDanceShortest Word Distance in a String Array
1/5Explore this frequent Uber technical assessment problem that challenges you to find the closest spatial separation between two specific words inside a collection of text strings. This task examines your ability to traverse sequences efficiently, maintain state pointers, and calculate linear intervals with optimal performance. It is a fantastic exercise for strengthening foundational scanning techniques used in text processing. Unlock the comprehensive explanation, edge-case analysis, and clean code solution by securing a subscription.
Coding & Leetcode-style QuestionsUberMerge Two Sorted Linked Lists
1/5Practice a fundamental linked list manipulation task commonly asked in Snowflake technical screens, where you are given two pre-sorted sequences and tasked with combining them into a single ordered list. Rather than allocating entirely new structures, you must skillfully rearrange existing node pointers to weave the elements together seamlessly. This foundational exercise hones your pointer manipulation skills and reinforces clean memory management principles. Access the complete problem description, edge-case analysis, and optimal code implementation with a subscription.
Coding & Leetcode-style QuestionsSnowflakeMinimum Boys to Seat Next to Every Girl
3/5In this engaging algorithmic puzzle often featured in Guidewire recruitment sessions, you must calculate the fewest individuals needed to occupy vacant spots so that every woman seated has at least one immediate neighbor. The task tests your understanding of linear arrangement logic, greedy strategy selection, and feasibility checking under strict spatial conditions. Solving this scenario effectively hones your ability to optimize resource placement in a one-dimensional layout. Unlock the full problem breakdown and verified code solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsGuidewireIntersection Node of Two Linked Lists
3/5Locate the exact node where two distinct linear pointer structures merge and share a common sequential path forward. This classic pointer manipulation puzzle evaluates your understanding of reference types, memory addresses, and clever traversal tricks to align sequence lengths without extra space. Widely utilized in technical assessments at Amazon, this challenge tests your ability to reason about complex reference topologies. The complete problem statement, optimal traversal strategy, and fully implemented source code are available exclusively to subscribers.
Coding & Leetcode-style QuestionsAmazonBridge Car Weight Problem
3/5Highlighted as a practical coding assessment from GitHub, this scenario models vehicular traffic flow and load limits across a constrained crossing structure. Developers must process a sequential array of weights representing waiting transport units, ensuring the cumulative load never exceeds strict safety thresholds while tracking crossing order and timing constraints. This challenge tests simulation design, array traversal, and dynamic constraint checking. Full access to the problem description, constraints, and the verified model solution requires a subscription.
Coding & Leetcode-style QuestionsGitHubEligible-Orders Neighbor-Check Sweep in O(n)
3/5Faced in rigorous DoorDash technical rounds, this problem requires processing a sequential collection of items where removing a selected element dynamically alters the eligibility status of its immediate neighbors. While a straightforward brute-force approach results in suboptimal performance, the interviewer expects an optimized linear time strategy leveraging advanced pointer structures or neighbor recomputation techniques. Sharpen your ability to manage dynamic dependencies and maintain high-performance sequences under constraints. Unlock the complete challenge and optimal solution by purchasing a subscription.
Coding & Leetcode-style QuestionsDoorDashLongest Increasing Subarray with One Modification
3/5Examine a sophisticated sequence manipulation challenge often encountered in engineering assessments at Google. The objective is to determine the longest uninterrupted ascending portion of a list of numbers after permitting a single element alteration. This problem evaluates your analytical capacity to handle boundary conditions, track state changes efficiently, and optimize time complexity. Access the complete problem description and thorough algorithmic walkthrough by purchasing a subscription.
Coding & Leetcode-style QuestionsGoogleCount Palindromic Substrings
3/5This frequently asked Goldman Sachs interview problem challenges candidates to efficiently determine how many symmetrical text fragments exist within a given character sequence. Participants must master string traversal and dynamic programming techniques to identify all valid inner matches, including overlapping segments. This exercise evaluates your ability to optimize nested loops and handle character comparisons cleanly under strict time limits. Access to the full problem description, edge-case analysis, and optimized model solution requires a subscription.
Coding & Leetcode-style QuestionsGoldman SachsRemove Duplicates from Singly Linked List
2/5Featured in Rubrik software engineering loops, this foundational list-processing question asks candidates to clean up a pre-ordered chain of nodes by eliminating repetitive entries. The goal is to ensure every unique value remains represented precisely once while modifying the underlying memory structure directly in place. This exercise primarily examines pointer manipulation fundamentals and traversal logic for linear data structures. The comprehensive problem walkthrough, test suites, and verified model solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsRubrikDelete-One-Character Positions
2/5Encountered during technical screenings at JPMorgan, this straightforward string manipulation problem asks you to identify every possible index whose removal from a source string yields a specific target string. Candidates must carefully handle cases involving duplicate characters to ensure all valid transformation points are correctly reported. This exercise evaluates fundamental string traversal skills and attention to edge cases. To view the complete problem statement and clean code solution, subscribe today.
Coding & Leetcode-style QuestionsJPMorganCount First-Team Winning Pairs
3/5Sourced from Amazon coding assessments, this problem challenges you to evaluate numerical attributes across two distinct categories to identify winning combinations based on specific algebraic conditions. Candidates must efficiently count valid pairs within large arrays while avoiding costly brute-force iterations, utilizing mathematical rearrangement or sorting strategies. This challenge tests foundational data analysis and optimization skills. The full problem statement and optimal model solution require an active subscription.
Coding & Leetcode-style QuestionsAmazonLeftmost Column with at Least a One
2/5This reported Uber interview problem evaluates your ability to efficiently locate the earliest occurrence of a target element within a structured 2D grid using specialized interface restrictions. You will need to design an optimized search strategy that minimizes API lookups by exploiting the sorted nature of the rows. The complete problem statement and a fully verified model solution require a subscription.
Coding & Leetcode-style QuestionsUberEfficient Text Search with Proximity Constraint
3/5This advanced string manipulation task, frequently encountered in interview loops at Palantir, challenges you to build a rapid text retrieval system that respects distance limitations between specific words. The problem evaluates your understanding of indexing strategies and efficient pattern matching over large textual inputs. To review the complete problem statement, requirements, and the reference model solution, a paid subscription is required.
Coding & Leetcode-style QuestionsPalantirShortest Subarray with At Least K Distinct
3/5This algorithmic challenge, frequently reported from technical interviews at Uber, requires you to find the most compact contiguous segment within an array of numbers that encompasses a specified variety of distinct values. The exercise tests your mastery of the sliding window technique and frequency tracking using hash maps under tight performance constraints. Access to the full problem description, complexity requirements, and the complete model solution requires a paid subscription.
Coding & Leetcode-style QuestionsUberSort a Quadratic-Transformed Sorted Array
3/5Optimizing array transformations using mathematical properties is a favorite theme in algorithmic assessments. In this reported Waymo interview question, you are given a sorted sequence of numbers and quadratic coefficients, and you must return the transformed results in sorted order in linear time. The exercise heavily tests your two-pointer technique mastery and ability to handle parabolic curves with varying monotonicity. Gain full access to the complete problem text and an expert-crafted model solution through a subscription.
Coding & Leetcode-style QuestionsWaymoTwo Sum
2/5This foundational coding problem frequently appears in technical assessments and asks you to locate a pair of elements within an integer collection that add up to a specific sum. It evaluates your ability to optimize search times and utilize hash-based data structures efficiently. Reported as an interview question at eBay, this exercise tests core algorithmic thinking and array manipulation skills. Access to the complete problem description and an optimized model solution requires a subscription.
Coding & Leetcode-style QuestionseBayPairwise Line Segment Intersection Points
3/5Collected from Amazon interview experiences, this advanced geometric challenge asks you to compute all unique intersection points across a collection of line segments while properly handling special cases like collinear overlaps, parallelism, and zero-length inputs. It evaluates computational geometry algorithms, object-oriented design choices, and floating-point precision management. To examine the full problem statement, geometric formulas, and complete model solution, a paid subscription is necessary.
Coding & Leetcode-style QuestionsAmazonLogin Arrays Segment Compression
3/5This MathWorks screening problem examines your proficiency in greedy strategies and array manipulation techniques. The objective revolves around transforming two distinct sequences through strategic contiguous subsegment summation to maximize the length of identical resulting collections, or identifying if such a match is entirely unattainable. It evaluates algorithmic thinking under constraints involving data reduction and sequence alignment. Reviewing the full problem description alongside the optimal model solution necessitates an active site subscription.
Coding & Leetcode-style QuestionsMathWorksMerge Two Sorted Lists with Maximum Length Constraint
2/5Handling ordered data under strict size limits is a frequent theme in systems interviews, as seen in this HubSpot coding challenge. The objective is to combine two sorted sequences while ensuring the resulting collection does not exceed a specified maximum length constraint. This problem assesses your pointer manipulation and algorithmic efficiency when dealing with sorted arrays. Access the complete problem specification and verified solution with a subscription.
Coding & Leetcode-style QuestionsHubSpotMinimum Capacity for Two-Per-Drive Distribution
3/5This coding interview question from Amazon requires developers to distribute a collection of files or tasks across a fixed number of recipients under strict capacity constraints. Each participant must receive a limited quantity of items while the maximum cumulative workload assigned to any single individual is minimized. The problem tests optimization strategies, binary search on answer spaces, and greedy allocation principles. Unlock the full problem statement and comprehensive solution walkthrough with a subscription.
Coding & Leetcode-style QuestionsAmazonAlternating String Merge
2/5This string manipulation exercise, featured in technical interviews at Cisco, tests your proficiency in handling text sequences and iterating through collections simultaneously. The goal is to interweave characters from two separate inputs sequentially until one runs out, then append any remaining portion of the longer text. It evaluates fundamental coding fluency, boundary checking, and efficient string concatenation techniques. View the complete problem statement and verified model solution with an active subscription.
Coding & Leetcode-style QuestionsCiscoLinked-List Intersection With Cycles
3/5This reported Airbnb interview question evaluates your ability to analyze complex pointer structures involving potential loops. You must figure out whether two separate sequences intersect, handling cases where nodes might loop back onto themselves. The challenge tests your mastery of cycle detection algorithms and pointer manipulation techniques under tricky structural conditions. Access to the complete problem breakdown and the optimal reference solution requires a subscription.
Coding & Leetcode-style QuestionsAirbnbRun-Length Vector Storage + Dot Product
3/5Featured in a Google AI infrastructure screen, this challenge focuses on optimizing memory usage for massive integer arrays containing extensive repetitions. The first part requires designing a compressed storage layout, while the second part asks you to compute a dot product directly on these compressed vectors without expanding them fully. It tests your systems design intuition and algorithmic efficiency under tight resource constraints. Unlock the complete problem guide and expert solution by subscribing.
Coding & Leetcode-style QuestionsGoogleContainer With Most Water (LC 11)
3/5This classic algorithmic challenge, featured during a phone screen at Oracle, asks you to determine the maximum volume of liquid that can be retained between two vertical barriers within an integer array. Candidates must evaluate pairs of coordinates to maximize the product of their separation and their limiting height efficiently. Discovering the optimal linear-time two-pointer strategy and reviewing the complete model solution requires a subscription.
Coding & Leetcode-style QuestionsOracleAssign Chefs to Dishes to Maximize Profit
3/5Optimize resource allocation strategies in this advanced scheduling problem inspired by real-world DoorDash engineering interviews. You will match skilled human personnel to tasks of varying complexity to maximize cumulative financial returns while respecting capability constraints. This question evaluates your proficiency in greedy algorithms, sorting techniques, and efficient data indexing to solve complex optimization dilemmas. Unlock the complete problem breakdown and optimal programmatic solution by securing your subscription today.
Coding & Leetcode-style QuestionsDoorDashTerrain Rendering + Water Drop Simulation
3/5This engaging coding challenge, reported from an Airbnb interview, tests your ability to handle two-dimensional grid simulations and text-based rendering. The first part requires generating a visual text representation of elevation profiles based on numerical input. The second part introduces fluid dynamics where you must calculate how liquid disperses, flows downward, and accumulates in depressions. Candidates must carefully manage boundary conditions and matrix manipulation. To explore the complete problem statement, optimal algorithms, and verified code solutions, a paid subscription is required.
Coding & Leetcode-style QuestionsAirbnbMaximize Distance to Closest Person
2/5In this classic optimization puzzle frequently featured in Roblox technical screenings, you are asked to find the optimal seating position within a row containing both occupied and vacant spots. The objective is to maximize the separation between yourself and your nearest neighbor. This exercise evaluates your proficiency with linear array scanning, tracking boundary gaps, and maintaining running maximums efficiently. To access the comprehensive problem description, edge-case analysis, and expert model solutions, please consider upgrading to a paid subscription.
Coding & Leetcode-style QuestionsRobloxMove Zeroes (Zero Compaction)
2/5Strengthen your array manipulation skills with this classic compaction problem, frequently utilized during technical screenings at JPMorgan. The objective is to rearrange a sequence of numbers by shifting all zero values to the rear while preserving the relative ordering of the remaining non-zero elements in place. This puzzle emphasizes optimal pointer management and clean, bug-free implementation under interview pressure. To view the complete problem breakdown, test scenarios, and model solution, a subscription is needed.
Coding & Leetcode-style QuestionsJPMorganDinosaur Speed: Time-Window Sensor Pairing
3/5This classic Meta production engineering interview scenario involves synchronizing timestamp streams captured by physical sensors positioned at a fixed distance apart. You must pair chronologically aligned events within a realistic threshold window to calculate velocity metrics for moving objects. The challenge tests your interval matching, sorting, and time-series data processing capabilities under performance constraints. Unlock the full problem guide and optimized code solution by subscribing.
Coding & Leetcode-style QuestionsMetaLongest Subarray With Bounded Difference
3/5Tackle a popular algorithmic challenge frequently featured in technical assessments at Uber, focusing on identifying the longest contiguous sequence within a numeric dataset where the variance between any pair of items stays within a specified threshold. This problem evaluates your proficiency with efficient sliding window techniques and data structures designed to track dynamic ranges under strict performance constraints. Mastering this puzzle helps sharpen your ability to optimize brute-force concepts into linear-time solutions. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsUberMinimum Height Difference Between Distant Peaks
3/5In this algorithmic puzzle reported from Roblox, you are given an array representing mountain elevations and must find the minimum absolute difference between any two peak heights separated by at least a specified index distance. The problem tests your capability to optimize linear scans and maintain sliding window extrema. To access the complete problem details, optimal complexity bounds, and tested code solution, a paid subscription is required.
Coding & Leetcode-style QuestionsRobloxLongest Same-Character Run
1/5This beginner-friendly string manipulation challenge, commonly encountered in Capital One technical assessments, asks programmers to discover the longest contiguous sequence of identical letters within a given text. When multiple character sequences share the maximum possible span, the algorithm must prioritize the instance appearing furthest to the right before formatting the result as a character-length pair. This puzzle evaluates foundational string traversal, conditional logic, and tracking techniques. Unlock the comprehensive problem statement, edge cases, and an optimized solution by purchasing a subscription.
Coding & Leetcode-style QuestionsCapital OneLongest Subarray With Sum At Most K
2/5Sharpen your sliding window technique with this Goldman Sachs interview question, which challenges you to find the longest contiguous subarray whose sum stays within a given limit. Utilizing the non-negative nature of the input array, you will apply a two-pointer approach to efficiently track window boundaries and maximize length without brute-force scanning. This classic problem evaluates your mastery of linear-time array processing and constraint management. Upgrade to a paid subscription to view the full problem statement and optimal solution.
Coding & Leetcode-style QuestionsGoldman SachsTwo-Day Log Intersection under Memory Limit
3/5Handling massive datasets under tight memory constraints is a hallmark of rigorous engineering assessments, like this reported Google interview question. The task requires processing multiple large log datasets to discover specific object identifiers that meet dual criteria involving frequency and distinct client associations. Interviewees must transition from straightforward hash-based approaches to advanced external sorting and pointer techniques when resources are severely restricted. This evaluation measures your capability to scale data pipelines gracefully under strict hardware limits. Unlocking the complete problem explanation and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsGoogleCount Teams With Skill Sum in Range
2/5Evaluating numerical relationships within collections frequently appears in technical screening rounds at major e-commerce enterprises such as Amazon. This algorithmic task challenges developers to efficiently compute the frequency of specific combinations whose aggregated attributes fall inside a designated boundary. Solving it goes beyond naive nested iterations, requiring clever use of sorting or prefix aggregation techniques to optimize performance over large datasets. To examine the optimal strategy, complete code implementation, and detailed complexity analysis, a subscription is required.
Coding & Leetcode-style QuestionsAmazonString Compression (LeetCode 443)
3/5In this classic Salesforce assessment challenge, engineers must perform run-length data compaction directly inside a character array without allocating external memory buffers. The exercise tests your mastery of pointer manipulation, in-place data transformation, and constant space complexity constraints under tight performance expectations. Unlock the comprehensive editorial, optimal algorithmic strategies, and complete code walkthrough by acquiring a paid subscription.
Coding & Leetcode-style QuestionsSalesforceWildcard / Regex String Matching (star operator)
3/5As a classic algorithmic puzzle frequently featured at Citadel, this question tests your ability to perform pattern matching with wildcard and repetition operators over text sequences. You must design a robust validation routine that handles arbitrary character substitutions alongside sequence repetition rules across an entire string. Interviewers typically look for an initial memorized recursive approach before steering you toward an optimized bottom-up dynamic programming strategy. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsCitadelPut Boxes Into the Warehouse (LC 1564)
3/5Reported from a Pinterest technical screen, this problem challenges you to strategically place items of varying dimensions into a sequence of restricted storage spaces where capacity is dictated by preceding bottlenecks. You will explore greedy approaches and sorting techniques to maximize either the total quantity of successfully stored items or their cumulative height in a follow-up scenario. The full problem statement, edge cases, and optimal coding solution require an active subscription to access.
Coding & Leetcode-style QuestionsPinterestLongest Alternating Binary After K Flips
3/5This Amazon coding challenge tests your sliding window and string processing skills by asking you to find the longest alternating character sequence achievable within a restricted number of modifications. You will need to efficiently evaluate contiguous segments and manage character flips to maximize valid alternating patterns. The problem assesses your ability to optimize time complexity while handling constraints on mutable data. Subscribe to view the complete problem statement and verified walkthrough solution.
Coding & Leetcode-style QuestionsAmazonReverse Alphanumeric Segments in Place
2/5Practice a string manipulation puzzle frequently asked in Snowflake technical screens, where you reverse continuous segments of letters and numbers while leaving all punctuation and whitespace untouched in their original spots. The puzzle requires careful boundary detection to handle punctuation marks correctly that might split alphanumeric runs. This task is an excellent test of your two-pointer techniques, character classification, and in-place mutation logic. Get the full problem requirements and the optimal solution by subscribing.
Coding & Leetcode-style QuestionsSnowflakeCompare Concatenations of Two String Lists
2/5This Meta interview question examines your ability to compare aggregate string values formed by fragmented list components without allocating extra memory for full concatenations. The core challenge involves implementing an incremental traversal strategy that processes character sequences lazily in linear time relative to total length. To view the complete problem statement and optimal code solution, please subscribe.
Coding & Leetcode-style QuestionsMetaMaximum Requests in a Time Window
2/5In this technical challenge reported from a Salesforce online assessment, candidates must determine the highest frequency of events falling within a sliding time interval of fixed duration. The problem evaluates your ability to efficiently analyze sequential numerical data and optimize window-based queries without resorting to slow brute-force scans. You will need to apply smart pointer or sorting strategies to handle large inputs smoothly. Unlock the complete problem statement and model implementation by securing a subscription.
Coding & Leetcode-style QuestionsSalesforceInterval List Intersections
2/5Interval manipulation and timeline overlap detection are key competencies tested in this Uber interview question, where you must compute overlapping regions between two collections of sorted time segments. This scenario evaluates your pointer-based traversal techniques and ability to handle edge cases in continuous numerical ranges efficiently. Optimizing for memory constraints through streaming data approaches further tests your advanced engineering capabilities. Unlocking the full problem details and professional implementation requires an active subscription.
Coding & Leetcode-style QuestionsUberInsert Spaces Around Palindrome Layers
2/5In this Walmart Labs interview question, you are tasked with decomposing a symmetric word into its nested mirror layers and formatting the result with specific spacing rules. The exercise evaluates your string manipulation capabilities and your knack for peeling outer matching characters down to an asymmetric core. It is a great test of recursive thinking and careful boundary management during iterative string processing. The full problem description and expert model solution are available exclusively with a subscription.
Coding & Leetcode-style QuestionsWalmart LabsMinimum Swaps for Even / Odd Partition
2/5Tackling array reorganization efficiently is the core of this popular Cisco interview question, where you must arrange elements so that all even values precede odd ones with the fewest operations possible. This exercise tests your ability to analyze array structures, optimize rearrangement strategies, and minimize operational costs while handling large input sizes. You will need to think critically about index manipulation and grouping logic to achieve an optimal runtime. Unlock the full problem statement, algorithmic breakdown, and complete code solution by securing a subscription today.
Coding & Leetcode-style QuestionsCiscoCount Players Reaching the End Without Being Caught
4/5This Hudson River Trading interview puzzle requires calculating how many participants can successfully navigate a linear pathway before a specified time limit while avoiding mobile barriers that periodically reverse direction. The task examines advanced simulation techniques, spatial reasoning, and time-dependent collision handling. Unlocking the full problem specifications and detailed solution requires a subscription.
Coding & Leetcode-style QuestionsHudson River TradingClosest Two-Array Pair Sum Not Exceeding Target
3/5In this Amazon coding challenge, you are tasked with finding the optimal combination of elements from two separate collections such that their combined sum approaches a given threshold as closely as possible without crossing it. This problem requires a strategic approach to searching and pairing values efficiently within given constraints. It tests your proficiency in optimization and two-pointer or binary search techniques. Access the complete problem statement and optimal solution code with a subscription.
Coding & Leetcode-style QuestionsAmazonValid Palindrome II
2/5This string manipulation exercise, frequently encountered in screening interviews at Meta, challenges you to determine if text symmetry can be achieved by removing a limited number of elements. The exercise evaluates your proficiency with two-pointer techniques, string slicing boundaries, and handling conditional branching efficiently. Additionally, advanced variations push you to generalize the logic for a larger number of allowed deletions, testing deeper algorithmic optimization. Gain full access to the comprehensive problem description, detailed test cases, and optimal solutions by subscribing today.
Coding & Leetcode-style QuestionsMetaMaximize Sum of B Beating A by Permutation
3/5This strategic pairing puzzle, shared by candidates interviewing at Walmart Labs, requires you to rearrange a collection of integers to maximize favorable comparisons against a baseline array. The problem evaluates your ability to combine sorting strategies with greedy matching techniques to achieve optimal outcomes efficiently under moderate input constraints. You must carefully design your approach to avoid slow quadratic runtimes while ensuring all permutation rules are strictly satisfied. To read the complete problem statement, worked examples, and a fully optimized model solution, please subscribe.
Coding & Leetcode-style QuestionsWalmart LabsQR HackerRank Profitable Pairs and Delivery Order
3/5This Akuna Capital online assessment features a dual-part technical evaluation focusing on financial pair optimization and network routing logic. The first segment examines combinations meeting specific profitability thresholds, while the second explores graph traversal and distance-based sorting across disconnected nodes. Candidates must demonstrate strong combinatorial reasoning and graph theory application to succeed. To view the full problem statements and expert solutions, a paid subscription is required.
Coding & Leetcode-style QuestionsAkuna CapitalContainer With Most Water
2/5This classic Apple interview question challenges you to find the maximum possible water volume enclosed between two vertical bars in an integer array. You will need to design an efficient algorithm that evaluates boundary pairs while dynamically adjusting pointers to maximize both height and width constraints. The problem evaluates your grasp of the two-pointer technique and spatial reasoning without resorting to exhaustive searches. Unlock the complete problem statement and optimized solution with a subscription.
Coding & Leetcode-style QuestionsAppleRound-Trip Mission Schedule
2/5Featured in a classic CodeSignal assessment reported during Uber hiring, this scheduling challenge requires calculating the absolute earliest completion time for multiple round-trip journeys between two locations with fixed timetables. Candidates must efficiently simulate transit intervals and waiting periods using sorted departure timelines to minimize total duration. Mastering this scenario requires smart pointer manipulation and time-interval logic. Unlock the complete problem statement and optimal solution code with a subscription.
Coding & Leetcode-style QuestionsUberContiguous Subarray with Largest Min + Max
3/5Encountered in technical assessments at ByteDance, this coding challenge requires finding a contiguous subarray of sufficient length that maximizes the sum of its minimum and maximum elements. The problem tests your ability to analyze numeric sequences and optimize sliding window or linear scan strategies efficiently. Developing an optimal solution demands strong analytical thinking to avoid brute-force bottlenecks. Unlock the full problem details, test cases, and model solution by subscribing today.
Coding & Leetcode-style QuestionsByteDanceSquares of a Sorted Array
2/5Sharpen your array manipulation skills with a popular technical screening challenge featured at Uber. Given a pre-sorted sequence containing both negative and positive integers, your objective is to generate a new collection of their squared values while preserving non-decreasing order in linear time. This problem tests your grasp of two-pointer techniques and efficient traversal strategies to bypass traditional sorting overhead. Access the comprehensive problem breakdown, complexity analysis, and complete reference implementation by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsUberAnti-Aging Serum
3/5Explore a complex substring evaluation challenge inspired by Rubrik interviews, where you must locate the longest valid segment of elements constrained by individual tolerance thresholds. This puzzle tests your advanced understanding of sliding window algorithms, boundary management, and constraint checking within sequential data. It is designed to challenge your capability to optimize performance on large datasets. Unlock the comprehensive problem statement and our expert solution with a subscription.
Coding & Leetcode-style QuestionsRubrikMerge Step Functions of (timestamp, value) Pairs
3/5In this technical interview problem reported at Uber, candidates are asked to combine two piecewise constant chronological functions into a single unified timeline. The task requires effectively traversing temporal intervals and managing overlapping segments to compute cumulative numerical updates efficiently. It assesses your proficiency with interval manipulation, sorting logic, and state tracking over sequential data streams. To explore the complete problem statement, optimal algorithmic strategy, and fully written reference code, a paid subscription is required.
Coding & Leetcode-style QuestionsUberLongest Subsequence of X That Is a Substring of Y
3/5Combining string subsequences and contiguous matching constraints forms the core of many advanced text-processing assessments. Featured in a Salesforce technical screening, this problem challenges you to find the longest character sequence from one string that simultaneously exists as a contiguous segment inside another. The evaluation tests your proficiency with dynamic programming states and sequence alignment logic under strict performance bounds. Access the full problem walkthrough and model solution by securing a subscription today.
Coding & Leetcode-style QuestionsSalesforceIn-Place String Compression (Run-Length)
3/5Solve a popular array manipulation challenge reported at Goldman Sachs that requires compressing sequential character runs directly within memory without allocating auxiliary data structures. This exercise tests your ability to handle pointer manipulation, multi-digit numeric conversions, and boundary conditions efficiently while modifying mutable collections in place. Honing this skill significantly improves your memory management and algorithmic efficiency. Unlock the comprehensive problem description and optimal coding solution with a paid subscription.
Coding & Leetcode-style QuestionsGoldman SachsMerge Strings Alternately
2/5This Walmart Labs reported interview question requires you to weave two distinct text strings together character by character, starting with the first input and appending any remaining tail characters once one string is fully processed. It is a straightforward string manipulation exercise that tests your index tracking, boundary condition handling, and basic algorithmic fluency. This type of problem frequently appears in screening rounds to evaluate clean code fundamentals. Access to the complete problem breakdown and expert model solution requires an active subscription.
Coding & Leetcode-style QuestionsWalmart LabsSubarray Score ≤ K (Sliding-Window)
3/5This Pinterest reported interview question asks you to count how many contiguous subranges in a numeric array meet a score threshold defined by the product of the subrange sum and its length. The challenge demands an optimal linear-time solution, typically leveraging sliding window techniques or monotonic properties to avoid redundant calculations. It evaluates your grasp of pointer manipulation and performance optimization for array processing tasks. Access to the complete problem breakdown and expert model solution requires an active subscription.
Coding & Leetcode-style QuestionsPinterestMerge Three Sorted Arrays Without Duplicates
2/5Featured in technical rounds at Meta, this exercise requires you to combine three pre-sorted collections of integers into a single ordered sequence while eliminating duplicate entries. Instead of brute-force sorting, you must utilize multi-pointer traversal techniques to merge the data in linear time and space proportional to the output. The task evaluates your pointer manipulation skills and efficiency considerations. Reviewing the complete prompt and the optimal algorithmic implementation requires a subscription.
Coding & Leetcode-style QuestionsMetaDetect and Break a Linked-List Cycle
3/5As a classic Amazon screening challenge, this pointer manipulation task requires developers to identify looping structures inside a singly linked sequence and safely sever the circular reference. Interviewers heavily focus on space-time efficiency trade-offs, often asking candidates to prove the mathematical validity of pointer-based cycle detection versus memory-intensive lookup tables. Expect deep conceptual follow-ups during whiteboard discussions. Gain access to the full problem text, detailed pointer mechanics, and an expert-written implementation through our paid subscription.
Coding & Leetcode-style QuestionsAmazonRemove Adjacent Duplicates in String (k=3 then general k)
3/5This Attentive interview question explores text manipulation by requiring candidates to repeatedly eliminate consecutive repeating character sequences of a specified length. As characters disappear, newly formed adjacent duplicates must also be collapsed until the text reaches a stable state. The problem evaluates your mastery of stack-based data structures and algorithmic efficiency for string processing tasks. Unlock the full problem details and a comprehensive expert solution by getting a subscription.
Coding & Leetcode-style QuestionsAttentiveRemove Nth Node From End of List
2/5Featured frequently in Meta technical assessments, this linked list manipulation puzzle requires candidates to locate and eliminate a target element positioned at a specific offset from the collection's tail. The core challenge evaluates pointer manipulation proficiency and tests your ability to traverse the sequence efficiently within a strict single-pass constraint without relying on length pre-calculation. To access the full problem description and verified model solution, a subscription is required.
Coding & Leetcode-style QuestionsMetaOdd Even Linked List
3/5In this classic pointer rearrangement puzzle reported from Reddit technical interviews, you must reorganize a sequential collection by grouping all elements located at odd indices together ahead of those at even indices while preserving their initial relative order. This challenge assesses your mastery of pointer manipulation and in-place list restructuring techniques. Unlocking the complete problem details and optimal coding solution requires an active subscription.
Coding & Leetcode-style QuestionsRedditCheck Value Occurrence by Position and Half
2/5Encountered during technical screenings at Upstart, this algorithmic problem tests your proficiency with array traversal and positional logic. Given a specific integer and a sized collection, your task is to evaluate boolean flags indicating whether the target element appears at even or odd indices, as well as within the first or second halves of the sequence. It is a straightforward yet clever exercise for sharpening foundational indexing skills. Gain access to the full problem text, test cases, and a clean programmatic solution by subscribing today.
Coding & Leetcode-style QuestionsUpstartSum of Good Subarrays (Adjacent Diff ±1)
3/5Featured in a Google coding evaluation, this problem requires you to calculate the aggregate sum of all contiguous subarrays whose elements change by a constant step of either plus or minus one between adjacent positions. Achieving an efficient linear time complexity is the core hurdle, demanding advanced array traversal and mathematical accumulation insights. It evaluates your proficiency in recognizing sequential patterns and maintaining running calculations dynamically. Access to the full problem description and comprehensive model solution requires an active subscription.
Coding & Leetcode-style QuestionsGoogleMaximum Trim Keeping the Same Type
3/5Tackle this engaging string manipulation challenge featured in Amazon technical screenings, which tests your ability to optimize character sequences while preserving structural properties. You must determine the maximum extent to which a sequence can be trimmed from both ends while maintaining its original boundary classification. This problem evaluates your proficiency with pointer movement strategies, boundary tracking, and greedy reduction techniques to achieve optimal performance. To view the comprehensive breakdown and fully tested solution code, a subscription is required.
Coding & Leetcode-style QuestionsAmazonMerge Two Sorted Arrays In-Place
1/5This classic Amazon interview question asks you to combine two ordered collections into a single sorted sequence without allocating extra memory, leveraging pre-allocated buffer space at the end of the primary container. It tests your ability to manipulate pointers backwards to prevent data overwrites during traversal. The full problem breakdown and complete code solution require a subscription.
Coding & Leetcode-style QuestionsAmazonClosest Bathroom / Desk on a Grid
3/5Calculating shortest paths across a multi-dimensional matrix is the objective of this Snowflake interview question. You are given a grid populated with distinct entities, and your goal is to compute the minimum traversal distance from every designated target cell to the nearest specific resource using standard four-directional steps. This problem tests your proficiency with breadth-first search traversals, multi-source distance propagation, and spatial grid manipulation. Unlock the complete problem statement, test cases, and optimal model solution with a subscription.
Coding & Leetcode-style QuestionsSnowflakeMinimum Time to Eat K Apples
3/5Analyze an engaging movement and optimization puzzle reported at Amazon where a moving entity must gather a designated quantity of dispersed items along a linear path as quickly as possible. Developers need to design an algorithm that calculates the optimal travel timeline to reach the target threshold efficiently. This challenge evaluates spatial reasoning and simulation design skills under tight constraints. Revealing the full problem context and optimized model solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonTrapping Rain Water
3/5As a classic interview question frequently featured by Goldman Sachs, this problem asks you to calculate the total volume of rainwater that can be captured between elevation bars of varying heights. It serves as a fundamental test of spatial reasoning and tests your ability to optimize linear scans using two-pointer or monotonic stack approaches. The full problem statement, test cases, and optimal model solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsGoldman SachsShortest Palindrome
4/5This Reddit interview challenge evaluates your ability to transform an arbitrary sequence into a palindrome by prepending the fewest possible characters. Candidates must devise an efficient string-matching or pattern-finding algorithm to identify the optimal prefix extension without resorting to brute force. This problem thoroughly tests your comprehension of string symmetry and linear-time parsing strategies. Access to the full problem description and expert model solution requires a subscription.
Coding & Leetcode-style QuestionsRedditFind the Celebrity with Variations
3/5Reported as a HubSpot interview problem, this challenge requires identifying a unique individual in a group who is recognized by everyone else while knowing nobody except themselves. You will explore linear time solutions using specialized query logic, alongside advanced edge cases like handling cycles or multiple targets. To review the full problem description and expert code solutions, a subscription is required.
Coding & Leetcode-style QuestionsHubSpotKth Unique Maximum from Two Sorted Arrays
3/5This SoFi interview question challenges you to find the specified top unique maximum value by combining two pre-sorted collections in descending order. It tests your ability to efficiently manage multiple pointers and handle duplicate elements without sorting from scratch. Access to the full problem description and expert model solution requires a paid subscription.
Coding & Leetcode-style QuestionsSoFiTrapping Rain Water
4/5Featured in Apple interview loops, this classic algorithmic problem requires calculating the volume of water trapped between elevation bars after a rainfall. It tests your ability to optimize spatial tracking using two-pointer techniques or monotonic stacks to achieve linear time complexity. The complete problem walkthrough and model solution require an active subscription.
Coding & Leetcode-style QuestionsAppleSimulate Stack
3/5In this Rubrik coding challenge, you are given two sequences of numbers: one representing the order in which elements are pushed onto a stack, and another representing a potential order in which elements are popped. The task is to determine whether the given popped sequence could realistically be generated from the pushed sequence using only valid stack operations. This problem assesses your understanding of stack data structures and your ability to simulate their behavior to validate a sequence of operations. The full problem statement and a model solution are available with a subscription.
Coding & Leetcode-style QuestionsRubrikEqual-Pairing Product Sum
2/5This MathWorks coding question presents an array manipulation puzzle where you must partition an even-length array into pairs. The core constraint is that every single pair formed must have an identical sum. If such a pairing is achievable, the task is to calculate and return the total sum of the products of elements within each pair. If no such valid pairing can be constructed, the function should indicate this impossibility. This problem often tests sorting, two-pointer techniques, and logical reasoning to identify valid pairings efficiently. The full problem description and a detailed model solution are available with a subscription.
Coding & Leetcode-style QuestionsMathWorksSort Colors via a RecordCollection API
2/5This Snowflake interview question presents a classic sorting problem with specific API constraints. You are given a collection of records, each assigned one of three distinct color values (0, 1, or 2). The challenge is to reorder these records in place, grouping all colors numerically, using only provided getColor and swap operations. This problem assesses your ability to implement efficient in-place sorting algorithms, particularly variants of the Dutch National Flag problem, under strict time and space complexity requirements. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsSnowflakeMinimum Window Substring
4/5This Meta interview question requires finding the shortest segment within a given text that encompasses every character from a target pattern, maintaining exact frequency requirements. The challenge evaluates your mastery of the sliding window technique and frequency map tracking to achieve an optimal linear time complexity. Efficiently pruning search boundaries is key to avoiding brute-force penalties. Access the complete problem description and expert model solution with a subscription.
Coding & Leetcode-style QuestionsMetaSmallest Time-Diff Pair Per User (Orders vs Ads)
2/5Analyze sorted temporal streams to uncover minimum time discrepancies between distinct user actions in this engaging Amazon interview scenario. This problem measures your ability to handle ambiguous requirements, drive clarifying questions, and efficiently compare parallel timestamp arrays to find closest pairings. Unlock the complete problem statement, edge-case considerations, and optimal code implementation by upgrading to a full subscription.
Coding & Leetcode-style QuestionsAmazonNecklace Cut into Two Halves with Equal D/R Counts
4/5String manipulation and circular array partitioning form the core of this advanced Google interview task, which asks developers to divide a continuous sequence into balanced segments using minimal cuts. Candidates must analyze character distributions across a looped dataset to locate optimal division points that satisfy strict compositional ratios. This puzzle tests mathematical reasoning, sliding window techniques, and optimal boundary identification under constraints. Exploring the full problem scope and detailed model solution requires a paid subscription.
Coding & Leetcode-style QuestionsGoogleReverse Nodes in k-Group (Incomplete Tail)
4/5Featured in ByteDance coding interviews, this problem requires you to reverse nodes in a linked list in fixed-size groups while leaving any remaining trailing nodes in their original order. The challenge specifically tests pointer manipulation skills, as you must relink nodes in-place without altering their underlying values. Reviewing the complete problem statement, pointer management strategies, and optimal model solution requires an active subscription.
Coding & Leetcode-style QuestionsByteDanceAnnotate substrings in a paragraph with pronunciation XML tags
3/5In this HeyGen interview question, you are tasked with scanning a text block and wrapping specific glossary terms with custom pronunciation tags while strictly preserving the original text sequence and handling overlapping matches. This string manipulation exercise evaluates your proficiency in text processing, pattern matching edge cases, and robust parsing logic. To view the complete prompt details and study the reference code implementation, a paid subscription is needed.
Coding & Leetcode-style QuestionsHeyGenLongest Mountain in Array
3/5This classic Apple interview question challenges you to locate the longest contiguous sequence within a collection that strictly increases and then strictly decreases, forming a distinct peak shape. The problem evaluates your skill in managing directional state changes, handling boundary conditions, and optimizing linear scans to process sequential data efficiently. You will need a keen eye for peak detection and array indexing to succeed. To review the complete problem details and examine the optimal model solution, unlock the full guide with a subscription.
Coding & Leetcode-style QuestionsAppleOne Edit Distance
3/5In this classic Apple interview question, candidates must determine whether two given textual sequences differ by exactly a single modification. The task tests your ability to handle insertions, deletions, and substitutions efficiently while ensuring that identical strings are correctly recognized as not meeting the criteria. It heavily emphasizes string comparison techniques and boundary condition handling. Unlock the full problem description and comprehensive model implementation by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAppleMaximum Products From an Increasing Pick
3/5Selecting an optimal subset from a sequential collection while respecting strict monotonic growth constraints offers an engaging test of optimization skills. Reported as an Amazon interview question, this challenge requires you to maximize cumulative values by carefully choosing increasing allocations across a contiguous segment. Designing a solution involves balancing boundary conditions with greedy or dynamic programming techniques. The complete problem breakdown and the detailed model implementation require an active subscription.
Coding & Leetcode-style QuestionsAmazonFewest Boxes to Unload for Bounded Ratio
3/5Trimming a collection of items to satisfy a strict proportion boundary between the heaviest and lightest elements is an intriguing test of data reduction. Highlighted in Amazon interview sessions, this problem challenges you to remove the fewest items possible so the remaining elements conform to capacity limits. A successful approach demands sorting strategies and efficient window evaluation techniques. Reviewing the full challenge statement and professional model solution requires a paid subscription.
Coding & Leetcode-style QuestionsAmazonSort Array by Parity — Minimum Swaps
3/5This coding interview question, frequently encountered in technical screenings at Oracle, challenges candidates to reorder a collection of integers such that all even numbers precede all odd ones using the fewest possible swaps. This problem evaluates your ability to manipulate arrays efficiently and implement strategic pointer movements from both extremities of the dataset. To successfully solve this challenge, you must minimize operations while adhering strictly to the parity grouping requirement. The complete problem statement, detailed explanations, and optimized model solution require a subscription.
Coding & Leetcode-style QuestionsOracleFill Wildcards to Form Smallest Palindrome
3/5This coding challenge, frequently reported during Amazon interviews, requires you to transform a string containing placeholder symbols into a valid symmetric sequence. The goal is to substitute every wildcard character efficiently to achieve mirror symmetry while satisfying lexicographical minimization rules. The task tests your string manipulation skills, symmetry logic, and edge-case handling for impossible configurations. Unlock the complete problem text and optimal solution by subscribing.
Coding & Leetcode-style QuestionsAmazonLED Digit Display Invariant Under 180° Rotation
2/5Encountered during a Waymo onsite evaluation, this challenge asks you to determine whether a sequence of numeric characters rendered on an electronic display appears identical when inverted upside down. You will need to establish strict mapping rules for individual characters, identifying which glyphs retain their visual validity after a spatial rotation and which ones break the symmetry. This problem tests your ability to design robust validation logic and check mirroring conditions efficiently. Unlock the full problem description and complete model solution with a subscription.
Coding & Leetcode-style QuestionsWaymoFind Ideal Camping Days
3/5Discovering specific calendar dates with optimal weather trends is a fascinating algorithmic puzzle frequently featured in technical assessments at Amazon. This challenge evaluates your ability to efficiently analyze sequential data by identifying specific periods where values transition from decreasing to increasing across defined sliding windows. You will need to design an optimized approach to scan through sequential elements without resorting to inefficient brute-force methods. To unlock the complete problem description, comprehensive test cases, and a fully optimized model solution, a paid subscription is required.
Coding & Leetcode-style QuestionsAmazonIntersection of Two Linked Lists
2/5Discovering structural overlaps between sequential data structures is a fundamental algorithmic puzzle frequently encountered in technical screenings at Apple. This problem challenges you to determine the exact node where two distinct paths converge into a shared tail, relying strictly on memory reference identity rather than underlying values. Solving this efficiently requires careful pointer manipulation and a strong grasp of linear data structure topologies. To unlock the complete problem description, optimal time-complexity approaches, and fully tested model solutions, a paid subscription is required.
Coding & Leetcode-style QuestionsApple
Studied alongside
two-pointer interview FAQ
- How many two-pointer interview questions are there?
- 95 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask two-pointer questions?
- Amazon (16), Uber (8), Meta (6), Google (5), Apple (5), Snowflake (4), Goldman Sachs (4), ByteDance (3).
- How hard are two-pointer questions?
- They average 2.7 out of 5: 4 at 1/5, 29 at 2/5, 56 at 3/5, 6 at 4/5.