dfs Interview Questions
170 interview questions in our bank cover dfs, most of them Coding & Leetcode-style Questions. They average 3.1/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about dfs: Amazon, Uber, Google, ByteDance, Meta, and 15 more.
Practice these on the problems board →Companies that ask about dfs
Question mix
- Coding & Leetcode-style Questions170
Difficulty
- 2/5 — easy16
- 3/5 — medium130
- 4/5 — hard21
- 5/5 — very hard3
Questions tagged dfs
Count Lakes Wrapped by a Given Island
4/5This reported Meta interview question challenges candidates to analyze a grid containing land and water formations to identify internal water bodies that are fully enclosed by a specific landmass. The problem evaluates your grasp of matrix traversal techniques, connected components, and boundary-checking logic. You will need to efficiently traverse the grid, isolate water regions, and verify their confinement within the targeted boundaries. The complete problem statement, comprehensive test cases, and a verified model solution require a subscription.
Coding & Leetcode-style QuestionsMetaOpenSheet: Spreadsheet with Cell Dependencies
3/5In this coding interview question reported at OpenAI, you are asked to build a mini spreadsheet application that manages cell references, mathematical formulas, and automatic dependency updates. The challenge requires handling arithmetic operations while detecting and preventing circular references among cell links, with follow-ups exploring optimized evaluation graphs. It tests your graph traversal algorithms, state management, and object-oriented design capabilities. Access to the complete problem breakdown and verified model solution requires a subscription.
Coding & Leetcode-style QuestionsOpenAIDNA Shotgun Sequencing: Chain and Eulerian Path Reconstruction
5/5Tackle an advanced string reconstruction challenge inspired by biological sequencing workflows, frequently utilized in top-tier technical interviews at Microsoft. This problem requires stitching together fragmented sequence data by leveraging overlapping tags and graph traversal techniques across escalating levels of complexity. You will be tested on your ability to model relationships as paths and manipulate sequence payloads efficiently. View the complete problem statement and optimal algorithmic solution by obtaining a subscription.
Coding & Leetcode-style QuestionsMicrosoftComputation / Dependency Graph Validation and Pruning
3/5Practice a graph manipulation and validation exercise often featured in technical evaluations at NVIDIA. This challenge assesses your proficiency in managing complex dependency networks, ensuring structural integrity, detecting circular references efficiently, and pruning unnecessary execution branches within deep learning computation graphs. It tests core data structure skills using traversal algorithms and topological sorting to optimize runtime performance. The complete problem statement, edge-case analysis, and fully tested reference implementation require a subscription.
Coding & Leetcode-style QuestionsNVIDIAFlatten a Multilevel Doubly Linked List
3/5Tackling complex pointer manipulation is the core of this popular Bloomberg interview question focused on hierarchical data structures. You are tasked with transforming a multi-layered linked list into a flattened, single-tier sequence while maintaining a precise depth-first traversal order and correctly updating all bidirectional connections. This exercise evaluates your dexterity with pointer logic, edge-case management, and structural invariants in custom collections. Gain access to the full problem statement and optimal verified solution by subscribing now.
Coding & Leetcode-style QuestionsBloombergService Shutdown via Topological Propagation
3/5In this Amazon coding challenge, you are asked to track cascading failures across an interconnected software architecture. Given a group of initial service outages, your goal is to identify every component that becomes unusable either directly or through downstream connections. This exercise evaluates your proficiency with graph traversal and dependency propagation techniques. Gain access to the full problem text and optimal code solution by subscribing today.
Coding & Leetcode-style QuestionsAmazonLongest Path in a DAG
4/5Master a fundamental graph theory problem frequently featured in Amazon coding interviews, requiring you to determine the longest traversal route within a directed acyclic graph. This challenge tests your mastery of topological sorting, dynamic programming, and efficient pathfinding across dependency networks. The complete problem statement, underlying algorithmic theory, and fully documented model solution require an active subscription.
Coding & Leetcode-style QuestionsAmazonMaximum Weighted Path Sum in a DAG
3/5Optimizing pathways through directed acyclic graphs is a classic challenge often highlighted in rigorous engineering interviews at companies like Amazon. This task requires you to compute the maximum cumulative weight across all valid directed trajectories within a weighted network. You will need to combine topological sorting principles with dynamic programming to evaluate dependencies efficiently. Unlock the full problem context and an optimal step-by-step solution by subscribing today.
Coding & Leetcode-style QuestionsAmazonSame N-ary Tree Comparison
2/5This Oracle interview question expands upon traditional binary tree comparison tasks by asking you to evaluate N-ary trees for structural and value equality. You will first tackle the straightforward recursive approach, followed by an advanced iterative follow-up that traverses both hierarchies simultaneously using explicit auxiliary data structures. It serves as an excellent test of your tree traversal mastery and pointer management. The comprehensive breakdown, alongside recursive and iterative model solutions, requires a paid subscription.
Coding & Leetcode-style QuestionsOracleTree Diameter
3/5Explore how to determine the longest distance between any two vertices within an acyclic connected graph in this reported interview question from Verkada. This exercise evaluates your proficiency with graph traversal algorithms, tree properties, and efficient node distance calculations. You will learn how to approach hierarchical structures to find maximal spans without relying on a fixed root. Access to the complete problem breakdown and optimal model solution requires an active subscription.
Coding & Leetcode-style QuestionsVerkadaMinimum Flips to Match Expected Binary Values in a Tree
3/5Examine a tree manipulation puzzle reported as an interview question at UKG, where you must transform initial binary node states to match a target configuration using selective parity-based subtree operations. This challenge tests your grasp of tree traversals, recursive state propagation, and greedy optimization techniques. You will learn how to plan operation sequences efficiently to minimize total transformations. Unlock the complete problem details and optimal model solution with a subscription.
Coding & Leetcode-style QuestionsUKGPhone Screen: Word Search on Straight 8-Direction Lines
3/5This classic interview prompt from Uber tests your ability to locate hidden words moving strictly along linear paths in a two-dimensional grid across all eight compass directions. You must design an efficient traversal strategy to verify whether a target sequence can be formed without turning. This challenge sharpens your matrix navigation skills and recursive search logic. Access the comprehensive problem specification and optimized code solution by purchasing a subscription.
Coding & Leetcode-style QuestionsUberTree Points
4/5Navigating hierarchical structures while optimizing numerical outcomes is a frequent theme in advanced algorithm screenings, such as this reported D. E. Shaw interview question. Participants must evaluate a network of connected nodes, each possessing specific weights, and decide between distinct point-collection strategies that may propagate effects to neighboring vertices. The challenge evaluates your depth in tree-based dynamic programming and recursive state evaluation. The complete problem statement and verified model solution are available to subscribers.
Coding & Leetcode-style QuestionsD. E. ShawNumber of Islands and Grid BFS Variants
3/5This frequently reported ByteDance interview question evaluates your ability to navigate two-dimensional matrices using graph traversal techniques. You will be tasked with identifying distinct clusters of connected elements within a grid, alongside common variations such as computing region sizes and calculating boundaries. This exercise tests your proficiency in implementing breadth-first and depth-first search algorithms efficiently under constraints. To explore the complete problem statement, optimal algorithmic approaches, and fully working code implementations, a subscription is required.
Coding & Leetcode-style QuestionsByteDanceUser Action Log Journey Summary
3/5Analyzing user behavior patterns through hierarchical data structures is a key competency tested in interviews at companies like Whatnot. This problem involves processing chronological activity logs to reconstruct individual user navigation paths and aggregating those journeys into an efficient prefix tree. You will be evaluated on your ability to combine sorting, grouping, and trie traversal algorithms to generate structured categorical outputs. Unlock the complete problem statement and step-by-step model implementation by subscribing today.
Coding & Leetcode-style QuestionsWhatnotWord Search II
4/5Navigating multi-directional character matrices is a staple of technical screenings, as featured in this classic Uber interview challenge. The objective is to efficiently locate and extract all valid vocabulary terms hidden within a two-dimensional grid of letters based on adjacent cell connectivity rules. Solving this problem requires pairing backtracking search algorithms with prefix tree data structures to prune invalid paths early and ensure fast execution. Review the complete problem breakdown, underlying algorithmic principles, and verified code solutions by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsUberNumber of Islands (LC 200)
3/5Evaluating spatial traversal skills is common in technical screenings, highlighted by this Oracle phone-screen question equivalent to a well-known LeetCode problem. The objective requires tallying isolated land formations within a two-dimensional matrix using standard graph exploration techniques while meticulously documenting performance metrics. Candidates must demonstrate fluency in recursive or queue-based traversal patterns alongside precise time and space complexity analysis. Unlock the complete problem guide, step-by-step walkthrough, and production-ready solution by securing a paid subscription today.
Coding & Leetcode-style QuestionsOracleDelete a File System Subtree with Limited APIs
3/5This file system manipulation puzzle, featured in Datadog interviews, tasks developers with deleting an entire directory subtree using a severely restricted set of immutable application programming interfaces. Because deletion rules prevent removing non-empty directories directly, candidates must devise a reliable traversal strategy to clean up nested paths safely. This problem evaluates recursive problem-solving skills and meticulous edge-case handling within hierarchical structures. Gain immediate access to the full problem breakdown and expert solution with a subscription.
Coding & Leetcode-style QuestionsDatadogNumber of Islands and Total Island Perimeter
3/5Analyze a grid-based spatial environment to simultaneously determine distinct regional clusters and calculate their aggregate boundary lengths. This classic graph traversal puzzle has been featured in technical interviews at ByteDance, testing your proficiency with matrix traversal techniques and spatial reasoning. You will develop robust algorithms to inspect connected components efficiently. Gaining access to the full problem context and model solution requires a subscription.
Coding & Leetcode-style QuestionsByteDanceCar Maze with Incrementally Revealed Neighbors (DFS)
2/5Navigate an unknown environment using graph search strategies where pathways are only revealed dynamically upon visiting adjacent locations. This engaging navigation problem has been utilized in screening interviews at Waymo to assess recursion, state tracking, and exploration heuristics in the absence of global maps. You will practice adapting depth-first search for incomplete information spaces. The comprehensive problem description and verified solution require a subscription.
Coding & Leetcode-style QuestionsWaymoCourse Schedule (Can Finish All Courses)
3/5Based on a reported Visa interview question, this problem requires you to determine if a set of educational tasks with dependency constraints can all be completed successfully. The core challenge evaluates your understanding of graph theory, specifically cycle detection and topological sorting in directed graphs. You will need to model prerequisites effectively to verify whether a valid execution sequence exists. To view the complete problem statement and optimal model solution, a subscription is required.
Coding & Leetcode-style QuestionsVisaMaking a Large Island by Flipping One Zero
4/5Explore this engaging graph traversal challenge frequently featured in Meta technical interviews. Candidates are tasked with analyzing a grid matrix to determine the largest possible contiguous region of connected elements achievable after performing a single targeted modification. This problem evaluates your grasp of connected components, depth-first search strategies, and spatial reasoning under constraints. Master the underlying graph concepts to efficiently evaluate neighborhood expansions without brute-force recalculations. The complete problem description and model solution require a subscription.
Coding & Leetcode-style QuestionsMetaMinimum Link Reallocation to Connect Repositories
3/5Featured in an IBM technical interview, this graph theory problem requires calculating the fewest link reassignments needed to connect a network of isolated or fragmented repositories into a single component. You are given an undirected graph and must strategically relocate edges to achieve full connectivity while minimizing changes. The exercise tests your grasp of graph connectivity, component analysis, and spanning tree concepts. View the complete problem statement and a robust algorithmic solution with a subscription.
Coding & Leetcode-style QuestionsIBMReachable Nodes in a Directed Graph
3/5This reported interview question from SoFi evaluates your ability to traverse graph data structures while safely managing cycles and avoiding infinite loops. You will need to implement a routine that identifies every node accessible from a designated starting point, properly handling network connections. The exercise also probes your theoretical understanding of memory allocation differences between recursive traversal strategies and iterative queue-based approaches. To explore the complete problem statement, underlying edge cases, and a comprehensive model solution, a paid subscription is required.
Coding & Leetcode-style QuestionsSoFiPhoto Groups via Transitive Similarity
3/5This ByteDance interview question challenges engineers to partition a collection of visual items into distinct clusters based on transitive relational data. The exercise examines graph traversal techniques and disjoint-set data structures to efficiently compute connected components within a relationship matrix. Success depends on recognizing how equivalence relations translate into graph connectivity problems. To view the full problem statement along with the complete optimal implementation, a subscription is required.
Coding & Leetcode-style QuestionsByteDanceMaximum Depth of a Binary Tree
2/5This foundational tree-traversal problem, commonly asked during Amazon technical screenings, asks you to calculate the maximum depth of a binary tree represented via a level-order array format. It serves as an excellent test for recursion, tree traversal algorithms, and understanding hierarchical data structures. The complete problem statement, test cases, and clean code implementation are exclusively available with a paid subscription.
Coding & Leetcode-style QuestionsAmazonUser Journey Paths (Action Log Trie Summary)
3/5Analyzing sequential event logs to understand user behavior patterns is a common task in modern product engineering. Featured in technical rounds at Whatnot, this coding problem asks you to process user activity logs, chronologically sort individual event histories, and aggregate these trajectories into a specialized prefix tree structure. The challenge evaluates your data structure design skills, particularly in maintaining distinct user counts across hierarchical action nodes. Discover the full problem description, edge-case analysis, and fully tested reference implementation with an active subscription.
Coding & Leetcode-style QuestionsWhatnotBoundary of Binary Tree
3/5Encountered in Snowflake interview loops, this tree traversal problem requires you to extract the outer perimeter nodes of a hierarchical data structure in a specific counter-clockwise sequence. You will need to carefully handle left-edge nodes, leaf elements, and reversed right-edge nodes while properly managing edge cases like single-node trees. The exercise tests your structural comprehension and precise pointer manipulation. To view the complete problem breakdown and optimal code solution, a subscription is required.
Coding & Leetcode-style QuestionsSnowflakeNumber of Islands (BFS / DFS)
3/5Featured in Bridgewater interviews, this graph traversal challenge asks you to count distinct land clusters within a matrix grid where cells connect horizontally or vertically. You will explore systematic grid exploration techniques using either breadth-first or depth-first search paradigms to isolate connected components. The task is fundamental for evaluating recursion, graph traversal, and matrix handling skills. Accessing the full problem description and the step-by-step solution needs an active subscription.
Coding & Leetcode-style QuestionsBridgewaterWord Search in a Grid
4/5In this classic interview challenge reported from Amazon, you must determine whether a specific character sequence can be constructed by traversing adjacent cells in a matrix. Each location can be visited at most once per path, requiring careful state management during traversal. This problem tests your mastery of depth-first search, backtracking, and matrix navigation techniques. To view the complete problem statement, constraints, and the optimal solution code, a subscription is required.
Coding & Leetcode-style QuestionsAmazonRewrite Second Tree With Subtree Sums
3/5This Snowflake interview prompt requires you to transform a binary tree by replacing each node value with the aggregated sum of its corresponding subtree from a structurally identical reference tree. The exercise evaluates your grasp of recursive traversal techniques, tree synchronization, and parallel processing considerations for handling heavy computational workloads with limited resources. Designing an efficient propagation strategy is key to passing the evaluation. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsSnowflakeBinary Tree Vertical Order & Right Side View
3/5Tree traversal variations are staples of technical screenings at major tech firms, as explored in this Meta interview question. Candidates are challenged to extract specific perspectives of hierarchical nodes, such as vertical column groupings or elements visible from the outer flank. This problem tests your depth-first and breadth-first search mastery alongside custom coordinate mapping. Unlock the complete problem text and optimal solution with a subscription.
Coding & Leetcode-style QuestionsMetaValidate Binary Search Tree
3/5Explore how to analyze hierarchical tree structures to verify adherence to strict ordering rules, a classic graph traversal challenge frequently featured in technical evaluations at Pinduoduo. This exercise assesses your ability to recursively or iteratively enforce boundaries across descendant nodes while handling edge cases cleanly. Sharpen your algorithmic thinking for validating relational hierarchies efficiently. Access to the comprehensive problem description, optimal strategies, and complete code solutions requires a platform subscription.
Coding & Leetcode-style QuestionsPinduoduoGenerate Random NFT (DFS + Weighted Sampling)
3/5This Coinbase interview question explores combinatorial generation and probabilistic sampling through the lens of creating unique digital collectibles with distinct attributes. Candidates must implement algorithms capable of systematically building combinations and handling weighted selections across multiple categorical traits. It tests deep understanding of recursive search strategies, tree traversal, and stochastic data handling. Discover the complete problem walkthrough and comprehensive source code by securing a paid subscription.
Coding & Leetcode-style QuestionsCoinbaseN-ary Tree Sum + Leaf next Pointer
3/5In this multi-stage technical assessment from Citadel, candidates must work with custom tree structures, aggregate node values, and restructure references during traversal. The exercise progressively increases in difficulty, culminating in an optimized routine that rearranges pointers in constant auxiliary memory without relying on external collections. Tackling this problem demands strong pointer intuition and careful state management. Unlock the full problem description and expert code implementation with a paid subscription.
Coding & Leetcode-style QuestionsCitadelBoggle Game: Find All Dictionary Words in a 2D Board
4/5Faced during a technical interview at Chewy, this puzzle requires scanning a grid of letters in multiple directions to locate valid terms from a large vocabulary set. It tests your proficiency with recursive graph traversals, backtracking, and prefix tree data structures to prune invalid search paths early. Crafting an efficient solution demands careful handling of grid boundaries and character state tracking. Access the full problem details and the complete reference solution with an active subscription.
Coding & Leetcode-style QuestionsChewyMaximal Island Area in a Matrix
3/5In this Chewy interview question, you are given a binary grid and asked to determine the maximum expanse formed by connected groups of identical elements. The core challenge requires implementing graph traversal algorithms such as breadth-first search or depth-first search to map boundaries and compute aggregate regions efficiently. Additionally, you must construct robust validation test cases using random matrix generation tools to verify your code's correctness. Unlock the complete problem text, edge-case analysis, and expert model solution with a subscription.
Coding & Leetcode-style QuestionsChewyTrie Search Auto Completion
3/5This practical data structure exercise, encountered in Coursera technical rounds, focuses on building an efficient prefix tree to handle dictionary lookups and predictive text features. Alongside standard insertion and traversal operations, it specifically tests your awareness of object-oriented programming pitfalls, such as avoiding shared mutable state across class instances in Python. Developers must construct a clean, scalable taxonomy handler while preserving lexicographical ordering. The full problem specification and reference implementation are available exclusively to subscribers.
Coding & Leetcode-style QuestionsCourseraMaximum Completable Tasks with Prerequisites (Topological)
3/5Reported as an Oracle screening question, this graph-theoretic challenge requires determining the maximum number of milestones you can achieve given strict dependency constraints. Because certain pathways might contain circular dependencies, you must identify valid execution sequences using topological sorting principles. The puzzle evaluates your graph traversal skills and your ability to prune invalid branches efficiently. Unlock the complete problem text, underlying architectural patterns, and verified solution code with a subscription.
Coding & Leetcode-style QuestionsOracleTree Diameter
3/5Finding the longest possible distance between any pair of nodes in a hierarchical network is the focus of this graph theory challenge featured in Verkada interviews. You are tasked with analyzing an acyclic connected structure to determine its maximum span, which may not necessarily cross the central vertex. This problem tests your proficiency with recursive graph traversals, tree properties, and path optimization techniques. The complete problem statement, test cases, and a comprehensive model solution are available exclusively with a subscription.
Coding & Leetcode-style QuestionsVerkadaTree Diameter / Longest Path
3/5Featured as a common technical assessment topic at Meta, this graph theory challenge asks you to determine the maximum distance between any pair of vertices within a hierarchical tree structure. Whether applied to binary trees or generalized multi-child nodes, the exercise tests your mastery of recursive traversal techniques, depth-first search strategies, and how to compute path metrics efficiently across branching pathways. To explore the full problem statement along with a detailed code solution, an active subscription is required.
Coding & Leetcode-style QuestionsMetaKubernetes Service Filter and Dependency Chain
4/5This reported Apple interview question evaluates your ability to process infrastructure records by applying attribute filters, constructing and navigating dependency networks, checking operational states, and gracefully recovering from missing links or circular references. You will also explore how to adapt this backend logic into an agent-ready service wrapper while managing information overload. Access the complete problem statement, architectural considerations, and a fully tested reference implementation with a subscription.
Coding & Leetcode-style QuestionsApplePermutations with Self-Written Tests
3/5This foundational coding assessment, frequently encountered during SoFi technical screens, requires you to generate all possible arrangements of an array using recursive backtracking techniques. Beyond standard algorithmic implementation, the exercise emphasizes rigorous boundary testing, edge case identification, and writing your own verification methods from scratch. Unlock the complete problem description, testing best practices, and the optimized code solution by subscribing.
Coding & Leetcode-style QuestionsSoFiFile / Folder / Team Permissions — Fewest Grants
3/5This coding interview question, featured by Figma, requires you to evaluate hierarchical access control lists spanning teams, folders, and files to determine the minimal set of nodes needed to summarize a user's permissions. The exercise tests your tree traversal proficiency and object-oriented design skills when dealing with inherited privileges over unconventional data models. Access the full problem description, optimal traversal algorithms, and clean implementation code with a subscription.
Coding & Leetcode-style QuestionsFigmaWord Search II with Trie
4/5Master this popular ByteDance interview question focused on locating multiple dictionary terms inside a two-dimensional grid of letters. You will need to build an efficient prefix tree data structure and combine it with depth-first search traversal to explore adjacent matrix cells while avoiding duplicate finds. This problem evaluates advanced string matching, backtracking optimization, and spatial awareness. Unlock the full challenge details and professional code solution by getting a subscription.
Coding & Leetcode-style QuestionsByteDanceDependency Cycle Detection (Deadlock)
3/5Encountered frequently in Okta technical rounds, this problem asks you to analyze a directional resource dependency network to identify circular relationships that trigger deadlocks. It evaluates your graph traversal capabilities, specifically focusing on cycle detection algorithms using depth-first search or topological sorting techniques across interconnected components. Handling complex, disjointed networks cleanly is a hallmark of strong backend engineering. The full problem details and comprehensive model implementation require an active subscription.
Coding & Leetcode-style QuestionsOktaWalls and Gates / Max Area of Island
3/5This Meta interview question explores dual matrix traversal techniques, combining shortest path determinations and connected component measurements. You will work with two-dimensional grids to compute spatial distances from specific markers or measure the extent of contiguous regions using graph search algorithms like breadth-first or depth-first search. The problem tests your spatial reasoning, matrix manipulation skills, and optimization strategies for grid-based data structures. Explore the complete problem overview and comprehensive solution by purchasing a subscription.
Coding & Leetcode-style QuestionsMetaMaximum Island Perimeter
3/5Tackle this engaging matrix traversal challenge frequently asked in technical interviews at Snapchat. You are tasked with analyzing a binary grid representing land and water to locate all distinct land masses and compute their boundaries. Instead of simply counting components, your goal is to find the maximum perimeter across every identified region while efficiently handling edge cases like internal holes and boundary-touching components. Unlock the comprehensive problem description and optimal algorithmic solution with a paid subscription.
Coding & Leetcode-style QuestionsSnapchatReconstruct Itinerary
4/5Graph traversal and Eulerian path construction form the backbone of this intricate routing puzzle frequently utilized in Apple interview loops. Given a collection of directional travel vouchers, you must sequence them into a continuous journey starting from a specific hub while satisfying strict alphabetical sorting constraints. This scenario evaluates your depth-first search capabilities and familiarity with hierarchical path reconstruction algorithms. The full problem statement, algorithmic breakdown, and optimal code solution await subscribers.
Coding & Leetcode-style QuestionsAppleActivate Features with Prerequisites
3/5Examine this dependency resolution problem reported during Google technical interviews. Given a set of functionalities governed by strict prerequisite rules, your task is to compute a valid activation sequence or identify if circular dependencies make execution impossible. This question evaluates your understanding of directed acyclic graphs, topological sorting algorithms, and cycle detection techniques in real-world dependency trees. Strengthening your graph traversal skills is crucial for clearing top-tier software engineering loops. Unlock the complete problem context, optimal algorithmic strategy, and detailed reference code by purchasing a subscription.
Coding & Leetcode-style QuestionsGoogleSum Root-to-Leaf Numbers
3/5Explore this intriguing tree traversal problem frequently encountered in technical interviews at Meta. The objective is to evaluate numeric sequences formed by traversing hierarchical nodes from the uppermost starting point down to the terminal endpoints. This exercise tests your ability to navigate tree data structures efficiently and apply recursive logic to aggregate values. Discovering the optimal traversal strategy and implementing a clean algorithm will sharpen your recursive problem-solving skills. The complete problem statement and model solution require a subscription.
Coding & Leetcode-style QuestionsMetaFilter Nested Comments — Keep Matched Nodes and Descendants
3/5Tackle this Bobyard technical screening question centered around hierarchical tree filtering and traversal. Given a nested discussion forest and a specific match condition, you need to prune the structure so that any matching node—along with its entire subtree of descendants—is preserved while unrelated branches are discarded. This challenge tests your recursive programming abilities, tree manipulation techniques, and optimization strategies for linear time complexity. Unlock the complete problem details and model solution with a subscription.
Coding & Leetcode-style QuestionsBobyardPrint Comments Hierarchically by Parent-Child Relationship
2/5In this engaging coding exercise reported during Nextdoor interviews, engineers are tasked with organizing a flat collection of user remarks into a structured, tree-like hierarchy based on parent-child identifier relationships. The primary objective is to render these discussion threads correctly indented and sequentially ordered in the output. This challenge evaluates your proficiency in graph traversal, recursive thinking, and efficient data structuring using mapping techniques. To view the complete problem statement, detailed constraints, and a robust reference implementation, a paid subscription is required.
Coding & Leetcode-style QuestionsNextdoorDetonate Bombs with Chain Reactions
4/5This graph traversal challenge, frequently featured in Google interview loops, asks you to determine the maximum number of explosive devices you can detonate through cascading chain reactions starting from a single initial choice. Each device features a unique coordinate and blast radius that can trigger neighboring ordnance within range. The puzzle evaluates your graph modeling skills, breadth-first or depth-first search strategies, and geometric distance calculations. Access to the comprehensive problem statement, performance constraints, and complete model solution requires an active subscription.
Coding & Leetcode-style QuestionsGoogleImplement Minesweeper Game
3/5Recreate a classic arcade experience with this Clay interview question that asks you to build the core logic for a Minesweeper game. You will need to manage a dynamic grid, randomize hidden hazards, and implement recursive square-revealing behavior when empty areas are uncovered. This exercise assesses your matrix manipulation skills, state management, and ability to handle cascading game rules cleanly. Unlock the full implementation guide and comprehensive test cases by subscribing to our service.
Coding & Leetcode-style QuestionsClayLowest Common Ancestor of a Binary Tree
3/5This widely encountered technical interview question, frequently reported during hiring evaluations at Uber, challenges candidates to locate the deepest shared node of two specific targets within a hierarchical tree structure. The exercise evaluates your grasp of recursive traversal and structural navigation without relying on heavy auxiliary memory. You will need to efficiently traverse branches while tracking lineage relationships to isolate the correct intersecting point. Access to the complete problem description, comprehensive test cases, and an optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsUberValid 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 QuestionsByteDanceEvaluate Division
3/5In this classic coding interview question reported at Uber, you are given a set of proportional relationships between variables and must compute the outcomes of various division queries based on those known ratios. The exercise assesses your graph traversal skills, treating the variables as nodes and the given proportions as weighted directed edges. You will need to determine connectivity and calculate cumulative scaling factors dynamically. Read the entire problem statement and verified code implementation by joining with a subscription.
Coding & Leetcode-style QuestionsUberTree Node Deletion → Max Height
3/5Hierarchical data manipulation is a key theme in advanced algorithmic interviews, as demonstrated by this Snowflake tree modification challenge. Given an N-ary tree and a set of nodes targeted for removal, you must compute the maximum resulting height after bypassing deleted nodes and rerouting their descendants. This problem evaluates your depth-first search techniques, tree pointer restructuring, and recursive height calculations. To review the entire problem specification along with the step-by-step solution, a subscription is needed.
Coding & Leetcode-style QuestionsSnowflakeService Dependency Topological Order
3/5Tackle a classic graph traversal challenge frequently reported during technical screenings at Uber. Candidates are tasked with determining the correct sequence for executing interconnected tasks while accounting for upstream dependencies and cyclical relationships. The exercise heavily emphasizes algorithmic efficiency, requiring precise justifications for both processing time and memory overhead. Unlock the complete breakdown, optimal algorithmic strategy, and fully annotated source code by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsUberNumber of Islands (Plain and Streaming)
3/5Grid traversal and connected component identification are classic themes in technical evaluations, as seen in this reported Uber interview question. The objective is to compute distinct land masses within a matrix based on multi-directional adjacency rules, alongside a challenging dynamic update follow-up where terrain modifies iteratively. This problem tests your graph exploration abilities and proficiency with disjoint-set data structures to maintain real-time aggregates efficiently. Preparing for this scenario sharpens your algorithmic thinking for spatial data challenges. To view the full problem description and expert model solution, a subscription is required.
Coding & Leetcode-style QuestionsUberLongest Univalue Path
3/5Tackle a classic tree traversal problem often featured in Snowflake technical screenings, where you must find the longest continuous sequence of identical values within a binary tree. This challenge assesses your ability to design recursive algorithms that compute metrics across arbitrary branches rather than strictly from root to leaf. You will need to carefully track state and handle overlapping subpaths efficiently. The complete problem description and expert model solution require a subscription.
Coding & Leetcode-style QuestionsSnowflakeCount Palindrome-Formable Paths in a Tree
5/5As a challenging interview question reported from Uber, this task delves into advanced tree traversal and bit manipulation strategies. You must analyze hierarchical network paths to discover how many node pairs possess edge characters that can be rearranged to form a symmetric sequence. This problem evaluates deep recursive thinking and efficient state tracking. Access to the full problem description and the complete model solution requires a subscription.
Coding & Leetcode-style QuestionsUberCurrency Exchange Rate Converter
3/5Derived from Stripe's technical screening process, this problem asks you to calculate direct and optimal multi-hop conversion ratios across a network of interconnected currencies. The assessment examines your graph theory knowledge, specifically regarding shortest or most valuable path computations where edge directions and reciprocals matter. To review the full problem context, mathematical properties, and working implementation, consider subscribing today.
Coding & Leetcode-style QuestionsStripeCourse Schedule Cycle Detection
3/5Tackle this essential graph theory problem featured in Snapchat interviews, which centers on dependency resolution and cycle detection. Given a set of tasks and their prerequisites, your goal is to determine if a valid completion order exists without running into circular blocks. This challenge tests your knowledge of depth-first search and topological sorting algorithms. Access to the full problem text and clean implementation details requires a subscription.
Coding & Leetcode-style QuestionsSnapchatPre-order Traversal Skipping Invalid Nodes
2/5This Snowflake interview question asks you to implement a modified pre-order tree traversal that handles disconnected or skipped nodes. You will need to process hierarchical data where specific elements are marked as inactive, ensuring that their descendants are still visited in the correct sequence through their nearest active ancestors. This exercise tests your recursive depth-first search logic and ability to manipulate parent-child relationships efficiently. Unlock the full problem description and complete model solution with a subscription.
Coding & Leetcode-style QuestionsSnowflakeWord Search With Diagonals and Reuse
3/5Reported as an Amazon interview problem, this challenge expands upon the classic grid search by allowing movement in all eight directions as well as the reuse of individual cells. You are required to determine whether a target string can be constructed through a continuous path of adjacent characters on a two-dimensional board. This task tests your depth-first search capabilities, recursion depth management, and grid traversal techniques. Gain immediate access to the full problem text and optimal model solution with a subscription.
Coding & Leetcode-style QuestionsAmazonCourse Schedule (Topological Sort)
3/5Featured as a technical interview question at eBay, this problem evaluates your ability to model and solve prerequisite dependency graphs. Given a set of courses and their required ordering constraints, you must determine whether it is possible to complete all subjects without hitting a circular dependency, and if so, generate a valid sequential schedule. This is a classic application of topological sorting techniques in directed graphs. The full problem statement, edge cases, and optimized solution require a subscription.
Coding & Leetcode-style QuestionseBayWord Pattern / Meta-Pattern Match (Backtracking)
3/5This Vanta interview challenge explores an advanced pattern-matching variant where numeric tokens must consistently align with words in a candidate string, with follow-ups introducing set-based allowed values solved via backtracking. It evaluates your skills in managing bi-directional mappings, constraint propagation, and recursive search algorithms. Upgrade your account to unlock the full problem breakdown and the detailed model solution.
Coding & Leetcode-style QuestionsVantaTrie-Based Autocomplete
3/5Reported during Oracle interviews, this problem asks you to build a robust predictive text lookup service using a dictionary dataset and prefix queries. Beyond basic retrieval, the evaluation heavily emphasizes clean architecture, requiring a strict separation of concerns between the underlying tree structure and the service logic, with potential follow-ups involving frequency-based ranking. It tests both your data structure design skills and your commitment to maintainable code. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsOracleNumber of Islands Variant
3/5This classic grid traversal puzzle is featured as a reported interview question from Illumio. The challenge requires you to analyze a two-dimensional matrix filled with binary values representing land and water, where adjacent land cells group together to form distinct territories. Your goal is to accurately compute the total number of independent land masses using standard matrix exploration techniques. This question tests your foundational depth-first or breadth-first search implementation abilities. Unlock the full problem details and expert model solution with a subscription.
Coding & Leetcode-style QuestionsIllumioLongest Zigzag Path in a Grid
3/5In this engaging graph exploration task reported during ByteDance interviews, you must locate the longest alternating sequence moving through a matrix of numerical values. The challenge tests your depth-first search or dynamic programming capabilities under strict directional change rules, ensuring no cell is visited twice while values bounce up and down. It assesses your capacity to navigate complex grid topologies with conditional transition states. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsByteDanceImplement a DAG Utility Class (Add Edges, Validate, and Query)
3/5Featured in recent Notion interviews, this coding challenge requires you to design a robust directed acyclic graph utility to manage task dependencies. You will implement methods to dynamically insert edges while actively preventing circular relationships, verify graph integrity, and determine proper execution sequences. This problem tests your grasp of graph theory, cycle detection algorithms, and object-oriented design principles. Access the comprehensive problem specification and the optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsNotionShortest Path in a Grid (DFS/BFS) with DFS Backtracking + Memo/DP Follow-up
3/5This AppLovin interview question tests your pathfinding expertise by asking you to find the shortest route between two designated points on a grid obstructed by barriers. You will need to implement traversal strategies, compare search paradigms, and handle edge cases where destinations are unreachable. The exercise evaluates your proficiency with graph traversal algorithms and optimization techniques like memoization. Get full access to the complete problem breakdown and the verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsAppLovinWord Search in a 2-D Grid
3/5This Snowflake interview question evaluates your ability to navigate a character matrix along contiguous horizontal and vertical paths to locate a specific sequence. Candidates must demonstrate proficiency in backtracking and graph traversal techniques to efficiently check possible routes without reusing identical grid positions. Access to the comprehensive problem description and optimal algorithmic implementation requires a subscription.
Coding & Leetcode-style QuestionsSnowflakeTask Dependency Resolution (Topological Sort)
3/5Reported during interviews at Vanta, this challenge requires you to compute a correct execution sequence for a collection of interdependent jobs. It tests your proficiency with graph traversal algorithms, cycle detection, and topological sorting within a practical build-system context. You must filter and order tasks properly while eliminating redundancies to ensure a reliable deployment workflow. Access to the comprehensive problem breakdown and verified solution code requires an active subscription.
Coding & Leetcode-style QuestionsVantaFind Path Between Two Nodes in a Binary Tree
3/5This Ripple interview question requires you to traverse a binary tree structure to locate and reconstruct the sequential route connecting two distinct nodes. The problem assesses your recursion techniques, tree navigation abilities, and skill in tracking ancestry paths efficiently. Unlock the full problem specifications and a clean, tested model solution by securing your subscription.
Coding & Leetcode-style QuestionsRippleNumber of Islands (grid connected components)
3/5This classic Samsung interview challenge requires you to determine the total count of distinct connected components formed by adjacent land cells within a two-dimensional binary matrix. You will need to apply graph traversal strategies like depth-first search or breadth-first search to explore and mark visited regions effectively. Access the complete problem breakdown, constraints, and optimal solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsSamsungMax Value Range Across Connected Components
3/5Evaluating graph connectivity and analyzing structural extremes forms the foundation of this engaging Amazon interview question. You are tasked with examining a network of vertices and edges, grouped into distinct components, to find the maximum disparity between node values across any single component. This problem assesses your ability to traverse graph topologies efficiently while tracking aggregate statistics within clusters. Solving this cleanly demonstrates strong command over fundamental graph algorithms and data structures. To view the complete breakdown and optimal code solution, please consider subscribing.
Coding & Leetcode-style QuestionsAmazonGraph Traversal (Nodes Reachable from a Start)
2/5Traversing graph topologies to discover connected nodes is the core objective of this WeRide interview question, which requires finding every reachable vertex starting from a specific origin in an undirected network. This exercise evaluates your understanding of fundamental graph traversal strategies, such as depth-first or breadth-first search, alongside proper result formatting and duplicate prevention. Demonstrating fluency in these traversal patterns is vital for tackling complex pathfinding challenges. Access to the full problem description and optimal model solution requires a paid subscription.
Coding & Leetcode-style QuestionsWeRideCalculate Total Ownership Percentage in a Subsidiary Graph
3/5Analyzing corporate hierarchies and multi-tier equity stakes is a classic graph problem featured in Veeva Systems technical interviews. This task requires computing cumulative ownership stakes across a directed acyclic network, where corporate entities can hold shares through multiple intermediary paths. You will need to aggregate these fractional holdings accurately by multiplying pathway probabilities and combining parallel contributions. Access to the full problem description, edge-case validations, and expert-written model solution requires an active subscription.
Coding & Leetcode-style QuestionsVeeva SystemsReconstruct Itinerary (LC 332)
3/5Reported as a Pinterest interview favorite, this graph traversal challenge examines your proficiency with Eulerian paths and deterministic routing. You are tasked with charting a complete travel sequence across multiple flight connections while adhering to specific alphabetical ordering constraints and handling complex cycle conditions. Mastering this puzzle goes beyond standard traversal templates to test deep structural insights. To view the complete problem statement and verified model solution, a subscription is required.
Coding & Leetcode-style QuestionsPinterestBoard Score — Connected Areas × Crowns
3/5This Airbnb coding interview question requires calculating an aggregate score for a grid containing multi-attribute tiles encoding category types and value weights. Candidates must identify maximal connected components of identical terrain types, aggregate internal point distributions, and compute a final metric based on region size and cumulative values. Reviewing the complete problem details, graph traversal strategies, and the verified model solution requires an active platform subscription.
Coding & Leetcode-style QuestionsAirbnbService Load Factor / Referral Count
3/5This popular Robinhood technical screen evaluates your proficiency with directed acyclic graphs by asking you to calculate the total downstream dependencies for every node in a network. Interviewers use this task to assess how well you traverse hierarchical relationships and compute cumulative metrics efficiently. To view the complete prompt, constraints, and professional model solution, a subscription is required.
Coding & Leetcode-style QuestionsRobinhoodMaximum-Sum Path in a Matrix Without Revisiting Cells
5/5This Goldman Sachs interview challenge asks you to discover an optimal trajectory through a grid containing positive and negative numbers without stepping on any coordinate more than once. It heavily tests advanced dynamic programming, backtracking, and state management strategies for matrix navigation. To access the complete problem description and optimal algorithmic solution, a subscription is required.
Coding & Leetcode-style QuestionsGoldman SachsRange Sum of BST
2/5This classic tree traversal task, commonly asked in technical rounds at Meta, requires you to calculate the aggregate value of nodes residing within a specified numerical interval. The exercise evaluates your grasp of hierarchical data structures and optimal traversal strategies that bypass unnecessary branches based on ordering constraints. Mastering this problem enhances your ability to write efficient recursive or iterative algorithms that scale effectively with tree height rather than total node count. Unlock the full problem statement, advanced follow-up discussions, and a complete code solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsMetaManager With Highest Average Salary Among Reports
3/5This Amazon interview question focuses on hierarchical data processing and aggregation over employee reporting structures. You must compute statistical metrics for direct reports to identify top-performing managers, as well as aggregate performance across entire organizational trees. The challenge tests your graph traversal capabilities, recursive thinking, and efficient database or in-memory grouping techniques. Gain access to the complete challenge description and professional model solution by purchasing a subscription.
Coding & Leetcode-style QuestionsAmazonMaximize Currency After Two Days of Conversions
3/5This Rippling interview question requires maximizing asset value across sequential conversion stages governed by multi-day exchange rates and bidirectional trade options. Candidates must devise a robust strategy to navigate state transformations and compound multiplicative gains over time. Unlock the complete problem context, mathematical modeling strategies, and optimal implementation by subscribing.
Coding & Leetcode-style QuestionsRipplingFlatten Nested JSON / HashMap to String
3/5This technical coding challenge commonly seen at Salesforce examines your ability to manipulate hierarchical structures using recursion or iterative traversal. You are asked to transform a deeply nested associative structure into a single-level layout utilizing dot-separated keys for leaf elements. This tests your proficiency in handling diverse data types, managing recursive base cases, and restructuring complex information cleanly. Unlock the full problem details and optimal algorithmic solution with our comprehensive subscription.
Coding & Leetcode-style QuestionsSalesforceService Failure Forensics: Logs and Dependencies
3/5Investigate complex system outages by analyzing sorted log files and dependency graphs in this multi-part Snowflake interview exercise. You will apply binary search techniques to pinpoint initial failure indicators and employ graph traversal strategies to map cascading service disruptions across a distributed architecture. This task thoroughly tests your diagnostic thinking and algorithmic efficiency. Access to the full problem text and complete model solution requires a subscription.
Coding & Leetcode-style QuestionsSnowflakeCourse Schedule: Can All Courses Be Finished
3/5Conquer a foundational graph theory challenge frequently encountered in Apple technical interviews. Given a set of courses and their prerequisite dependencies, your objective is to determine whether it is possible to successfully complete all subjects without running into circular blocks. This problem tests your proficiency in cycle detection and topological sorting algorithms using directed graphs. Gain access to the comprehensive problem statement, optimal algorithmic patterns, and verified code solutions with a subscription.
Coding & Leetcode-style QuestionsAppleSpreadsheet / Formula Engine
3/5Asked during a technical interview at Harvey, this problem challenges you to construct a miniature grid computation engine capable of managing cell values and simple arithmetic formulas. The task tests your expertise in dependency graph construction, topological sorting, and cycle detection to prevent recursive formula deadlocks. Implementing swift read operations while propagating updates through dependent cells requires careful architectural planning. Review the complete problem statement and professional model solution with a subscription.
Coding & Leetcode-style QuestionsHarveyGrid Pathfinding with Walk and Jump Cells
3/5This Roblox interview question presents a grid pathfinding puzzle where movement mechanics depend entirely on the type of cell the player currently occupies. You must navigate between walk and jump squares while avoiding obstacles and leaping over intermediate cells to reach a target destination. The problem tests your advanced graph traversal and state-aware shortest-path algorithms on a matrix. Unlock the full problem details and expert model solution with a paid subscription.
Coding & Leetcode-style QuestionsRobloxCart Routes Origin Destinations
3/5This Atlassian interview question examines graph traversal and connectivity analysis by asking you to map out delivery routes for autonomous factory carts. Given a collection of directed path segments, you must identify all foundational starting points and trace every reachable terminal destination downstream. The evaluation focuses on your proficiency with graph structures, node relationships, and pathfinding logic. Access the full problem specifications and complete algorithmic solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsAtlassianGet Most Hydrated Team
3/5Featured in Airtable engineering interviews, this organizational hierarchy challenge requires determining which corporate branch maintains the highest beverage consumption average. Given employee records and reporting structures that form tree-like networks, you must aggregate metrics across reporting lines to find the winning group. The task assesses your proficiency in tree traversal, recursion, and hash-based data aggregation. Unlock full access to examine the complete problem statement, constraints, and an optimal code solution.
Coding & Leetcode-style QuestionsAirtableSmallest String Starting From a Leaf
3/5Featured in Amazon technical screenings, this tree traversal puzzle challenges you to identify the alphabetically first character sequence formed by traveling from any bottom-most node up to the root. It tests your ability to navigate hierarchical structures while managing string comparisons efficiently. Unlock the full problem description and comprehensive solution by getting a subscription.
Coding & Leetcode-style QuestionsAmazonCourse Schedule and Topological Sort on a Directed Graph
3/5Graph theory and dependency resolution are core competencies evaluated during engineering interviews at industry giants like ByteDance. This interview question requires you to analyze a directed network to identify cyclic dependencies and establish a valid sequential workflow order. It tests your mastery of traversal strategies, cycle detection algorithms, and in-degree tracking techniques. Review the full problem guidelines and optimal algorithmic solution by obtaining a subscription.
Coding & Leetcode-style QuestionsByteDanceRoot-to-Leaf Path Sum and All Matching Paths
3/5In this coding problem reported from Hudson River Trading, you are asked to analyze hierarchical tree structures to find specific numerical trajectories. The primary task is to identify whether a continuous path from the root node to a terminal leaf accumulates to a given target sum, with a follow-up requirement to extract all such matching routes. This exercise evaluates your proficiency with depth-first search, backtracking, and tree traversal patterns. To access the complete problem requirements, constraints, and verified solution, a subscription is required.
Coding & Leetcode-style QuestionsHudson River TradingBinary Tree Right Side View
3/5This tree traversal exercise, often highlighted in software engineering interviews at ByteDance, requires you to extract the outermost visible nodes of a hierarchical structure from a lateral perspective. The task evaluates your mastery of tree traversal techniques, such as breadth-first search and depth-first search, while managing custom data structures and manual test case setup. Access the complete problem description, complexity analysis, and clean code solutions with a subscription.
Coding & Leetcode-style QuestionsByteDanceSerialize and Deserialize Binary Tree
4/5As a classic Amazon interview challenge, this problem requires you to design a mechanism for converting a hierarchical tree structure into a flat representation and back without losing any structural integrity. It tests your understanding of tree traversal algorithms, serialization protocols, and recursive data reconstruction. You must ensure that null nodes and branching paths are preserved accurately through the round-trip conversion. Examining the full problem text and the complete model solution requires a subscription.
Coding & Leetcode-style QuestionsAmazonWord Search
3/5This Glean interview question tests graph traversal and backtracking strategies on a two-dimensional character grid. Applicants must determine whether a specific text sequence can be formed by following adjacent horizontal and vertical steps without reusing the same matrix cell. This classic problem evaluates your mastery of depth-first search, state tracking, and recursive pathfinding optimization. Review the comprehensive explanation and complete solution code by acquiring a subscription.
Coding & Leetcode-style QuestionsGleanSerialize and Deserialize Binary Tree with N-ary Follow-up
3/5Prepare for this Uber engineering interview challenge by mastering custom encoding and decoding mechanisms for hierarchical data structures. This evaluation assesses your ability to write clean, executable code while designing robust representations that preserve node relationships. You will also need to formulate your own test scenarios to validate correctness under edge cases. Furthermore, a natural extension requires you to generalize your algorithm to handle nodes with an arbitrary number of descendants. Unlock the complete problem description and an expert-crafted model solution with a subscription.
Coding & Leetcode-style QuestionsUberMinesweeper Reveal
3/5Practice this Pinduoduo coding interview challenge where you must simulate state transitions on a two-dimensional grid based on user interaction coordinates. The task evaluates your graph traversal skills, recursion or queue management, and ability to handle cascading reveals when interacting with blank areas or numbered safety clues. You must carefully manage different cell states and boundary conditions to ensure accurate board updates. Unlock the complete problem statement and an optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsPinduoduoBinary Tree Maximum Path Sum (with path reconstruction)
4/5This advanced interview task, highlighted by ByteDance, extends the traditional tree traversal challenge by asking you to locate the highest-scoring traversal route and reconstruct the exact node sequence. Handling negative values and branching paths requires sophisticated recursive tracking and state management. The exercise tests your deep comprehension of tree-based dynamic programming and pointer manipulation. Access to the full problem details and a production-grade model solution requires an active subscription.
Coding & Leetcode-style QuestionsByteDanceChain of Command
3/5Explore this organizational hierarchy challenge reported during interviews at IMC Trading. The task involves navigating a corporate tree structure to determine which employee receives a directive based on a specific propagation sequence and query parameter. This exercise tests your ability to handle tree traversal, parent-child relationships, and efficient indexing strategies. Access to the comprehensive problem statement and verified model solution requires a subscription.
Coding & Leetcode-style QuestionsIMC TradingFind Sizes of Connected Components in Undirected Graph
3/5In this C3.ai technical assessment, you are tasked with analyzing network relationships represented as an undirected graph. The objective is to partition the nodes into distinct subgraphs and compute the exact population size of each isolated cluster. This exercise evaluates your proficiency with graph traversal algorithms, such as depth-first search or disjoint-set data structures. Access the complete problem description and a comprehensive model solution by purchasing a subscription.
Coding & Leetcode-style QuestionsC3.aiClassify Tree Node Relationship: Sibling, Cousin, or Other
2/5In this Amazon coding assessment, you are asked to analyze hierarchical relationships within an n-ary tree structure for a pair of designated node values. Rather than working with binary trees, your algorithm must evaluate node depths and parent linkages to determine whether the targets share a direct parent, reside at identical depths under different branches, or fall into other structural categories. The complete problem statement, test cases, and optimal tree-traversal solution require a subscription.
Coding & Leetcode-style QuestionsAmazonRobot Vacuum 8-Direction Grid
3/5In this multi-phase traversal challenge frequently featured at Pinterest, you must track the movement of an automated cleaning device across a two-dimensional grid in eight possible directions. The task ramps up in complexity from navigating an unobstructed area to handling a blocked partition and finally coordinating the simultaneous paths of two cooperating units. This puzzle thoroughly tests your mastery of graph exploration algorithms and state-space search strategies. Unlock the full problem statement and complete code implementation with a paid subscription.
Coding & Leetcode-style QuestionsPinterestChain Booking — Max Cascading Reservations
3/5This Airbnb interview question presents a fascinating cascading reservation puzzle where selecting a single starting point triggers a chain reaction of bookings based on spatial radii. Candidates must model the listings as a graph and determine the optimal initial choice that maximizes the total number of activated nodes through recursive propagation. The challenge assesses advanced graph traversal, connectivity, and optimization skills. Unlock the complete problem requirements and the optimal algorithmic solution by subscribing.
Coding & Leetcode-style QuestionsAirbnbBinary Tree Maximum Path Sum (Tree Kadane)
4/5Featured frequently in Adobe technical rounds, this tree-based challenge requires finding the maximum possible sum along any continuous path within a binary tree where nodes can hold negative integers. Unlike traditional root-to-leaf traversals, the path can start and end at arbitrary nodes, demanding a dynamic programming approach akin to Kadane's algorithm adapted for hierarchical structures. This problem thoroughly tests your recursion, tree manipulation, and optimal substructure identification skills. Get full access to the problem description and expert solution with a subscription.
Coding & Leetcode-style QuestionsAdobeBinary Search Tree Pruning
3/5Reported as a technical interview question at PayPal, this problem involves cleaning up a binary search tree by systematically removing all nodes that fall below a specified numerical threshold along with their descendant branches. The exercise examines your grasp of recursive tree traversal, conditional node deletion, and structural maintenance in hierarchical data types. Unlocking the complete problem details and verified model solution requires a subscription.
Coding & Leetcode-style QuestionsPayPalDebug Feature Enablement With Dependencies
3/5Faced during Google coding evaluations, this dependency-resolution task requires you to validate feature activation requests against complex prerequisite networks. You must accurately trace transitive relationships, identify missing prerequisites, and detect problematic circular dependencies that prevent proper system initialization. The exercise assesses your graph traversal proficiency and error-handling design in configuration systems. Unlocking the complete problem text and the expert-crafted model solution requires a subscription.
Coding & Leetcode-style QuestionsGoogleMax Area of Island
3/5Explore spatial navigation and matrix manipulation in this popular coding challenge often asked during Meta technical interviews. Given a two-dimensional map populated with land and water segments, you are asked to measure the extent of the most expansive contiguous landmass formed through orthogonal connections. This exercise tests fundamental matrix traversal patterns using recursive or iterative exploration techniques. To view the complete problem statement along with the optimal software solution, a subscription is required.
Coding & Leetcode-style QuestionsMetaChoice Options to Ending Rooms
3/5Navigate a system of interconnected pathways and choices to determine which destination chambers are ultimately accessible from a starting point. Originally featured in a technical screening for SoFi, this problem evaluates your ability to model state transitions and traverse complex networks using fundamental search algorithms like breadth-first or depth-first search. Candidates must handle branching logic and cyclical paths efficiently. Access to the comprehensive problem breakdown and verified model solution requires an active subscription.
Coding & Leetcode-style QuestionsSoFiGraph Distance / Connectivity (MLE Phone Variant)
3/5Explore large-scale network connectivity and shortest-path determinations framed within a social and content-sharing ecosystem, as reported in machine learning engineering interviews at Pinterest. This challenge tests your expertise in handling vast graph structures, evaluating node relationships, and optimizing traversal queries under constraints. You will need to apply advanced data structures and pathfinding techniques to succeed. Unlock the complete problem statement and optimal algorithmic solution with a paid subscription.
Coding & Leetcode-style QuestionsPinterestMinesweeper Board Update
3/5Featured in a Nuro coding assessment, this problem simulates the classic Minesweeper mechanics where a user click triggers board updates, revealing empty zones, mine counts, or hidden dangers. You must apply recursive traversal or breadth-first search techniques to propagate revealing moves correctly according to adjacent mine clues. This challenge evaluates your grid traversal proficiency and state-machine implementation skills. To read the complete problem statement and study the optimal solution, a subscription is required.
Coding & Leetcode-style QuestionsNuroLongest Consecutive Path in Binary Tree
3/5Navigating tree structures to find sequential values is a classic algorithmic challenge frequently featured in technical evaluations at Google. This problem asks you to discover the longest continuous path where node values increment step-by-step, starting from parents and moving down to their descendants, with potential follow-up complexities involving multidirectional traversals. It tests your proficiency with recursive traversal patterns, depth-first search strategies, and state tracking across branches. Unlock full access to this challenge and its detailed model solution with a paid subscription.
Coding & Leetcode-style QuestionsGoogle2D Points Connected Components by Radius
3/5Tackle a geometric clustering problem where spatial coordinates must be grouped based on a proximity threshold, a classic coding interview question encountered at Google. This challenge tests your proficiency with graph traversal techniques and disjoint-set data structures to efficiently determine transitive relationships among coordinates. You will practice optimizing neighborhood scans and managing spatial connectivity to compute the final cluster count. Unlock the comprehensive breakdown and fully optimized model solution with a subscription.
Coding & Leetcode-style QuestionsGoogleFind Largest House Area
2/5In this HSBC interview question, you are given a grid representation of a residential neighborhood and asked to find the largest contiguous cluster of structure cells representing a single house. Diagonal connections are excluded, meaning you must accurately identify connected components using standard traversal techniques. The task evaluates your graph traversal and matrix manipulation skills. To access the complete problem requirements and the optimal algorithmic solution, a subscription is required.
Coding & Leetcode-style QuestionsHSBCBlack and White Chess Largest Connected Region
3/5This Hudson River Trading interview question requires you to analyze a two-dimensional grid of dual-tone elements and determine the dimensions of the largest contiguous cluster of matching items. This task assesses your capability in applying breadth-first search or depth-first search traversal techniques over matrix structures to group adjacent elements effectively. Discover the complete problem guidelines and optimized code implementation by unlocking our full content.
Coding & Leetcode-style QuestionsHudson River TradingNumber of Good Pairs
3/5In this Commvault interview question, you are given an undirected graph and asked to calculate the total number of node pairs that reside in completely separate connected components. The challenge requires you to analyze graph topology and effectively group vertices to determine reachability between disconnected regions. It is an excellent test of graph traversal algorithms and disjoint-set data structures. Unlock the full problem details and the optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsCommvaultTrie Prefix Search / Autocomplete
3/5This Google interview staple tests your ability to construct a prefix tree data structure to facilitate rapid autocomplete lookups and lexicographical sorting from a vocabulary dictionary. It evaluates your pointer management and tree traversal skills under standard search constraints. Access to the full problem statement and an optimal model implementation requires a subscription.
Coding & Leetcode-style QuestionsGoogleAccounts Merge
3/5This popular Electronic Arts interview question challenges you to consolidate overlapping user identities based on shared contact details. You will be given multiple profile records containing names and email addresses, and your goal is to group accounts that belong to the same individual and organize their communication channels alphabetically. This problem effectively tests graph traversal and set management skills. Unlock the full problem description and comprehensive solution by getting a subscription.
Coding & Leetcode-style QuestionsElectronic ArtsEmployee Training Status + Group Tree Aggregation
3/5This Vanta interview problem requires you to evaluate employee compliance status regarding security training across specified windows and aggregate these metrics hierarchically across organizational group trees. You will build logic to compute exact overdue days for individuals and roll those statistics upward to calculate cumulative headcounts and total delays for overarching departments. The challenge tests your ability to handle date arithmetic alongside recursive tree traversal and data aggregation. Access the full problem details and a clean model solution by subscribing today.
Coding & Leetcode-style QuestionsVantaCount Islands per Distinct Number
3/5This grid traversal problem, commonly asked at Amazon, requires you to analyze a matrix containing various integer values and count isolated connected components for each unique identifier. It tests your proficiency with graph search algorithms and spatial indexing structures to properly categorize multi-valued spatial regions. To view the full problem statement and clean code solution, please upgrade to a paid subscription.
Coding & Leetcode-style QuestionsAmazonNested List Weight Sum
2/5This frequently asked Amazon interview question challenges you to process hierarchically structured numerical data. You must compute a depth-weighted total by multiplying each embedded value by its specific level of nesting. The task is an excellent exercise for testing recursion, tree traversal, and depth-tracking algorithms. Unlock the complete problem statement and optimal model solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonBinary Tree Right-Side View
3/5Traversing hierarchical tree structures to extract specific perspectives is a fundamental algorithmic task frequently asked in technical screenings at Amazon. This coding challenge requires you to determine which nodes remain visible when observing a binary tree exclusively from the right edge, moving top to bottom. You will need to implement an efficient traversal strategy to capture the correct elements. Access to the full problem text and optimal solution code requires a subscription.
Coding & Leetcode-style QuestionsAmazonTree Distance Sum (Re-root DP)
4/5Reported as a Google onsite coding challenge, this problem requires calculating the sum of shortest-path distances from every single node to all other vertices in an undirected tree. You will explore an initial naive traversal approach before optimizing toward an efficient linear-time solution using advanced tree dynamic programming techniques often known as re-rooting. Solving this task highlights your mastery of tree properties and dynamic programming optimization strategies. Read the full problem specification and examine the complete reference solution with a subscription.
Coding & Leetcode-style QuestionsGooglePrint All Root-to-Leaf Binary Tree Paths
2/5In this tree traversal challenge reported from Capital One, candidates must explore hierarchical structures to discover every valid path from the root node down to the leaves. The exercise tests your grasp of recursive traversal strategies, state accumulation, and orderly result formatting following pre-order conventions. Handling edge cases such as sparse or unbalanced trees is essential for passing the evaluation. To examine the complete problem guidelines and the reference implementation, a paid subscription is necessary.
Coding & Leetcode-style QuestionsCapital OneCount Subtrees with Height-Diff <= 1 and Even Sum
3/5In this technical interview problem reported at eBay, candidates must analyze a binary tree structure to identify specific subtrees that satisfy dual structural and numerical conditions. The task tests your proficiency with recursive tree traversals, height balancing checks, and conditional value aggregation across nodes. You will need to carefully track subtree dimensions and parity constraints simultaneously to arrive at the correct count. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionseBayIn-order Traversal of a Binary Tree
2/5In this classic interview question reported by BlackRock, you are asked to process a hierarchical tree structure and retrieve its nodes in a specific left-root-right sequence. The challenge evaluates your understanding of recursive programming and tree navigation techniques. Both iterative and recursive strategies are commonly explored during the evaluation. To access the complete problem requirements and reference implementation, please subscribe.
Coding & Leetcode-style QuestionsBlackRockCalculate Total Size of Files in Nested Directories
2/5Explore how to traverse hierarchical file systems and compute cumulative byte counts in this Datadog interview question. Candidates will practice handling recursive data structures and aggregating numerical properties across arbitrary tree depths. This challenge evaluates tree traversal techniques and clean implementation habits. Access the complete problem description and model solution with a subscription.
Coding & Leetcode-style QuestionsDatadogMinimum Edge Reversals from Every Root
4/5Navigate complex tree transformations in this advanced graph problem reported during an Uber interview. You are tasked with finding an optimal root placement that minimizes edge direction adjustments to ensure reachability across all nodes. This problem tests advanced tree dynamic programming and rerooting algorithmic patterns. Access the full problem details and expert solution with a subscription.
Coding & Leetcode-style QuestionsUberShortest Bridge Between Two Islands
3/5This Apple interview puzzle requires you to find the shortest path of transformed cells needed to bridge two distinct landmasses within a grid. The task tests your graph traversal capabilities, specifically combining breadth-first search with connected component identification and matrix manipulation. You will need to efficiently expand outward from one territory until reaching the other. Gain full access to the complete problem statement and verified solution by subscribing today.
Coding & Leetcode-style QuestionsAppleURL Access Reachability
3/5This graph connectivity problem, documented from Amazon technical interviews, involves determining whether a path exists between two specific nodes within a network of directed links. Given a collection of source-destination relationships, your task is to verify reachability efficiently. This exercise evaluates your understanding of graph traversal algorithms, such as depth-first or breadth-first search, and graph representation techniques. Reviewing the complete prompt and optimal solution requires an active subscription.
Coding & Leetcode-style QuestionsAmazonTree Preorder Merge
2/5Reported from Hudson River Trading interviews, this exercise requires combining two distinct binary trees by summing overlapping node values while preserving unique branches. Once the structures are successfully merged, you must traverse the resulting tree in a specific root-left-right order to generate the final collection of integers. This question evaluates your proficiency in recursive tree traversal and structural manipulation. The full problem details and optimal code solution require a subscription.
Coding & Leetcode-style QuestionsHudson River TradingPath Existence in Directed and Undirected Graphs with a Blocked Edge
3/5This Figma interview question evaluates your graph traversal skills by requiring you to handle multiple reachability queries under varying conditions, such as directed links, undirected connections, and dynamically blocked pathways. Testing your proficiency with advanced search algorithms and data structure updates, this problem assesses how well you adapt traversal logic on the fly. Access to the comprehensive problem breakdown and optimal model solution requires a subscription.
Coding & Leetcode-style QuestionsFigmaDecode Morse Code to All Possible Original Strings
3/5This Oscar Health interview exercise challenges you to reverse-engineer a sequence of Morse code signals back into all possible alphabetical strings. Because dot-dash translations lack strict prefix boundaries, a single transmission can often map to multiple distinct letter combinations, requiring exhaustive exploration techniques. This task evaluates recursion, backtracking, and combinatorial string parsing abilities. To view the complete challenge and reference solution, a subscription is required.
Coding & Leetcode-style QuestionsOscar HealthWord Search + in-place marking optimization
3/5This algorithmic problem, highlighted during Turo recruitment loops, tests your ability to locate specific letter sequences within a two-dimensional character matrix. The exercise evaluates depth-first search traversal techniques alongside memory optimization strategies that modify the board state during execution without extra space. Mastering this puzzle sharpens your recursive tracking and state-reversal skills. Unlock the complete walkthrough and optimized implementation details by subscribing today.
Coding & Leetcode-style QuestionsTuroChain of Command — Longest Chain Length
3/5Analyze hierarchical relationships with this graph theory challenge frequently utilized by IMC Trading. The task involves examining a corporate reporting structure to compute the maximum depth of directed supervisory paths within a directed acyclic graph. This problem tests your graph traversal capabilities and your knack for identifying longest paths efficiently. To view the complete problem details and the optimal model solution, a subscription is required.
Coding & Leetcode-style QuestionsIMC TradingN-ary Tree Path Sum Count
3/5This ByteDance interview question challenges you to find the total quantity of top-down paths within a generalized hierarchical tree structure where node entries add up to a specific goal sum. Candidates must efficiently navigate arbitrary branching factors and handle negative values without relying on basic sliding window shortcuts. This problem tests your ability to adapt classic binary tree traversal patterns to multi-child nodes while maintaining optimal performance. Unlock the full problem description and expert model solution with a subscription.
Coding & Leetcode-style QuestionsByteDanceExpression Tree Single-Leaf Mutation
3/5This Google interview question requires evaluating a boolean logic tree and efficiently recalculating the root outcome following individual leaf value mutations. It assesses tree traversal strategies, state caching, and the ability to minimize redundant computations. Unlock the full problem specification and expert solution by subscribing today.
Coding & Leetcode-style QuestionsGoogleSWE / QSE OA — Sewer Tree Partition
3/5Reported as a Two Sigma SWE/QSE OA question, this problem presents a rooted tree structure defined by parent pointers and associated node values. The task is to identify a single edge to remove such that the tree splits into two components, and the absolute difference between the sums of values in these two new subtrees is minimized. This evaluates your ability to perform tree traversals, calculate subtree aggregates, and apply optimization techniques. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsTwo SigmaMouse and Cheese: Grid Reward Maximization
3/5This Meta interview question presents a fascinating challenge involving pathfinding and reward maximization within a grid environment, offering two distinct variants. The first variant requires you to navigate a known grid from a starting point to an end point, moving only right or down, to collect the maximum possible total reward from cells. The second variant shifts to an unknown maze, where you must explore using a limited API to locate and collect cheese, typically employing search algorithms like DFS with backtracking. This problem effectively tests your dynamic programming skills or graph traversal strategies. The full problem description and a model solution are available with a subscription.
Coding & Leetcode-style QuestionsMetaNumber of Friend Circles
3/5As reported in an Amazon interview, this problem requires you to identify the total number of distinct "friend circles" within a group of people. You are given a matrix representing direct friendships, and it's important to remember that friendship is transitive – if A is friends with B, and B is friends with C, then A, B, and C all belong to the same circle. Your task is to count how many separate, unconnected groups of friends exist. This tests graph traversal algorithms and connectivity analysis. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonMaximum-Sum Root-to-Leaf Path
3/5This Amazon coding question explores your proficiency with binary tree data structures and traversal algorithms. You are tasked with navigating a tree, represented in a specific format, to identify a particular path. The core challenge involves calculating sums along various paths from the root down to a leaf node and then determining which of these paths yields the highest total. This problem effectively tests your recursive thinking and ability to manage state during tree exploration. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsAmazonCount Islands Not Touching the Border
4/5This Amazon coding challenge involves processing a 2D grid representing a map of land and water. Your objective is to identify and count only those landmasses, or "islands," that are entirely enclosed by water and do not touch any of the grid's boundaries. Any island that is connected, even partially, to the edge of the map should be effectively removed or ignored. This problem is a classic test of graph traversal algorithms like Depth-First Search (DFS) or Breadth-First Search (BFS) and careful boundary condition handling. The full problem description and a detailed model solution are available with a subscription.
Coding & Leetcode-style QuestionsAmazonAggregate user journeys from logs and count path/prefix frequencies
3/5Process sequential telemetry records in this data aggregation challenge frequently featured in Whatnot technical rounds. You are tasked with reconstructing chronological user pathways from raw logs and subsequently organizing those trajectories into a prefix tree to compute path frequency statistics at scale. This problem tests your ability to combine sorting operations with efficient tree-based data structures for analytics. Access the complete problem description and optimal reference solution with a subscription.
Coding & Leetcode-style QuestionsWhatnotDomain Score Accumulation (Reverse Trie)
3/5This advanced algorithmic problem, reported from an Amazon coding interview, explores hierarchical data aggregation using specialized tree structures. Candidates are challenged to process hostname hierarchies where individual segments carry positive or negative numerical values that accumulate from root to leaf. The task tests your ability to construct reverse-keyed lookup trees and perform efficient backtracking traversals to compute cumulative scores. Mastering this concept improves your skills in handling nested string spaces and hierarchical scoring systems. Unlock the full challenge details and verified code solution with a paid subscription.
Coding & Leetcode-style QuestionsAmazonExpression Add Operators to Reach Target
4/5Featured frequently in Google coding assessments, this algorithmic puzzle challenges you to insert mathematical operations between sequential digits to match a desired numerical target. Success requires navigating recursive state spaces and managing operator precedence constraints without violating formatting rules. Gain full access to the comprehensive solution and step-by-step code walkthrough with a subscription.
Coding & Leetcode-style QuestionsGoogleIncreasing Paths in a Grid
3/5Presented in Hudson River Trading interviews, this grid-based challenge requires you to compute the total count of valid movement sequences where numerical values strictly escalate across adjacent cells. The problem tests advanced traversal strategies, memoization, and combinatorial counting on a matrix. Explore the complete problem breakdown and optimized solution by purchasing a subscription.
Coding & Leetcode-style QuestionsHudson River TradingCount Connected Building Components in a City Grid
3/5Prepare for technical evaluations with this classic graph traversal problem frequently featured in Google interviews. You are tasked with analyzing a two-dimensional layout to identify and tally distinct clusters of adjacent elements based on directional connectivity rules. This challenge evaluates your proficiency in depth-first search, breadth-first search, or disjoint-set data structures for connected component analysis. Discover the complete problem description and an optimized model solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsGoogleDepth-First Search on a Colored Graph
2/5Graph traversal techniques are put to the test in this Google interview challenge, which explores custom depth-first search implementations on node-colored networks. Developers must build an algorithm that traverses interconnected elements while adhering strictly to specific state-transition colors and simultaneously identifying circular paths. This problem evaluates graph theory proficiency, recursion management, and the ability to track node states dynamically during traversal. Unlocking the full problem description and comprehensive model solution requires a subscription.
Coding & Leetcode-style QuestionsGoogleAll Paths From a Start Node in a DAG
3/5Examine this graph traversal challenge commonly featured in Amazon technical assessments. The task tests your understanding of directed acyclic networks and recursive enumeration techniques to map out every possible route from an origin to a terminating node. Implementing an effective traversal strategy is crucial for handling complex branching structures correctly. Unlock the complete problem details, edge case considerations, and optimal solution code with a subscription.
Coding & Leetcode-style QuestionsAmazonNumber of Islands and Number of Distinct Islands
3/5This reported interview question from XPeng challenges candidates to navigate a two-dimensional grid representing terrain boundaries to count standard land clusters while also identifying how many unique spatial configurations exist among them. This task tests your graph traversal capabilities, pattern recognition, and ability to normalize geometric structures for accurate comparison. To examine the complete problem statement and discover the optimal programmatic solution, a paid subscription is required.
Coding & Leetcode-style QuestionsXPengService Dependency Impact Propagation
3/5Analyzing downstream repercussions within interconnected data pipelines is a vital skill for modern infrastructure engineers, mirroring this LinkedIn interview scenario. You will process manifest configurations to trace how removed data pathways ripple across various services through multi-tier cascading impact levels. This challenge evaluates your graph traversal capabilities and efficient state tracking over hierarchical relationships. Explore the complete problem details and comprehensive reference solution by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsLinkedInDesign a Spreadsheet with Dependent Cells (set_cell / get_cell)
3/5Encountered in Character AI interview processes, this design challenge requires building a lightweight spreadsheet system capable of handling dynamic cell relationships and automatic updates. You must implement mechanisms to assign static values, establish parent-child dependencies, and recursively compute aggregated results when data changes. This problem tests your expertise in graph modeling, caching strategies, and state propagation in an object-oriented design. Unlocking the complete problem specification and reference solution requires an active subscription.
Coding & Leetcode-style QuestionsCharacter AINumber of Islands
3/5Familiarize yourself with this popular Apple interview exercise where you compute distinct landmasses on a two-dimensional grid of binary indicators. The challenge centers on exploring connected components using graph traversal algorithms like breadth-first or depth-first search. It is a fundamental assessment of spatial reasoning and matrix manipulation proficiency. To view the complete prompt details and professional source code solution, please subscribe.
Coding & Leetcode-style QuestionsAppleVertical Order Traversal of a Binary Tree
4/5This reported Uber interview question evaluates your ability to navigate hierarchical structures by arranging tree nodes into columns and rows. You will need to implement a strategy that accurately computes spatial coordinates for each element, ensuring proper sorting by horizontal placement, depth, and node values when ties occur. This task tests your proficiency with custom sorting logic and tree traversal algorithms. Access to the complete problem description and expert model solution requires a subscription.
Coding & Leetcode-style QuestionsUberRobbing a Tree
3/5Presented during Zip software engineering interviews, this graph theory problem asks you to maximize accumulated value across a hierarchical village network where adjacent nodes cannot be selected simultaneously. It builds upon classic dynamic programming concepts on trees, requiring you to handle general multi-branch relationships rather than standard binary constraints. Discover the complete problem guidelines and optimized algorithmic solution with a paid subscription.
Coding & Leetcode-style QuestionsZipFind Unreachable Heap Objects with References
3/5This graph traversal and memory management puzzle, featured in Anduril interviews, requires you to identify unreachable heap objects given an initial set of active stack references. You will analyze reference relationships between objects to perform garbage collection style reachability analysis and return all dead objects. Gain access to the full problem statement and optimal solution code with a subscription.
Coding & Leetcode-style QuestionsAndurilPrefix Autocomplete via Trie
3/5During a Waymo phone screen, candidates may encounter this task focused on building a predictive text helper that rapidly surfaces vocabulary terms matching a specific beginning sequence. Rather than relying on naive linear searches, the interviewer expects a specialized tree-based structure capable of storing string segments and extracting completions efficiently via depth-first traversal. This challenge measures your grasp of advanced hierarchical indexing and prefix-matching algorithms. Explore the complete problem overview and verified model solution with a paid subscription.
Coding & Leetcode-style QuestionsWaymoPrint Directory Tree Given a File Path
3/5This Adobe interview challenge asks developers to traverse a nested data structure representing a hierarchical file system and output a visually formatted tree of directories and files. The task evaluates recursion, string manipulation, and error handling for missing or unexpected path types. Building a clean, indented visual representation tests fundamental tree traversal skills under structured constraints. Unlock the full problem description and expert reference solution by subscribing today.
Coding & Leetcode-style QuestionsAdobeCompute Total Size of a File System
2/5This classic Google interview question requires calculating the aggregate storage space consumed by all files within a hierarchical file system directory tree. Candidates must navigate nested directories and files efficiently to ensure every component is accounted for without duplication. The exercise tests foundational tree traversal algorithms and recursive programming techniques. Access the complete problem statement and optimized model solution with a paid subscription.
Coding & Leetcode-style QuestionsGoogleComment System Formatting
3/5This interview question, frequently asked at Nextdoor, challenges candidates to format and display hierarchical data structures with proper indentation levels. The task tests your ability to handle tree-like relationships, parse parent-child identifiers, and manage missing nodes by leaving empty placeholders while preserving the structure of subsequent descendants. You will need to implement an efficient traversal algorithm that correctly orders the elements. Unlock the complete problem description and an optimal model solution by acquiring a subscription.
Coding & Leetcode-style QuestionsNextdoorThrone Inheritance Order
3/5Reported as an interview challenge at Snowflake, this problem requires you to simulate a family hierarchy and maintain a dynamic line of succession. You will need to design a system that handles birth announcements, tracks fatalities without breaking lineage connections, and generates the current inheritance sequence based on preorder tree traversal rules. This exercise evaluates your proficiency with tree-based data structures, object-oriented design, and efficient state management. Access to the full problem text and a comprehensive model solution requires a paid subscription.
Coding & Leetcode-style QuestionsSnowflakeShortest Bridge Between Two Islands
3/5Encountered frequently in technical screenings at Uber, this graph traversal problem requires you to find the absolute shortest path of transformed cells needed to physically connect two distinct isolated regions within a matrix. It tests your proficiency with breadth-first search algorithms, multi-source queue management, and grid-based state exploration. You will explore how to systematically expand outward from one territory until reaching the other while minimizing cost. Unlock the complete problem statement, underlying principles, and verified code solution with an active subscription.
Coding & Leetcode-style QuestionsUberBinary Tree Longest Consecutive Sequence II
3/5Discover how to determine the longest unbroken sequence of adjacent values that differ by one within a hierarchical tree structure. Reported as an interview challenge at Uber, this problem evaluates your grasp of tree traversal techniques, recursive state management, and bidirectional path tracking. Candidates must handle both ascending and upward-downward transitions smoothly. Unlock the full problem description, algorithmic walkthrough, and optimal code implementation by upgrading to a paid subscription.
Coding & Leetcode-style QuestionsUberPalindrome Ancestor Path Queries
4/5In this reported Uber interview challenge, you are tasked with analyzing hierarchical tree structures to evaluate character arrangements along ancestral paths. The problem tests your proficiency with tree traversal, string frequency counting, and efficient querying of path properties without incurring performance bottlenecks. You will explore how multiset character frequencies dictate palindrome feasibility from any node up to the root. Sharpen your graph traversal and data structure optimization techniques with this engaging puzzle. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsUberMaking a Large Island
4/5Discover how to maximize spatial connectivity by modifying a single element within a grid matrix, a classic algorithmic puzzle frequently featured in Uber technical interviews. This problem tests your expertise in graph theory, specifically connected components, breadth-first search, or depth-first search traversal strategies. You will learn how to efficiently compute region sizes and evaluate potential bridging points to merge adjacent clusters for optimal results. Strengthen your two-dimensional array manipulation skills and prepare for top-tier technical evaluations. The full problem and model solution require a subscription.
Coding & Leetcode-style QuestionsUber
Studied alongside
dfs interview FAQ
- How many dfs interview questions are there?
- 170 reported questions, mostly Coding & Leetcode-style Questions.
- Which companies ask dfs questions?
- Amazon (20), Uber (14), Google (12), ByteDance (10), Meta (9), Snowflake (8), Apple (5), Oracle (4).
- How hard are dfs questions?
- They average 3.1 out of 5: 16 at 2/5, 130 at 3/5, 21 at 4/5, 3 at 5/5.