Two Pointer Interview Questions
161 interview questions in our bank cover Two Pointer, most of them Coding 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, Google, Apple, Uber, Meta, and 15 more.
Practice these on the problems board →Companies that ask about Two Pointer
Question mix
- Coding Questions161
Difficulty
- 1/5 — warm-up2
- 2/5 — easy48
- 3/5 — medium100
- 4/5 — hard11
Two Pointer questions at Amazon
Per-User Minimum Order-Ad Time Difference
3/5Featured in an Amazon technical screening, this problem requires you to analyze two chronologically ordered streams containing user timestamps for purchases and advertisements. For every individual appearing in both datasets, you must calculate the absolute closest time gap between their respective events. This task emphasizes pointer management and efficient merging techniques over sequential data. Unlock the detailed problem context and optimal code solution by subscribing.
Coding QuestionsAmazonShortest Word Distance
2/5Encountered in Amazon technical rounds, this foundational array problem asks you to calculate the shortest positional gap between two specific terms inside a text collection. Participants must efficiently traverse the sequence to track minimum index separation without unnecessary overhead. The challenge highlights string manipulation strategies and linear search optimization. View the complete problem text and an optimized programmatic solution by purchasing a subscription.
Coding QuestionsAmazonMaximum Trapped Water
3/5Tackle a classic algorithmic puzzle frequently featured in Amazon software engineering interviews. Given an elevation profile represented by an array of numeric values, your objective is to calculate the total capacity of liquid that can be successfully retained between the barriers after a rainfall. This challenge examines your proficiency with two-pointer techniques, spatial reasoning, and optimizing time complexity while managing boundary constraints efficiently. Unlock the comprehensive problem statement and verified optimal solution code by getting a subscription today.
Coding QuestionsAmazonLongest Substring Matching a One-Wildcard Regex
3/5In this Amazon coding challenge, you are tasked with finding the longest subsegment of a string that satisfies a wildcard pattern containing a single variable-length matching symbol. The exercise evaluates your pattern matching intuition and string scanning optimization strategies. Unlock the complete problem guidelines and a thoroughly explained model solution with a subscription.
Coding QuestionsAmazonReverse Second Half of a List
2/5In this coding interview question reported at Amazon, candidates are asked to manipulate a sequential collection by reversing only the latter half while keeping the initial elements intact. The task requires determining the midpoint index accurately and performing the subsequence inversion efficiently. This exercise evaluates fundamental array manipulation, index calculation, and clean coding practices. Gaining access to the full problem text, edge cases, and optimal model solution requires an active subscription.
Coding QuestionsAmazonMinimum Adjacent Swaps to Make a Palindrome
4/5Posed during Amazon coding interviews, this challenge requires you to compute the minimum number of adjacent character movements necessary to transform a given string into a palindrome, or determine if it is impossible. You will need to analyze character frequencies and apply greedy strategies or two-pointer techniques to minimize rearrangement steps. This problem assesses your string processing and algorithmic optimization capabilities. Unlock the complete question details and professional solution code with a subscription.
Coding QuestionsAmazonMaximum Optional Tasks Scheduled
3/5This Amazon interview question presents a scheduling optimization problem. You are given a set of mandatory tasks and a separate set of optional tasks, to be completed over a period of days. Each day has a fixed time limit, and while a mandatory task must always be done, an optional task can only be added if sufficient time remains. The objective is to determine the maximum number of optional tasks that can be successfully scheduled across all days. This problem tests your ability to approach resource allocation and greedy strategy. The full problem description and a detailed model solution are available with a subscription.
Coding QuestionsAmazonPairwise Line Segment Intersection Points
3/5A coding question on plane geometry with line segments. You return every distinct point where two or more segments meet, with defined results for crossings, touching ends, overlapping collinear pieces and segments that are a single point, plus a separate two-segment test.
Coding QuestionsAmazonIn-Place Merge Into a Buffered Array
2/5A coding question on combining two sorted lists of numbers into one sorted list that lives in the first list's own storage, with no separate output list. It checks careful index handling and edge cases such as empty inputs, duplicates and leftover placeholder values.
Coding QuestionsAmazonMaximum 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 QuestionsAmazonCount 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 QuestionsAmazonClosest 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 QuestionsAmazonMaximum Frontend/Backend Pairs
2/5This frequently asked Amazon interview question challenges candidates to efficiently match elements from two distinct collections based on numerical inequality constraints. It tests your ability to apply greedy strategies combined with sorting or heap data structures to maximize the total valid pairings without violating the rules. You will need to optimize your approach to handle large datasets within strict performance limits. The complete problem description, optimal algorithmic strategy, and fully commented model solution require a subscription.
Coding QuestionsAmazonOptimal Foreground/Background App Pairing
3/5Encountered frequently in software engineering interviews at Amazon, this optimization challenge requires you to pair different resource categories within strict hardware limits. The goal is to match distinct items from two distinct collections so their combined memory footprint approaches a target threshold as closely as possible without exceeding it. This tests your ability to design efficient greedy or two-pointer algorithms. The full problem description and detailed model solution require a subscription.
Coding QuestionsAmazonCount Pairs Within Threshold
2/5This frequently asked Amazon interview exercise challenges candidates to efficiently evaluate numerical arrays and determine how many distinct index pairs satisfy a specific difference constraint. The objective is to design an optimized routine that avoids brute-force comparisons and handles large datasets smoothly. You will practice leveraging sorting techniques or two-pointer strategies to achieve optimal time complexity. Access to the comprehensive problem description, optimal algorithmic approach, and clean implementation requires a subscription.
Coding QuestionsAmazonMinimum 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 QuestionsAmazonMiddle Node and Cycle Start
3/5Featured in an Amazon technical interview, this problem requires analyzing a singly linked list that may contain a loop to determine either its exact middle element or the starting node of the cycle. You must write a robust function that handles both cyclic and acyclic pointer structures gracefully while returning the correct node metrics based on list topology. Tackling this exercise reinforces your pointer manipulation techniques and cycle-detection fundamentals. Unlock the complete problem guide and expert walkthrough by purchasing a subscription.
Coding QuestionsAmazonDropped Throttled Requests
4/5This reported Amazon interview question evaluates your ability to process chronological data against multiple sliding-window constraints. You will need to design an algorithm that efficiently tracks frequency thresholds over varying time intervals while accounting for previously discarded events. This challenge tests advanced array manipulation and time-complexity optimization under strict operational rules. Access to the comprehensive problem description and optimal source code requires a subscription.
Coding QuestionsAmazonFind the Duplicate Number
3/5This classic algorithmic puzzle, frequently encountered in Amazon technical screens, asks you to locate a repeated value inside a read-only integer sequence without allocating extra memory. You are expected to design an efficient linear-time approach that treats the data structure like a linked list cycle-detection problem. This exercise tests your deep understanding of pointer manipulation and constraint optimization. The comprehensive problem description and the model solution are available exclusively to subscribers.
Coding QuestionsAmazonDetect 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 QuestionsAmazonIntersection 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 QuestionsAmazonMinimum Connected Zones After Adding One Interval
4/5Optimizing spatial groupings by strategically bridging gaps is a sophisticated algorithmic puzzle featured in technical rounds at Amazon. The challenge revolves around a collection of numeric ranges where you must intelligently insert a new segment of bounded length to minimize the total count of isolated components. This problem assesses your mastery of interval manipulation, greedy strategies, and efficient sorting techniques to streamline disconnected data clusters. The full problem statement and optimal programmatic solution are restricted to subscribed members.
Coding QuestionsAmazonCount 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 QuestionsAmazonString Compression In Place
3/5Featured in technical screens at Amazon, this challenge requires you to perform run-length encoding directly inside a character array without allocating extra memory space. It evaluates your pointer manipulation skills and your ability to modify data structures efficiently in place while tracking dynamic lengths. You must carefully overwrite elements and convert repeat counts into characters on the fly. Unlock the complete problem requirements and the optimal code solution with a subscription.
Coding QuestionsAmazonLongest 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 QuestionsAmazonBird Collecting Sticks
3/5Featured in Amazon technical rounds, this simulation challenge places you in the perspective of an avian creature gathering wooden elements scattered across a linear forest. Starting from a designated position, the bird alternates directions, picking up the initial twig encountered on each sweep until a cumulative length threshold is reached. The exercise assesses your mastery of array traversal, conditional logic, and state tracking. To view the complete prompt specifics and the optimal solution code, a paid subscription is required.
Coding QuestionsAmazonIn-Place Merge of Two Sorted Arrays
2/5As featured in Amazon interview sessions, this classic array manipulation challenge requires combining two sorted collections directly within the primary container without allocating auxiliary memory. It tests your understanding of backward traversal strategies, pointer manipulation, and maintaining sorted order under strict space complexity constraints. This problem is a fundamental test of low-level data structure handling. Access the complete problem description and optimized reference code through our subscription plan.
Coding QuestionsAmazonDistinct Averages of High-Low Pairs
2/5In this engaging interview problem reported at Amazon, you are tasked with repeatedly combining extreme values from a dataset and computing their averages until no elements remain. The main objective is to determine how many unique mean values are produced throughout this iterative reduction process. This exercise evaluates your proficiency with sorting techniques, two-pointer methods, and hash-based collections to track distinct outcomes efficiently. Access to the full problem statement, test cases, and a comprehensive code solution requires a paid subscription.
Coding QuestionsAmazonMinimum 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 QuestionsAmazonIn-Place 0/1/2 Sort
2/5Encountered in Amazon coding interviews, this classic rearrangement task requires organizing a collection containing only three distinct integer categories directly in memory. The objective is to group identical elements contiguously using constant extra storage and linear time execution. It tests your mastery of pointer manipulation techniques, such as partitioning algorithms designed to handle repetitive keys efficiently in a single pass. To review the full problem statement, test harnesses, and expert implementation, a subscription is required.
Coding 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 QuestionsAmazonMaximum 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 QuestionsAmazonFill 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 QuestionsAmazonFind 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 QuestionsAmazonSmallest Time-Diff Pair Per User (Orders vs Ads)
2/5A coding question on comparing two time-ordered event logs per user and reporting the closest pair of events across them. It rewards careful handling of users who appear in only one log and of equal timestamps.
Coding QuestionsAmazon
Two Pointer questions at Google
Sum 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 QuestionsGoogleIn-Place Array Modification (details unspecified)
2/5This Google interview question focuses on optimizing memory usage while transforming data structures directly within strict spatial constraints. Candidates are evaluated on their ability to manipulate arrays without allocating auxiliary memory, requiring a deep understanding of pointer manipulation and algorithmic efficiency. The exercise tests your capacity to handle edge cases while maintaining constant auxiliary space complexity. Gain access to the full problem statement and expert solution by purchasing a subscription.
Coding QuestionsGoogleImplement Binary Search
2/5A coding question about locating a value in a large ordered list of integers and returning its position, or a sentinel when it is missing. It checks boundary handling and whether the search avoids reading the whole input. A subscription unlocks the full statement and reference answer.
Coding QuestionsGoogleStuck Keyboard / Jammed String Matching
3/5A coding question about a keyboard whose keys can repeat a character on one press: decide whether an intended word could have produced a typed string, then filter a word list by that test. Edge cases include empty strings, extra characters and repeats that are too short.
Coding QuestionsGoogleTwo-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 QuestionsGoogleNecklace Cut into Two Halves with Equal D/R Counts
3/5A coding question about splitting a circular two-letter sequence into two parts that are each balanced between the letters. It asks for a short argument that such a split always exists, plus code that finds one.
Coding QuestionsGoogleIntersection of Two Family Chains
2/5Reported as a Google interview question, this scenario explores genealogical data where every individual maintains a direct pointer to their antecedent. Given two separate starting members, your task is to pinpoint the exact point where their lineage paths converge toward the root origin. This problem evaluates your graph traversal capabilities, pointer manipulation techniques, and your ability to reason about hierarchical relationships. Gain access to the full problem text, test suites, and expert-written solution by purchasing a subscription.
Coding QuestionsGoogleLongest Increasing Subarray After Changing One Element
3/5A coding question on arrays and contiguous runs. You may rewrite a single element to any integer, and you must report how long the longest strictly rising stretch can become. Careful reasoning about gaps between neighbouring values and edge positions is required.
Coding QuestionsGoogleDot Product of Two Run-Length Encoded Vectors
3/5A coding question on multiplying two long integer vectors that are stored in compressed form, without ever rebuilding the full vectors. It checks careful handling of misaligned boundaries, negative values and extremely large logical lengths.
Coding QuestionsGoogleMove Chess Pieces on a 1D Board to Match Target
3/5A coding question about pieces on a one-dimensional board that can only slide in a fixed direction. Given a starting layout and a desired one, decide whether the move rules can produce it.
Coding QuestionsGoogle
Two Pointer questions at Apple
One 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 QuestionsAppleRotate Image 90 Degrees In Place
3/5This Apple coding interview question requires you to manipulate a square two-dimensional grid representing a digital image by rotating it ninety degrees clockwise. The core constraint is that the transformation must happen entirely in place without allocating extra matrix memory for the output. Solving this efficiently demands a strong spatial understanding of matrix coordinates and algorithmic traversal patterns. Unlock the complete problem description and clean model solution with a subscription.
Coding QuestionsAppleValid Palindrome
2/5A coding question about checking whether a piece of text is symmetric after discarding punctuation and ignoring capitalization. It tests clean string traversal and handling of empty and all-punctuation inputs.
Coding QuestionsAppleIntersection of Two Linked Lists
2/5A coding question on linked lists: decide whether two lists merge into a common tail and, if so, locate the first shared node. It stresses the difference between node identity and equal values, and handling empty or unequal-length inputs.
Coding QuestionsAppleContainer 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 QuestionsAppleTrapping 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 QuestionsAppleLongest Rise-and-Fall Subarray
3/5A coding question on scanning an integer array for the longest contiguous run that goes strictly up to one highest point and then strictly down, with careful handling of flat steps and very short inputs.
Coding QuestionsAppleCombine Two Sorted Linked Lists
2/5A coding question on joining two ordered singly linked lists into one ordered list by relinking the nodes you are given, with a fixed order for equal values.
Coding QuestionsApple
Two Pointer questions at Uber
Ordered Squares of a Sorted List
2/5Take a list of integers already in order, possibly with negatives, and return the square of each entry so that the new list is in order as well. The task rewards noticing how the original ordering constrains where the largest results can appear. Subscribers can open the full statement, analysis and model solution.
Coding QuestionsUberRound-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 QuestionsUberLongest Window With a Bounded Spread
3/5A coding question about a list of integer readings and a tolerance. The learner must find the longest run of consecutive readings whose largest and smallest values differ by no more than the tolerance, and return its length.
Coding QuestionsUberMerge 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 QuestionsUberShortest 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 QuestionsUberFirst Column Containing a One in a Row-Sorted Grid
3/5A coding question about a 0/1 grid whose rows are each sorted and whose cells can only be read one at a time through a small query interface. You must report the first column, counting from the left, that contains a 1 anywhere, or -1 when there is none, while staying inside a strict budget of cell reads.
Coding QuestionsUberPairwise Overlap of Two Sorted Schedules
3/5A coding question on merging two sorted lists of non-overlapping time ranges to find where both are busy. It tests careful boundary handling and a linear-time sweep over two sequences.
Coding QuestionsUberShortest Subarray with At Least K Distinct
3/5A coding question on finding the tightest contiguous stretch of an integer array that contains a required number of different values. It tests reasoning about windows over repeated values within a linear time bound.
Coding QuestionsUber
Two Pointer questions at Meta
Merge 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 QuestionsMetaDinosaur 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 QuestionsMetaRemove 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 QuestionsMetaPalindrome After Removing Characters
3/5A coding question on deciding whether a string can be made to read the same in both directions by deleting at most one character, with a follow-up that allows several deletions. Exact character comparison, empty strings and already-symmetric inputs are part of the task.
Coding QuestionsMetaShortest Window Containing All Required Characters
4/5Given a long text and a multiset of required characters, return the shortest contiguous piece of the text that contains all of them with the right counts. An empty string is returned when no piece qualifies.
Coding QuestionsMetaCompare 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 QuestionsMeta
Two Pointer questions at ByteDance
Contiguous 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 QuestionsByteDanceReverse Linked List in Groups of K Including the Last Partial Group
3/5This ByteDance coding challenge tests your ability to manipulate singly linked list pointers in-place by reversing nodes in fixed-size batches, including any leftover elements at the end. The task demands optimal time efficiency and constant auxiliary space without relying on auxiliary data structures. Unlock the complete problem walkthrough and verified model solution with a paid subscription.
Coding QuestionsByteDanceReverse 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 QuestionsByteDanceReverse 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 QuestionsByteDance
Two Pointer questions at Goldman Sachs
Encode Repeated Characters with Counts
3/5A coding question on shortening a list of characters by replacing each group of repeats with the character and how many times it occurs, including counts of ten or more.
Coding QuestionsGoldman SachsLongest Subarray With Sum At Most K
3/5An array coding question: given non-negative numbers and a budget, report how long the longest contiguous stretch can be without its sum going over the limit. It checks boundary handling for empty inputs, zeros and exact matches, with a follow-up on allowing negative values.
Coding QuestionsGoldman SachsWater Trapped Between Elevation Bars
4/5A coding question on an elevation map of bars that collects rainwater in its dips. The learner computes the total trapped volume, covering flat, rising and falling shapes.
Coding QuestionsGoldman SachsCount Palindromic Substrings in a String
3/5A string-counting question where every occurrence of a text that reads the same in both directions is included, even when the same text appears at several positions. It also checks the handling of empty and one-letter inputs.
Coding QuestionsGoldman Sachs
Two Pointer questions at Snowflake
Closest 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 QuestionsSnowflakeReverse 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 QuestionsSnowflakeGroup Colored Records Using Only Swaps
3/5A coding question about rearranging a collection of red, green and blue records that can only be read one position at a time and changed by swapping two positions. The learner must group the colors in order while staying within a strict limit on reads and swaps.
Coding QuestionsSnowflakeSplice Two Sorted Linked Lists
2/5A coding question on joining two ordered chains of linked nodes into one ordered chain by relinking the existing nodes. It checks empty inputs, equal values from both chains, and that no node is copied or lost.
Coding QuestionsSnowflake
More Two Pointer questions
Liquid Settling on Uneven Columns
3/5A coding question that simulates liquid being poured onto a landscape of columns of different heights and asks for the final shape after all units have settled.
Coding QuestionsAirbnbLoad Crates Into a Row of Storage Bays
3/5A coding question about storing items in a row of spaces whose usable size is limited by everything in front of them. The learner returns the most items that can be stored, then, as a follow-up, the largest total size that can be stored.
Coding QuestionsPinterestLongest 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 QuestionsSalesforceFind K Closest Elements
3/5Reported as a Visa technical assessment, this problem challenges you to locate a specific quantity of nearest numerical neighbors around a target value within an ordered sequence. The task examines your mastery of binary search techniques and customized sorting logic for tie-breaking scenarios. Access to the full problem text and optimized solution requires a subscription.
Coding QuestionsVisaQR 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 QuestionsAkuna CapitalSort Colors
3/5This classic array reorganization puzzle, featured in coding evaluations at OKX, challenges you to group three distinct categorical elements together in place within linear time complexity without relying on built-in sorting utilities. It tests your ability to manipulate pointers efficiently through a single pass over the dataset while maintaining constant extra space. Discover the complete problem walkthrough and optimal algorithmic solution by obtaining a subscription.
Coding QuestionsOKXReorder a Singly Linked List (L0 to Ln to L1 to Ln-1)
3/5Featured as a technical screening task at WeRide, this coding challenge tests pointer manipulation and linear data structure reconfiguration. The objective is to rearrange a singly linked list in a specific alternating pattern by weaving elements from the front and back halves together. Candidates must achieve this transformation in place without allocating auxiliary memory, ensuring optimal memory efficiency. The full problem statement, constraints, and an optimal model solution require an active subscription.
Coding QuestionsWeRideSort an Array with One Misplaced Element
3/5Reported as an interview challenge at Glean, this algorithmic task requires you to restore order to an integer sequence that has been disrupted by a single misplaced item. You are tasked with achieving linear time complexity without relying on standard comparison-based sorting utilities, making it a unique test of array traversal and edge-case management. The exercise probes your ability to recognize structural anomalies and design optimal linear routines. Review the full problem statement and the verified model solution with an active subscription.
Coding QuestionsGleanString Manipulation (Remove Adjacent A-B or C-D Pairs)
3/5String reduction puzzles often appear in technical screens to evaluate your proficiency with sequential data processing and stack-based algorithms. This Zalando interview question requires you to repeatedly eliminate specific adjacent character combinations until no further reductions are possible, regardless of the sequence of operations. It tests your skill in managing dynamic string mutations and optimizing runtime efficiency. Unlocking the full problem description and optimal model solution requires a subscription.
Coding QuestionsZalandoDelete-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 QuestionsJPMorganBinary Search for Boundaries in a Sorted Array
3/5Featured in Applied Materials interviews, this coding challenge asks you to efficiently locate the boundaries of a specific target value within an ordered numerical collection. The exercise tests your mastery of logarithmic time complexity search algorithms to pinpoint both starting and ending occurrences. Unlock the full problem breakdown and optimal implementation code with a subscription.
Coding QuestionsApplied MaterialsTwo Sum (All Pairs)
2/5Explore an essential array-scanning problem highlighted in ClickUp technical evaluations. This task challenges you to discover every unique number grouping within a collection that combines to reach a specified numerical goal. It evaluates your proficiency with hash maps, frequency tracking, and linear scan optimizations to achieve optimal time complexity. View the complete problem text and optimal programmatic solution by securing a subscription.
Coding QuestionsClickUpLogin 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 QuestionsMathWorksTwo 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 QuestionseBayFrom Right to Left Monotone Stack
2/5This frequently reported coding challenge from GE Healthcare asks you to analyze a sequence of numbers to locate the longest contiguous segment that satisfies a non-increasing order when scanned backwards. This problem evaluates your proficiency with linear data structures, sliding window strategies, and efficient pointer management to achieve optimal performance. By tackling this exercise, you will strengthen your capability to process sequential numerical data under specific directional constraints. Access the complete problem description, comprehensive test cases, and an optimized model solution by securing a subscription.
Coding QuestionsGE HealthcareLinked-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 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 QuestionsRobloxFind Kth Largest Element in Two Sorted Arrays
3/5Reported during Glean technical rounds, this question challenges you to locate a specific ordered element across two separate sorted sequences in sublinear time. It tests your proficiency with divide-and-conquer strategies, binary search adaptations, and efficient pointer manipulation. Unlock the full problem details and comprehensive model solution by subscribing today.
Coding QuestionsGleanRemove 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 QuestionsAttentiveAnnotate 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 QuestionsHeyGenSimplified Path for GPS Recorder
3/5In this engaging interview question reported at Axon, you are tasked with streamlining a sequence of geographic coordinates gathered by a tracking device. The objective is to filter out redundant intermediate locations that fall precisely along a straight trajectory, preserving only the vital turning points. This challenge evaluates your geometric reasoning and data reduction skills using chronologically ordered spatial inputs. The complete problem description and optimal model solution require a subscription.
Coding QuestionsAxonMemory Allocation Queries
3/5This Visa coding question asks you to simulate a memory manager that serves a stream of allocation and release requests on a linear array of cells. It tests careful state simulation, a first-fit placement policy, and reasoning about contiguous runs of free and occupied space. The full specification and a worked reference solution are available with a subscription.
Coding QuestionsVisaEfficient 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 QuestionsPalantirCheck 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 QuestionsUpstartWeave Two Strings Alternately
2/5A coding question on interleaving two strings character by character and keeping whatever is left over.
Coding QuestionsWalmart LabsGroup Linked List Nodes by Position Parity
3/5A coding question on reordering a singly linked list so that the nodes in the first, third, fifth and later odd places come before those in the even places. The order inside each group must stay the same, and the original nodes must be returned rather than copies.
Coding QuestionsRedditRemove Eligible Orders in Sequence
3/5A coding question on repeatedly removing items from a sequence when whether an item may leave depends on its current neighbors. Inputs reach a hundred thousand items, so the full removal order must be produced in linear time.
Coding QuestionsDoorDashDot-and-Star Pattern Matching
4/5A coding question on writing a matcher for patterns with a single-character wildcard and a repeat symbol, where the pattern has to describe the entire string. It tests careful case analysis, empty strings and partial-match traps, all without a regular-expression library.
Coding QuestionsCitadelSubarray 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 QuestionsPinterestRemove all occurrences of a target value from a linked list
2/5This Arista Networks interview question evaluates your ability to manipulate pointer structures by purging specific elements from a sequential chain. Candidates must carefully handle edge cases such as dropping the starting node while traversing the structure efficiently. Unlocking the comprehensive problem description and optimal model solution requires a subscription.
Coding QuestionsArista NetworksMinimum Segment Merges to Make Two Arrays Identical by Summing Subarrays
4/5Advanced array transformation and reduction strategies form the core of rigorous algorithmic assessments, often highlighted in interviews at Virtu Financial. This problem challenges you to find the minimum possible length of two sequences after repeatedly replacing contiguous subarrays with their sums until both structures become identical. It tests your deep comprehension of prefix sums, array reductions, and invariant properties under compression operations. Sharpening your skills on this topic prepares you for highly complex competitive programming challenges. The full problem statement and optimal model solution require a paid subscription.
Coding QuestionsVirtu FinancialMaximum Fish Caught
3/5Greedy algorithms and strategic resource allocation are central to this engaging puzzle, highlighted as a reported ZipRecruiter interview question. Participants must maximize their catch by pairing limited lures with aquatic animals under specific sizing and usage constraints. This task evaluates your proficiency in sorting techniques and optimal decision-making strategies to achieve the highest possible score. Access the complete problem description and a verified reference implementation by subscribing today.
Coding QuestionsZipRecruiterFront-Padded Palindrome
4/5Given a lowercase string, build the shortest palindrome obtainable by adding characters only at the front. The challenge is deciding how much of the original text can stay untouched, including for very long inputs and the empty string.
Coding QuestionsRedditTwo-Player Array Picking Game with Reverse-on-Odd Rule (Score Difference)
3/5Explore this intriguing ADIA interview question simulating a strategic two-player collection contest over a sequence of integers. Competitors take turns removing elements under distinct parity-based scoring rules, with one participant triggering a complete sequence reversal whenever they select an odd value. This exercise tests your simulation logic, state management, and algorithmic thinking under dynamic conditions. Unlock the comprehensive problem statement and verified model solution with a subscription.
Coding QuestionsADIAClosest Triple Sum to a Target
3/5Given a list of integers and a target value, pick three entries whose total lands nearest the target and report that total. Handle ties between equally near totals and small or extreme inputs.
Coding QuestionsWarner Music GroupMaximum 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 QuestionsSalesforceSliding Window Time Statistics
3/5This reported Datadog interview challenge requires you to process sequential temporal records and calculate frequency metrics across a rolling timeframe. It evaluates your ability to optimize range queries using efficient scanning techniques over ordered datasets. Access the complete breakdown and optimal code implementation with an active subscription.
Coding QuestionsDatadogIn-Place Run-Length Compression of a Character Array
3/5A coding question on shortening a list of characters by replacing repeated neighbours with a single character and a count, writing the result back into the same list and reporting its new length.
Coding QuestionsSalesforceLongest Symmetric Substring
3/5A coding question about finding the longest stretch of a string that reads identically in both directions, with a defined rule for ties. It also asks you to reason about how the work grows with the length of the input.
Coding QuestionsBloombergMinimum Swaps to Put Evens Before Odds
2/5A coding question on rearranging a list of integers by swapping pairs so that all even values come before all odd values. The learner returns the fewest swaps that is enough, and the list itself may include negative numbers and zeros.
Coding QuestionsOracleSubarray Removal
3/5Test your algorithmic thinking with this intriguing subarray elimination puzzle featured in D. E. Shaw recruitment rounds. The problem challenges you to determine how many different contiguous segments can be dropped from a sequence so that the remaining elements form a strictly increasing order. This task examines your capability to optimize linear scans and manage range boundaries effectively. To view the complete problem instructions and comprehensive model solution, please subscribe.
Coding QuestionsD. E. ShawMinimum Length Subarray With Sum at Least K
3/5This coding interview question, frequently featured at DocuSign, challenges candidates to find the shortest contiguous sequence within an array of positive integers whose cumulative sum meets or exceeds a given threshold. The exercise evaluates your ability to optimize search spaces and efficiently manage sliding boundaries or prefix sums under tight computational limits. Successfully tackling this problem requires mastering linear-time scanning techniques to handle large datasets effectively. The complete problem description and model solution require a subscription.
Coding QuestionsDocuSignLongest 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 QuestionsCapital OneKth 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 QuestionsSoFiMinimum 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 QuestionsRobloxCount 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 QuestionsHudson River TradingInsert 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 QuestionsWalmart LabsFixed-Length Windows That Contain a Target
2/5A coding question on scanning an integer array in fixed-length blocks to report every block that holds a given value, with a follow-up that picks the block holding the most copies of it. It checks careful handling of ties, absent values and blocks longer than the array.
Coding QuestionsRobloxFind the Person Everyone Knows
3/5Given only a pairwise query telling whether one person knows another, find the one person in a group who is known by everyone else and knows no one else, or report that none exists. The task limits how many queries you may make and asks you to reason about relaxed definitions.
Coding QuestionsHubSpotMerge 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 QuestionsHubSpotMaximize 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 QuestionsWalmart Labs3Sum Variant Find Unique Triplets Summing to Target
3/5Reported as a coding challenge during screening at The Trade Desk, this exercise asks you to discover every unique trio of numbers within an array that adds up to a specific goal. The task tests your mastery of pointer manipulation, sorting techniques, and duplicate elimination strategies to ensure the resulting combinations meet strict ordering rules. Optimizing your approach is crucial to handle larger datasets efficiently without timing out. The full problem and model solution require a subscription.
Coding QuestionsThe Trade DeskFastest Benchmark Completion in Activity
3/5Featured as a coding interview question from The Trade Desk, this problem explores continuous data analysis over cumulative trackpoints. Given an activity log containing incremental time and distance metrics, you must determine the absolute fastest completion time required to cover a specified benchmark distance assuming piecewise-linear movement between points. This challenge assesses your algorithmic efficiency, sliding window techniques, and geometric interpolation skills. Access the full problem details and verified model solution with a subscription.
Coding QuestionsThe Trade DeskFind Maximum Greatness
3/5Explore array permutation strategies through this popular interview scenario featured by Twilio. The objective requires you to reorder a collection of numeric elements to maximize the count of positions where the newly placed value strictly exceeds its original counterpart. This exercise tests your proficiency with greedy algorithms, sorting logic, and efficient sequence comparison. Accessing the comprehensive problem statement, accompanying test cases, and clean model solution demands a subscription.
Coding QuestionsTwilioEqual-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 QuestionsMathWorksNumber of Ways to Split Array into Three Parts
3/5This algorithmic problem, featured in recent DocuSign technical screening rounds, challenges you to compute the number of valid ways to partition a linear sequence into three contiguous non-empty sections based on specific numeric summation constraints. It tests your ability to optimize prefix sums and range queries to achieve an efficient linear time complexity. To view the full problem description, complete test suites, and an optimized model solution, a subscription is required.
Coding QuestionsDocuSignMinimum 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 QuestionsGuidewireBridge 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 QuestionsGitHubFind All Unique Triplets Summing to Zero in Array
3/5Recapped from a Visa coding assessment, this popular algorithmic challenge asks you to discover all distinct combinations of three numbers within an integer collection that add up to zero. The task tests your mastery of sorting strategies, two-pointer techniques, and duplicate elimination in numeric arrays. You will need to design an efficient routine that avoids redundant configurations while scanning the dataset. Unlock the full challenge details and clean model implementation by obtaining a subscription.
Coding QuestionsVisaAnti-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 QuestionsRubrikPayment 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 QuestionsStripeMerge Two Sorted Lists
2/5Commonly encountered in Squarespace interviews, this fundamental problem requires combining two separately ordered singly linked lists into a single cohesive sorted sequence by rearranging their internal pointers. It examines your command of pointer manipulation, recursive logic, and iterative list traversal while handling edge cases such as empty inputs. You must construct the result efficiently without allocating unnecessary nodes. View the complete problem statement, test scenarios, and a clean model solution by obtaining a subscription.
Coding QuestionsSquarespaceSimulate Stack
3/5A coding question about validating an order of operations on a last-in-first-out structure. Given the order in which items go in and a proposed order in which they come out, the learner decides whether that exit order is achievable.
Coding QuestionsRubrikAlternating String Merge
2/5A coding question on strings. Two strings are combined by taking one character from each in turn, and the leftover characters of the longer one are kept. It checks index handling with unequal lengths and empty inputs.
Coding QuestionsCiscoMinimum 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 QuestionsCiscoLongest Substring With One Character Allowed to Repeat Once
3/5This Pinduoduo interview question challenges you to find the longest contiguous segment in a string where at most one character appears twice and all other characters appear strictly once. Candidates must design an efficient sliding window or two-pointer algorithm to scan the text in linear time while tracking character frequencies. It tests advanced sequence processing and state management. The full problem statement and expert solution are available exclusively to subscribers.
Coding QuestionsPinduoduoCheck if Permutation Subset Within Range Exists
3/5This intriguing HackerRank interview question evaluates your ability to analyze permutations and verify whether growing prefix sequences form continuous subarray blocks within a given list. It examines your logical reasoning, bounds-checking capabilities, and skill in recognizing structural properties of number sequences. You will learn how to efficiently scan and validate arrangements without resorting to costly nested checks. Gain full access to the complete problem breakdown and expert solution by signing up for a subscription.
Coding QuestionsHackerRankMerge Two Sorted Arrays
2/5Mastering array manipulation techniques is vital for technical interviews, as demonstrated by this common sorting challenge frequently asked at Whatnot. The task evaluates your ability to combine two ordered collections efficiently within restricted memory constraints and without utilizing extra data structures. You will discover optimal in-place pointer manipulation strategies to achieve linear time complexity while maintaining proper sequence order. The full problem breakdown, algorithmic complexity analysis, and clean model solution are available exclusively with a subscription.
Coding QuestionsWhatnotSmallest Subarray with K Distinct Integers
3/5Locating the most compact segment of an array containing a specific variety of distinct elements is a classic interview challenge frequently featured at Adobe. This problem assesses your mastery of two-pointer techniques and hash-based frequency tracking to dynamically shrink and expand sequence boundaries. You will need to handle edge cases where the target variety cannot be satisfied. Access the complete problem statement and optimal source code by subscribing.
Coding QuestionsAdobeCount Strictly Increasing Triplets
3/5Challenge your combinatorial reasoning with this algorithmic problem featured in Pinduoduo interview sessions. Given a sequence of numbers, your objective is to efficiently count how many ordered index triplets satisfy a strictly increasing relational condition while maintaining sub-quadratic time complexity. This puzzle thoroughly tests your ability to optimize nested loops using prefix counts or similar strategic state tracking. Unlock the complete problem guidelines and detailed solution by securing a subscription.
Coding QuestionsPinduoduoUnion Iterator for Two Sorted Iterators (Dedup, Streaming, O(1) Extra Space)
3/5Examine advanced streaming algorithms through this concurrency and data structures challenge from MongoDB interviews. The task requires building a unified iterator that merges two sorted input streams into a globally ordered sequence while removing duplicate entries under strict memory constraints. This problem evaluates your understanding of lazy evaluation, iterator design patterns, and constant space complexity. Access the complete problem specification and reference implementation with a paid subscription.
Coding QuestionsMongoDBShortest Distance Between 'X' and 'Y' in String
2/5This frequently reported interview question from Glean challenges candidates to efficiently compute the minimal separation index between two distinct target symbols scattered throughout a text sequence. The assessment evaluates your ability to traverse linear data structures while maintaining optimal tracking of element positions in a single pass. To explore the complete problem statement, optimal algorithmic approaches, and clean code implementations, unlock the full model solution with a subscription.
Coding QuestionsGleanRemove All Nodes With a Given Value From a Linked List
2/5A coding question on deleting every node that holds a given value from a singly linked list and returning what is left. It covers matches at the very start and end, long runs of matches, lists that end up empty, and keeping the surviving nodes in their original order.
Coding QuestionsWarner Music GroupReverse Between Vowel-Wrapped Substring Pairs
2/5A string manipulation question about reversing the stretches of text that lie between neighbouring vowels. It tests clean index handling and careful reading of a rule that is applied to overlapping pairs.
Coding QuestionsCapital OneSort a Quadratic-Transformed Sorted Array
3/5A coding question on applying a quadratic to a sorted list and returning the outputs in order, including parabolas that open downward. It tests reasoning about where the largest and smallest values of the function fall over a sorted input.
Coding QuestionsWaymoShift Zeros to the End, Keeping Order
2/5An array coding question about rearranging a list so that all zero entries come last while every other entry keeps its order, using the same list rather than a copy.
Coding QuestionsJPMorganLED Digit Display Invariant Under 180° Rotation
2/5A coding question about digits on a display that is turned upside down. It asks whether the visible sequence is unchanged, which requires deciding which digits stay valid after rotation and comparing positions from both ends.
Coding QuestionsWaymoCompare Dotted Version Strings
3/5A string question about deciding which of two release identifiers is later when each is written as numbers separated by periods. Leading zeros and different numbers of segments must not change the outcome.
Coding QuestionsNextdoorRemove Duplicates from Singly Linked List
2/5A linked-list question about removing repeated values from an already ordered chain of nodes, in place. It tests pointer manipulation and handling of empty lists and runs of equal values.
Coding QuestionsRubrikAssign Chefs to Dishes to Maximize Profit
3/5A coding question about pairing workers of different skill levels with tasks of different difficulty so that the combined reward is as large as possible, even when many workers may take the same task.
Coding QuestionsDoorDashRemove Adjacent Duplicate Characters
3/5A coding question about a string in which neighboring equal letters keep cancelling in pairs. It checks that deletions which expose new pairs are handled and that a long input finishes quickly.
Coding QuestionsBlue OriginLargest Container Between Two Vertical Lines
3/5A classic array problem about picking two barriers that hold the largest amount of liquid between them. It tests whether you can avoid checking every pair and argue why the faster approach is correct.
Coding QuestionsOracle
Studied alongside
Two Pointer interview FAQ
- How many Two Pointer interview questions are there?
- 161 reported questions, mostly Coding Questions.
- Which companies ask Two Pointer questions?
- Amazon (35), Google (10), Apple (8), Uber (8), Meta (6), ByteDance (4), Goldman Sachs (4), Snowflake (4).
- How hard are Two Pointer questions?
- They average 2.7 out of 5: 2 at 1/5, 48 at 2/5, 100 at 3/5, 11 at 4/5.