stack Interview Questions
71 interview questions in our bank cover stack, most of them Coding & Leetcode-style Questions. They average 3.0/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about stack: Meta, Amazon, ByteDance, Apple, Google, and 15 more.
Practice these on the problems board →Companies that ask about stack
Question mix
- Coding & Leetcode-style Questions71
Difficulty
- 1/5 — warm-up2
- 2/5 — easy9
- 3/5 — medium45
- 4/5 — hard15
Questions tagged stack
Basic Calculator
4/5Reported as a coding challenge at Netflix, this problem requires you to parse and evaluate mathematical expressions containing nested parentheses and unary operators without relying on native evaluation utilities. It tests your proficiency with stack-based parsing algorithms and string manipulation under strict constraints. Reviewing the complete prompt and optimal algorithmic solution requires a subscription.
Coding & Leetcode-style QuestionsNetflixCommand Executor with Undo and Tags
3/5This Netflix interview question asks you to design a flexible command execution engine that supports both global history tracking and tag-based selective undo operations. It evaluates your command design patterns, state management strategies, and efficient data structure selection for fast retrieval and removal. To access the full problem requirements and expert solution code, a subscription is required.
Coding & Leetcode-style QuestionsNetflixMin Stack (Basic Data Structure Exercise)
2/5Featured in an OKX coding evaluation, this fundamental data structure problem asks candidates to design a specialized container that supports standard stack operations alongside constant-time retrieval of its smallest element. Programmers must handle various command inputs efficiently while delivering correct responses for insertions, deletions, and lookup queries under large input scales. The challenge tests fundamental algorithmic thinking, time-complexity awareness, and clean data structure implementation. The complete problem statement, constraints, and reference solution require a paid subscription.
Coding & Leetcode-style QuestionsOKXLazy Binary Tree Inorder Iterator (BSTIterator)
3/5Master this classic Apple interview puzzle requiring the design of a memory-efficient sequential retriever for hierarchically structured tree data without pre-loading every node into memory. This problem tests your understanding of tree traversals, stack operations, and lazy evaluation principles to maintain optimal space complexity proportional to the tree depth. It is an essential exercise for mastering stateful iterator patterns in hierarchical collections. Full access to the detailed walkthrough and optimized code implementation requires a subscription.
Coding & Leetcode-style QuestionsAppleModify the String
3/5Encountered frequently in Yahoo technical assessments, this problem asks you to streamline a character sequence by systematically removing duplicate elements until all remaining letters are unique. The objective is to achieve the alphabetically largest outcome through strategic omissions. This exercise tests your understanding of greedy strategies and stack or frequency-based data structures. Access to the full problem description and expert solution requires a subscription.
Coding & Leetcode-style QuestionsYahooValid Parentheses Check
2/5String parsing and validation form the foundation of many core computer science fundamentals, frequently appearing in screening interviews at companies like WeRide. This challenge requires you to evaluate a sequence of mixed bracket types and verify whether they are correctly nested and properly closed in the right order. It serves as an excellent test for your understanding of stack data structures and linear time complexity parsing. Unlock the complete problem statement and a clean model solution with a subscription.
Coding & Leetcode-style QuestionsWeRideResolve a Unix cd Path
2/5Reported during Meta engineering interviews, this navigation puzzle challenges you to normalize Unix-style file system paths following a command. Given a starting working directory and a target destination string, your goal is to compute the resulting absolute path while correctly handling parent directory references, current directory markers, and redundant slashes. It is a fantastic test of stack-based parsing and edge-case management. Unlock the complete walkthrough, time complexity analysis, and clean reference implementation with a subscription.
Coding & Leetcode-style QuestionsMetaString Decompression with Nested Counts
3/5Tackle a popular Google onsite coding challenge centered on decoding complex, nested string compression formats. You will need to process characters and repeatable blocks efficiently, handling arbitrary levels of nesting and numeric multipliers to reconstruct the original text. This problem tests your stack manipulation skills, parsing logic, and recursive thinking. The comprehensive problem description and the complete, optimized model solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsGoogleRemove All Adjacent Duplicates in a String
2/5This Whatnot interview question challenges you to repeatedly eliminate adjacent matching characters from a text string until no further reductions are possible. The core task involves efficiently processing character sequences to handle cascading deletions without incurring high time complexity. It evaluates your mastery of linear data structures, specifically utilizing stacks for string manipulation. Unlock the full problem details and the optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsWhatnotCalculator (Basic Calculator variant)
3/5Mastering arithmetic expression parsing is a frequent challenge in technical screenings, such as this Docker interview question. Candidates are asked to evaluate a mathematical string incorporating positive integers, addition, subtraction, and grouping symbols governed by parentheses. This exercise evaluates your ability to manage operator precedence and utilize stack-based data structures to correctly compute nested expressions. Access to the complete problem breakdown and optimal model solution requires an active subscription.
Coding & Leetcode-style QuestionsDockerValid Parentheses
2/5Verifying the correct syntax of nested grouping symbols is a classic algorithmic hurdle often featured in Apple technical interviews. This problem requires you to analyze a string of various bracket characters and determine whether every opening symbol is properly matched and closed in the correct sequence. The exercise tests your proficiency with last-in-first-out data structures for efficient validation. Unlock the full problem description and detailed code solution with a subscription.
Coding & Leetcode-style QuestionsAppleMax Stack
4/5Designing custom data structures with advanced retrieval capabilities is a popular theme in technical evaluations, including this Latitudeai interview question. You are tasked with building an extended stack container that supports standard stack operations alongside efficient retrieval and removal of the maximum element present in the collection. The challenge emphasizes amortized time complexity and careful pointer management. Gain access to the comprehensive problem description and reference implementation with a subscription.
Coding & Leetcode-style QuestionsLatitudeaiData Structures Characteristics
3/5Prepare for your upcoming technical interview with General Motors by exploring the foundational traits of essential computer science containers. This curated challenge evaluates your ability to compare and contrast various organizational strategies, examining the trade-offs, performance strengths, and specific operational contexts best suited for each architecture. You will review how different memory layouts impact retrieval and modification efficiency across sequential and hierarchical layouts. Access to the comprehensive breakdown and expert answers requires an active subscription.
Coding & Leetcode-style QuestionsGeneral MotorsFunction Inclusive and Exclusive Time
3/5Reported as a classic interview question at LinkedIn, this exercise involves parsing chronological execution logs to measure both inclusive and exclusive processing durations for specific routines. It assesses your proficiency with stack-based data structures and event-driven timeline calculations to track nested function calls accurately. Solving this requires careful management of timestamps and hierarchical execution scopes. To view the complete problem details and the optimal model solution, a subscription is required.
Coding & Leetcode-style QuestionsLinkedInImplement a Calculator with Brackets
4/5In this classic expression evaluation challenge reported from WeRide, you must construct a robust arithmetic calculator that correctly handles basic operations along with parentheses and operator precedence rules. The task evaluates your ability to parse structured text strings efficiently while respecting mathematical hierarchy and integer division behaviors. Tackling this problem hones your stack-based parsing skills and algorithmic logic for complex string manipulation. Unlock the full problem details and reference solution by obtaining a subscription.
Coding & Leetcode-style QuestionsWeRideValid Parentheses
2/5Reported as a screening question from C3.ai, this fundamental parsing challenge asks you to verify whether a given string of mixed brackets is properly nested and closed in the correct order. It serves as a benchmark test for evaluating your proficiency with stack data structures and linear time validation logic. Perfecting this pattern is a crucial milestone for tackling more intricate syntax analysis and compilation tasks in future interviews. The full problem text and validated reference implementation are available to subscribers.
Coding & Leetcode-style QuestionsC3.aiMax Stack with peekMax and popMax
4/5Enhance a standard linear data structure to support rapid maximum retrieval and specialized removal capabilities alongside traditional operations. Featured in hiring evaluations at LinkedIn, this problem tests your mastery of amortized complexity, internal pointer management, and auxiliary data structures. You will weigh simple baseline implementations against highly optimized logarithmic alternatives. To view the complete instructions and detailed code implementation, a subscription is required.
Coding & Leetcode-style QuestionsLinkedInStack-Based String Evaluator (PUSH/POP/DUP/+/-)
3/5This interview question, reported from Jump, asks you to build a parser that processes a sequence of arithmetic operations and memory manipulation commands using a Last-In-First-Out data structure. It assesses your competency in handling tokenized streams, managing data structures safely, and detecting execution errors like underflows or invalid instructions. You will need to write robust parsing logic that accurately tracks state transitions. Get access to the full problem details and a thoroughly explained model solution with a subscription.
Coding & Leetcode-style QuestionsJumpDesign a Max Stack (Optimal)
4/5This Zipline interview question challenges you to build an advanced container structure that tracks standard insertion and removal tasks while efficiently retrieving and extracting its largest element in constant time. Candidates are evaluated on their ability to combine multiple data storage patterns to maintain performance guarantees during complex modifications. The complete problem statement, comprehensive test cases, and a fully optimized model solution require a subscription.
Coding & Leetcode-style QuestionsZiplineExcel Redo and Undo Simulation
3/5This Airtable interview question asks you to replicate the history management features found in modern spreadsheet software, specifically handling state reversals and re-applications. You must design a robust system that tracks user actions sequentially while supporting forward and backward navigation without corrupting chronological integrity. Unlock the complete problem description, interaction walkthroughs, and optimized implementation details with a subscription.
Coding & Leetcode-style QuestionsAirtableImplement Text Editor with Undo and Redo
3/5Featured in Notion coding interviews, this task challenges you to simulate a text editing environment capable of handling continuous typing alongside efficient undo and redo actions in constant time complexity. It evaluates your command over linear data structures, history tracking, and pointer management. The complete problem requirements, performance constraints, and reference implementation are available to subscribers only.
Coding & Leetcode-style QuestionsNotionDocument / Layer — Apply, Undo, Commit Batch, Redo
3/5Master state management and command patterns with this popular Figma technical interview exercise. Candidates are asked to construct a hierarchical document model containing customizable layers, then implement functionality for property adjustments, rollbacks, grouped batch operations, and forward execution. While the underlying computational logic remains straightforward, success hinges on designing a pristine object architecture capable of handling intricate specifications cleanly. To explore the complete problem statement and review an optimized reference implementation, an active platform subscription is required.
Coding & Leetcode-style QuestionsFigmaImplement a Text Editor
3/5Presented during technical rounds at Rokt, this challenge asks you to build a functional text editing system capable of handling insertions, deletions, reversals, and state snapshots. The evaluation centers on your choice of underlying data structures to maintain high performance across multiple interactive commands, particularly when managing history and state restoration. Crafting a robust solution demands careful consideration of memory and time efficiency. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsRoktString 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 & Leetcode-style QuestionsZalandoNext Greater Element in a Circular Array
3/5In this classic interview problem featured at Amazon, you are tasked with identifying the next greater numerical value for every position in a wrap-around sequence. Because the structure loops back to the beginning, standard linear scans fall short, requiring the use of a monotonic stack to achieve optimal linear time complexity. This challenge is a staple for evaluating stack-based algorithmic thinking. Unlock the complete problem context and detailed solution by subscribing today.
Coding & Leetcode-style QuestionsAmazonRemove Duplicate Letters for Lexicographically Smallest Result
3/5Presented during ByteDance interviews, this string manipulation task challenges you to eliminate duplicate characters while preserving a specific alphabetical ordering rule for the final output. It evaluates your ability to combine greedy decision-making with frequency tracking and stack structures to construct the optimal sequence efficiently. Successfully solving this requires a deep understanding of character precedence and stack invariants. Access the full problem description and verified solution with a paid subscription.
Coding & Leetcode-style QuestionsByteDanceRecipe Shopping Cart with Ingredient Bulk Discounts (Undo/Redo)
3/5Build a flexible e-commerce basket management system that handles item dependencies, cumulative quantity discounts, and historical state changes, as seen in Decagon technical screens. This problem evaluates your skill in maintaining relational states, aggregating inventory metrics, and implementing undo-redo functionality cleanly. You will practice structuring modular data classes to handle complex business rules without performance degradation. Unlock the full exercise guidelines and reference code by subscribing.
Coding & Leetcode-style QuestionsDecagonDecode String
3/5Featured in Apple coding assessments, this puzzle challenges you to reconstruct a fully expanded text from a compressed format using nested repetition rules. The problem tests your proficiency with stack data structures, string manipulation, and parsing nested patterns efficiently under constraints. You will need to carefully track multipliers and grouping boundaries to expand the sequence properly. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAppleEvaluate a Nested Math Expression
3/5Parse and compute nested functional expressions smoothly with this classic parsing challenge frequently asked at Google. The task assesses your proficiency with recursion, stack-based parsing, and transforming structured string inputs into evaluated numeric results. You will practice breaking down nested grammar rules and managing operator precedence without relying on unsafe evaluation functions. Unlock the comprehensive problem guide, parsing strategies, and clean model solution by obtaining a subscription.
Coding & Leetcode-style QuestionsGoogleDecode String with (group){k} Repeat Syntax
3/5Tackle this engaging string manipulation puzzle reminiscent of a Waymo interview variant, where compressed text must be fully expanded using custom repetition syntax and parentheses. This challenge tests your mastery of stack-based parsing algorithms, nested data structures, and efficient character decoding techniques to handle arbitrarily deep hierarchies. Candidates must carefully track opening and closing delimiters alongside numeric multipliers to reconstruct the original sequence accurately. The complete problem statement, test cases, and optimal model solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsWaymoMinimum Add to Make Parentheses Valid
2/5This frequently asked Meta interview question challenges candidates to evaluate sequences of grouping symbols and compute the fewest insertions necessary to ensure every opening token correctly corresponds to a closing counterpart. It tests your ability to track nesting levels and manage state efficiently using linear scanning techniques. By analyzing unmatched characters, you can quickly determine the structural deficit of the text. To explore the complete problem description alongside a fully optimized reference implementation, a paid subscription is required.
Coding & Leetcode-style QuestionsMetaBasic Calculator with Postfix Notation
2/5Featured as an Amazon interview question, this exercise asks you to evaluate arithmetic expressions provided in postfix notation, commonly known as reverse Polish notation. The task assesses your understanding of linear data structures, specifically utilizing stacks to manage operands and execute operations in sequential order. You will need to handle token parsing, operator precedence implicitly defined by order, and arithmetic evaluation safely. Get immediate access to the full problem description and optimal solution by subscribing.
Coding & Leetcode-style QuestionsAmazonString Deduplication
3/5String manipulation and linear data traversal are core skills tested in coding assessments like this one reported at Blue Origin. The task centers on processing text dynamically to continuously eliminate adjacent matching characters until a fully condensed sequence remains. This challenge examines your proficiency with stack-based data structures to achieve optimal linear time complexity during character reduction. Unlock the full problem breakdown and a clean, efficient implementation by securing a platform subscription.
Coding & Leetcode-style QuestionsBlue OriginValid Parentheses with Wildcard '*' and DFS All Strings
3/5Reported as a common interview challenge at ByteDance, this problem explores string validation and combinatorial generation with wildcard characters that can represent multiple grouping symbols or empty spaces. The initial task requires verifying overall structural correctness in linear time, while the follow-up asks you to enumerate every unique valid permutation using depth-first search techniques. It effectively tests your command over state tracking, backtracking, and duplicate elimination. Gain access to the full problem description, algorithmic breakdown, and reference code with a subscription.
Coding & Leetcode-style QuestionsByteDanceValidate Brackets & Parse Nested Rich Text
3/5Master a two-part text manipulation challenge commonly featured in engineering evaluations at Figma. The first phase evaluates your ability to verify structural correctness in character sequences containing paired delimiters, while the second phase requires transforming hierarchical syntax into nested collection formats. This problem tests fundamental concepts in recursion and linear data structures. To view the full problem statement, detailed explanations, and complete model solution, a paid subscription is required.
Coding & Leetcode-style QuestionsFigmaMin Stack With O(1) Operations
3/5Mastering data structures efficiently is a common goal in technical evaluations, frequently appearing in interviews at companies like Amazon. This problem challenges you to build a specialized stack data structure that supports standard modifications alongside a retrieval mechanism for the smallest element. The core requirement is maintaining optimal constant time complexity for every operation without relying on compound storage per node. Preparing for this scenario sharpens your understanding of internal tracking and amortized efficiency. To view the complete problem description and an optimized reference solution, unlock the full subscription.
Coding & Leetcode-style QuestionsAmazonMinimum Remove to Make Valid Parentheses
3/5Tackle a classic string manipulation puzzle widely utilized in Meta coding interviews. This challenge evaluates your proficiency with stack data structures and your ability to sanitize malformed text sequences by removing the fewest elements necessary to achieve structural validity. You will also consider advanced variations involving multiple nested symbol hierarchies simultaneously. To access the comprehensive explanation, complexity analysis, and fully tested model solution, unlock your premium subscription today.
Coding & Leetcode-style QuestionsMetaString-Command Stream Calculator
3/5Parsing and evaluating sequential instruction streams is a classic systems-level coding challenge frequently featured in technical interviews at cloud data warehousing pioneers like Snowflake. This problem requires building an interpreter that processes textual arithmetic operations while maintaining a dynamic running state and handling potential command structures. Candidates must demonstrate strong string manipulation skills, robust state management, and the ability to gracefully handle edge cases or nested instructions. Unlock the complete problem statement, comprehensive test suites, and expert-authored model solutions with a subscription.
Coding & Leetcode-style QuestionsSnowflakeOne-Move Balanced Parentheses
3/5This MathWorks coding challenge evaluates your ability to manipulate and validate sequences of grouping symbols efficiently. The problem tests your algorithmic thinking regarding string transformations, requiring you to determine whether a given text of brackets is already properly matched or can achieve correct balance by relocating at most a single element. You will need to design an optimized approach to handle structural checks without brute-forcing every potential shift. Access to the complete problem description, architectural breakdown, and expert model solution requires a subscription.
Coding & Leetcode-style QuestionsMathWorksEvaluate an Arithmetic Expression Without Parentheses
3/5Encountered frequently during technical screens at Meta, this coding challenge requires you to safely parse and compute mathematical expressions containing basic arithmetic operators without relying on parentheses. You must correctly handle operator precedence where multiplication and division take priority over addition and subtraction, while also validating the expression string for malformed inputs or division by zero errors. Access to the full problem statement, test cases, and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsMetaSimplify Expression by Removing Parentheses
3/5Asked during an onsite interview at Oracle Labs, this string manipulation challenge tests your ability to parse algebraic expressions containing nested parentheses and distribute unary signs across variables. You are required to flatten the expression completely while adhering to mathematical rules for addition and subtraction over symbols. This problem tests stack utilization and careful parsing logic. The complete problem description, test cases, and reference solution require a subscription.
Coding & Leetcode-style QuestionsOracleImplement a Calculator Supporting Basic Operations
3/5Reported from Rokt interviews, this task challenges candidates to build a robust arithmetic parser capable of evaluating mathematical expressions containing multiple operators with standard precedence rules. The exercise tests string manipulation, stack utilization, and numerical computation skills to handle operations correctly without explicit parenthesis handling. Unlock the full problem details and expert solution by subscribing.
Coding & Leetcode-style QuestionsRoktValidate Non-Nesting Parentheses with Content Rules
3/5Encountered in Lenovo technical rounds, this coding challenge tests your string parsing and validation skills by requiring you to verify specific structural constraints on enclosing characters like brackets and parentheses. You must ensure proper closure, prohibit identical types from nesting within each other, and mandate that non-empty content exists inside every pair. Discover the full problem statement and optimal algorithmic solution with a subscription.
Coding & Leetcode-style QuestionsLenovoEvaluate a Basic Arithmetic Expression (Calculator II)
3/5Reported as a standard technical assessment at Otter.ai, this problem requires you to parse and compute mathematical expressions adhering to standard operator precedence rules without parentheses. You will need to handle sequential operations, integer division truncation, and whitespace management efficiently within strict time limits. This challenge tests your mastery of stack-based parsing algorithms and string manipulation techniques. To view the comprehensive problem text and fully articulated code solution, a subscription is required.
Coding & Leetcode-style QuestionsOtter.aiIn-Memory Key-Value Database with Transactions
3/5As reported in technical evaluations for Otter.ai, this problem requires candidates to build a lightweight, in-memory data store that handles fundamental retrieval and modification actions alongside transactional block controls. Developers need to manage state changes carefully, allowing users to stage updates, apply them permanently, or discard them as needed while keeping track of visibility rules across different operational blocks. This tests architectural thinking, state management, and data structures. To view the complete problem description and professional solution, a subscription is necessary.
Coding & Leetcode-style QuestionsOtter.aiBasic Calculator Without Parentheses
3/5Parsing and evaluating mathematical expressions without parentheses is a classic algorithmic challenge reported during DoorDash technical interviews. Candidates must process arithmetic strings adhering to strict operator precedence rules, handling basic operations and integer division efficiently. This problem tests stack-based evaluation techniques, parsing logic, and order of operations handling. Access the complete problem description, complexity analysis, and production-ready solution code with an active subscription.
Coding & Leetcode-style QuestionsDoorDashRetention Policy Collision
3/5Managing hierarchical data dependencies and overlapping constraints is a frequent challenge in enterprise software engineering interviews at Box. This problem explores how governance directives migrate across infinite tree structures and assesses your ability to detect rule conflicts. The exercise tests advanced tree traversal techniques, interval management, and spatial tracking algorithms. Unlock the complete problem statement and the professional reference solution with a paid subscription.
Coding & Leetcode-style QuestionsBoxLongest Valid Parentheses Span
4/5Master sequence manipulation and index tracking with this intriguing interview challenge frequently featured by Amazon. Candidates are tasked with evaluating sequences of bracket characters to locate the most expansive valid section and calculating its span based on boundary positions. This exercise evaluates your ability to optimize linear scans and maintain state efficiently using stacks or dynamic programming techniques. To access the complete problem statement, optimal algorithms, and thoroughly explained model code, unlock the full guide with a subscription.
Coding & Leetcode-style QuestionsAmazonPlants Pesticide - Days Until Stable
4/5This Walmart Labs interview question presents a fascinating simulation challenge where elements in an array interact with their neighbors over multiple rounds based on specific numerical conditions. You need to model simultaneous eliminations and sequence contractions efficiently until a steady state is reached. The puzzle evaluates your skill in managing dynamic collections and optimizing iterative state transformations. Access to the full challenge details and the complete working solution requires a subscription.
Coding & Leetcode-style QuestionsWalmart LabsLargest Rectangle in Histogram (LC 84)
4/5This classic interview challenge, noted at Zipline, asks you to determine the maximum possible area of a geometric shape formed by adjacent vertical columns of varying altitudes. The task examines your proficiency with monotonic stack data structures to evaluate bounding boundaries in linear time. You will need to efficiently calculate potential areas by looking left and right from each column. Unlocking the full problem walkthrough and coded solution demands a subscription.
Coding & Leetcode-style QuestionsZiplineNested Pattern String Expansion
3/5In this coding interview question reported at Cisco, you are tasked with decompressing complex text formats that feature deeply nested patterns and numeric multipliers. The problem evaluates your proficiency with recursive algorithms, stack data structures, and string parsing techniques to handle arbitrary levels of repetition. Unlock the full challenge details and the step-by-step model solution by securing a paid subscription.
Coding & Leetcode-style QuestionsCiscoRemove 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 QuestionsAttentiveBasic Calculator with Operators, Variables, and Functions
3/5This reported Tesla interview question challenges you to build a comprehensive expression parser that starts with basic arithmetic and progressively incorporates advanced features such as exponentiation, grouping symbols, logical operators, variable assignments, and custom routines. This puzzle evaluates your ability to design robust interpreters and handle complex grammar rules efficiently. To explore the complete problem statement, comprehensive test cases, and an optimized reference solution, a subscription is required.
Coding & Leetcode-style QuestionsTeslaExclusive Time of Functions
3/5Featured in Uber technical screenings, this problem asks you to calculate the net execution duration for multiple routines running on a single processing unit based on sequential start and completion logs. The challenge tests your proficiency with stack-based data structures and timeline tracking, requiring you to properly isolate active processing periods from nested sub-calls. Access to the full problem description, edge-case breakdowns, and a verified model implementation requires a paid subscription.
Coding & Leetcode-style QuestionsUberMinStack, MaxStack and Streaming Median
4/5Mastering advanced linear data structures is a common hurdle in technical evaluations, exemplified by this reported ByteDance interview challenge. Candidates are tasked with implementing specialized container collections capable of tracking running extremes in constant time alongside managing a continuous data stream for real-time statistical computations. This exercise rigorously examines your ability to combine foundational push-and-pop mechanisms with dual-heap architectures for optimal performance under tight constraints. Access to the complete problem breakdown and the optimal reference solution requires a subscription.
Coding & Leetcode-style QuestionsByteDanceCooking App Cart with Nested Transactions
4/5This advanced coding challenge, reported from Decagon interview loops, requires you to design a robust shopping cart system that manages item quantities and complex discount rules while supporting nested database-style transactions. You will need to implement transactional boundaries, including savepoints, rollbacks, and commits, testing your ability to maintain internal state integrity under multi-layered modifications. It is a great test of object-oriented design and stack-based state management. To view the complete problem statement and implementation details, a subscription is required.
Coding & Leetcode-style QuestionsDecagonValid Parentheses String
1/5Practice a fundamental string validation exercise commonly utilized in Amazon technical screenings to test basic parsing and stack-based logic. Candidates must write a robust algorithm to verify whether grouping symbols within a given text are correctly ordered and paired. The challenge emphasizes clean code, edge-case management, and optimal linear-time performance. Access to the comprehensive problem analysis and fully tested reference implementation requires a subscription.
Coding & Leetcode-style QuestionsAmazonValid Parentheses
1/5As a frequently asked Snowflake interview question, this fundamental parsing task requires you to verify whether a sequence of grouping symbols is correctly nested and paired. You will need to process strings efficiently using appropriate data structures like stacks to ensure that every opening symbol has a corresponding closer in the correct order. This problem is a staple for testing basic algorithmic fluency. The full problem description and expert solution are available exclusively to subscribers.
Coding & Leetcode-style QuestionsSnowflakeStack Problem (details unspecified)
2/5Sharpen your algorithmic thinking with this targeted stack-based programming puzzle reported during technical interviews at Google. This problem assesses your fundamental ability to manipulate linear data structures, manage last-in-first-out ordering constraints, and solve efficient traversal challenges under strict time and memory limits. It serves as a great practice exercise for strengthening core data structure manipulation skills needed at top-tier tech companies. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsGoogleStamping The Sequence
4/5Asked during a Nuro interview, this problem challenges you to reconstruct the exact sequence of stamping operations needed to transform a blank placeholder string into a target pattern. You must work backward from the final state, systematically uncovering valid stamp placements until the initial configuration is fully restored. This puzzle tests your aptitude for reverse-engineering complex transformations and greedy problem-solving techniques. Access to the comprehensive problem statement and verified solution requires a subscription.
Coding & Leetcode-style QuestionsNuroCompress a text editor operation stream into insert/delete/skip operations
3/5Featured in Replit interview loops, this problem asks you to take a sequence of low-level text editing actions and compress them into a streamlined set of higher-level instructions. The challenge tests your proficiency in string manipulation, state tracking, and optimization algorithms under cursor boundary conditions. Unlock the full problem statement, test cases, and complete solution code by subscribing today.
Coding & Leetcode-style QuestionsReplitBasic Calculator (with and without Parentheses)
4/5This ByteDance interview question requires you to build a robust calculator capable of evaluating complex mathematical expressions provided as strings. The calculator must correctly handle non-negative integers, standard binary operators (addition, subtraction, multiplication, division), spaces, and parentheses. Key challenges include accurately implementing operator precedence rules, managing integer division with truncation towards zero, and correctly processing unary minus operations. This problem is a classic test of parsing techniques, stack-based algorithms, and careful state management to correctly interpret and compute the expression. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsByteDanceSimulate 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 QuestionsRubrikModified Basic Calculator
4/5In this Rokt interview question, candidates are challenged to build a robust arithmetic evaluator capable of processing standard mathematical operators and nested parentheses according to order of operations. The assignment tests string parsing proficiency, stack utilization, and numerical computation rules for integer arithmetic. Success requires careful handling of operator precedence and grouping symbols. Access the full problem specifications and optimal source code by subscribing to the platform.
Coding & Leetcode-style QuestionsRoktSimplified 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 & Leetcode-style QuestionsAxonGood Binary Strings
4/5This BNP Paribas interview challenge requires examining specific characteristics of binary sequences based on balance and prefix constraints. Candidates are tested on their ability to manipulate strings and evaluate structural validity efficiently. The task evaluates foundational algorithmic thinking and combinatorial reasoning. Access to the complete problem breakdown and the optimized reference solution requires an active subscription.
Coding & Leetcode-style QuestionsBNP ParibasLargest Rectangle in Histogram
4/5This classic algorithmic challenge, frequently asked in ByteDance interviews, requires you to efficiently compute the maximum rectangular area that can be formed within a histogram given an array of bar heights. The assessment evaluates your mastery of linear-time monotonic stack algorithms and your ability to optimize spatial geometry computations. To view the complete problem breakdown and optimal model implementation, a subscription is required.
Coding & Leetcode-style QuestionsByteDanceImplement Redo/Undo for a Text Document
3/5Explore state management and history tracking challenges through a text editor simulation reported during technical interviews at Notion. This exercise requires you to build an interface that supports appending content alongside sequential state reversal and reapplication capabilities. It evaluates your grasp of linear data structures, pointer management, and edge-case handling for interactive software systems. Unlock the full problem details, comprehensive unit testing strategies, and a production-grade model solution with a subscription.
Coding & Leetcode-style QuestionsNotionBasic Calculator I / II
3/5This Meta interview question requires parsing and calculating the result of arithmetic string expressions respecting standard operator precedence and grouping parenthesis. Candidates must implement robust parsing logic using stacks or recursive descent to safely evaluate expressions while managing edge cases like invalid syntax and integer division truncation. It is a classic test of compiler design fundamentals and state machine implementation. Unlock the complete problem description and clean model solution with a subscription.
Coding & Leetcode-style QuestionsMetaDecode String (k[encoded]) (LC 394)
3/5Featured in an Oracle technical screening, this classic coding problem asks you to process and expand a text sequence governed by nested repetition rules. The task assesses your proficiency with stack-based data structures, string manipulation, and parsing algorithms. You must carefully manage embedded segments and repeat counts to rebuild the original text correctly. Unlock the full problem details and optimal implementation by subscribing to our platform.
Coding & Leetcode-style QuestionsOracleAsteroid Collision
3/5Reported as an interview question at IMC Trading, this simulation challenge involves tracking a series of moving objects along a linear path where directional trajectories lead to dynamic collisions and eliminations. You must determine the final state and survival of these entities after all physical interactions conclude. The problem tests your command of stack data structures, simulation loops, and efficient collision resolution logic. Unlock the full problem details and optimal source code solution by purchasing a subscription.
Coding & Leetcode-style QuestionsIMC Trading
Studied alongside
stack interview FAQ
- How many stack interview questions are there?
- 71 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask stack questions?
- Meta (5), Amazon (5), ByteDance (5), Apple (3), Google (3), Rokt (3), Netflix (2), WeRide (2).
- How hard are stack questions?
- They average 3.0 out of 5: 2 at 1/5, 9 at 2/5, 45 at 3/5, 15 at 4/5.