in-place Interview Questions
15 interview questions in our bank cover in-place, most of them Coding & Leetcode-style Questions. They average 2.6/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about in-place: Amazon, Goldman Sachs, Microsoft, Rubrik, WeRide, and 5 more.
Practice these on the problems board →Companies that ask about in-place
Question mix
- Coding & Leetcode-style Questions15
Difficulty
- 1/5 — warm-up1
- 2/5 — easy6
- 3/5 — medium6
- 4/5 — hard2
Questions tagged in-place
In-Place Sub-Matrix Move with Overlap
3/5Reported from a Microsoft interview, this advanced matrix manipulation challenge requires relocating a smaller sub-grid within a larger two-dimensional array entirely in-place. The primary hurdle is managing source and destination region overlaps correctly without overwriting unread data during the shift, while also clearing out abandoned cells. It tests your spatial reasoning, index manipulation, and ability to handle complex boundary conditions without allocating auxiliary memory grids. The complete problem statement and optimized model solution require a subscription.
Coding & Leetcode-style QuestionsMicrosoftString 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 & Leetcode-style QuestionsAmazonRemove 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 QuestionsRubrikReorder 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 & Leetcode-style QuestionsWeRideFirst Missing Positive
4/5This classic coding assessment, frequently encountered in Goldman Sachs interviews, challenges you to identify the smallest missing positive integer in an unsorted collection of numbers. The problem tests your mastery of in-place array manipulation, constant auxiliary space complexity, and clever index-mapping techniques to achieve linear time performance. To view the full problem statement, algorithmic analysis, and thoroughly commented model code, a paid subscription is required.
Coding & Leetcode-style QuestionsGoldman SachsRotate Image In Place
3/5This classic matrix manipulation challenge, frequently featured in Uber technical screens, asks you to rotate a square digital image by a fixed ninety-degree angle. The core test centers on your ability to perform spatial transformations in place without allocating extra memory matrices, requiring careful handling of layer boundaries and indexing logic to avoid off-by-one errors. Reviewing the complete problem description, step-by-step spatial diagrams, and the optimal coding solution requires an active subscription.
Coding & Leetcode-style QuestionsUberIn-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 SachsIn-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 & Leetcode-style QuestionsAmazonFirst Missing Positive
4/5A classic array manipulation puzzle frequently asked in Netflix interviews, this problem challenges you to discover the smallest missing positive integer in an unsorted collection. The core difficulty lies in achieving this feat under strict linear time efficiency without allocating extra auxiliary memory. It tests your mastery of in-place data rearrangement and index mapping techniques. Access to the complete problem description and the optimized reference solution requires a subscription.
Coding & Leetcode-style QuestionsNetflixMerge 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 QuestionsAmazonRotate 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 & Leetcode-style QuestionsAppleSort 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 QuestionsSnowflakeIn-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 & Leetcode-style QuestionsAmazonRotate a Square Matrix 90 Degrees Clockwise
2/5This Amazon interview challenge requires you to take a square grid of data and perform a clockwise rotation of ninety degrees directly within the existing memory allocation. The core difficulty lies in manipulating array indices accurately to shift elements along their proper circular paths without utilizing extra storage space. Access the comprehensive problem walkthrough and fully tested reference solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAmazonIn-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 & Leetcode-style QuestionsGoogle
Studied alongside
in-place interview FAQ
- How many in-place interview questions are there?
- 15 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask in-place questions?
- Amazon (5), Goldman Sachs (2), Microsoft (1), Rubrik (1), WeRide (1), Uber (1), Netflix (1), Apple (1).
- How hard are in-place questions?
- They average 2.6 out of 5: 1 at 1/5, 6 at 2/5, 6 at 3/5, 2 at 4/5.