practice a little every day, paws crossed ♡
Software Engineer Interview Questions
Practice 9403 coding, system design and machine learning questions from 546 companies, sorted by role, topic and interview round. Every question has step-by-step hints, a code runner that supports 8 languages and an AI mentor; members also get the full solution walkthrough.
- 9403
- Questions
- 546
- Companies
- 11
- Topics
- 8
- Languages
Showing 2281–2310 of 2629 results
- TeslaMediumSoftware EngineerCalculate trapped water between elevation bars
This question evaluates array manipulation, algorithmic optimization, and complexity analysis, specifically the ability to reason about time and space trade-offs and design a linear-time, constant-space approach for computing trapped water.
Coding & AlgorithmsTechnical Screen - TeslaHardSoftware EngineerCoordinate workers across two exclusive targets
This problem tests your ability to manage concurrent resources using synchronization primitives, ensuring workers can safely alternate between two exclusive tasks while maintaining thread safety.
Coding & AlgorithmsTechnical ScreenConcurrencySynchronizationMultithreading - TeslaEasySoftware EngineerCount the Ways to Decode a Numeric Cipher
This problem tests your ability to solve a counting problem using dynamic programming by identifying overlapping subproblems in a sequence of numeric mappings.
Coding & AlgorithmsOnsiteDynamic ProgrammingString ManipulationAlgorithms - TeslaMediumSoftware EngineerDesign a contiguous segment allocator
This question evaluates a candidate's competency in designing and implementing efficient data structures for interval management, contiguous memory allocation, fragmentation handling, tag-based resource tracking, and algorithmic complexity analysis.
Coding & AlgorithmsTechnical Screen - TeslaMediumSoftware EngineerFind latency pairs with minimal difference
This question evaluates array manipulation, pairwise comparison, and algorithmic efficiency by requiring identification of minimal absolute differences and construction of ordered latency pairs.
Coding & AlgorithmsTechnical Screen - TeslaHardSoftware EngineerFlatten a Linked List with Nested Side Branches into One Doubly Linked List
A linked list whose nodes may each carry one side branch, with branches nested like a binary tree, must be flattened into a single doubly linked list with every branch spliced between its parent and the parent's original successor. It tests pointer rewiring, ordering rules for nested branches, and handling very deep nesting.
Coding & AlgorithmsOnsite - TeslaEasySoftware EngineerGenerate Per-Position Guess Feedback
This problem tests your ability to process strings and manage state (character frequency) to determine exact matches versus partial matches, commonly used in word-guessing games.
Coding & AlgorithmsOnline AssessmentStringHash MapArray - TeslaHardSoftware EngineerImplement a Rollback Key-Value Store
This problem tests your ability to design a data structure that supports basic key-value operations with an added transactional rollback mechanism using a stack-based approach.
Coding & AlgorithmsTechnical ScreenData StructuresStackVersioning - TeslaMediumSoftware EngineerOptimize Trapping Rain Water
This question evaluates algorithmic problem-solving with arrays and analysis of time-space trade-offs in the Coding & Algorithms domain, and is commonly asked to assess a candidate's ability to transform brute-force approaches into efficient linear-time solutions while reasoning about memory usage.
Coding & AlgorithmsTechnical Screen - TeslaEasySoftware EngineerShortest Bridge to Connect Two Islands
Tests matrix traversal techniques, specifically using DFS/BFS to identify connected components and multi-source BFS to find the shortest path between them.
Coding & AlgorithmsOnsitegraphbfsdfs - TeslaMediumSoftware EngineerSolve classic array, graph, and parsing problems
This multi-part question evaluates algorithmic problem-solving and data-structure competency, covering expression parsing, array and sequence manipulation, sorting-based counting, interval merging, graph traversal/union-find, in-place rearrangement, hashing for set operations, and DAG/topological ordering within the Coding & Algorithms domain.
Coding & AlgorithmsHR Screen - The Trade DeskMediumSoftware EngineerCalculate Bowling Game Score
This problem tests your ability to manage state and look-ahead logic when processing a sequence of events (bowling rolls) governed by specific conditional scoring rules.
Coding & AlgorithmsOnsiteArraysLogicSimulation - The Trade DeskMediumSoftware EngineerImplement a Cloud Storage Service
This question evaluates a candidate's ability to implement an in-memory cloud storage system, exercising skills in data structures and stateful API design, string handling and pattern matching, sorting and eviction algorithms, and per-user resource accounting.
Coding & AlgorithmsOnline Assessment - TikTokMediumSoftware EngineerCompute length of longest increasing subsequence
This question evaluates understanding of subsequences, dynamic programming and algorithmic optimization for array processing, and is categorized under Coding & Algorithms; it emphasizes practical application of algorithm design and complexity analysis rather than purely theoretical knowledge.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCompute pipeline order from dependencies
This question evaluates understanding of graph algorithms and dependency resolution, specifically topological sorting and cycle detection, along with competence in choosing appropriate data structures and analyzing time/space complexity.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCount deletions making array fair
This question evaluates proficiency with array manipulation, parity-aware summation, and combinatorial counting when elements are removed, situating it in the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerCount distinct island shapes in a grid
This problem tests grid traversal (DFS/BFS) and the ability to represent spatial structures in a canonical form to identify unique patterns.
Coding & AlgorithmsTechnical ScreenDFSGraphGrid - TikTokMediumSoftware EngineerCount islands on a torus grid
This question evaluates skills in graph and grid algorithms, topology-aware adjacency (torus wrap-around), and maintaining dynamic connectivity under incremental updates.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerDelete nodes in linked list and binary tree
This question evaluates proficiency in mutable data structure operations, specifically linked list node removal and binary tree node replacement/deletion, requiring knowledge of traversal, pointer/reference manipulation, and edge-case handling.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerDesign LRU cache with O(1) operations
This question evaluates a candidate's understanding of data structures and algorithm design, specifically skills in implementing constant-time cache operations, eviction policies, update handling, and concurrency/thread-safety considerations.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerExplain Java DI, AOP, and transactions
This question evaluates understanding of Java framework internals and related competencies including dependency injection, aspect-oriented programming and proxy mechanisms, transaction management, annotation processing, bean lifecycle, classpath scanning, bean scopes, and circular dependency detection or resolution.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerFind a valid course order from prerequisites
This problem tests your ability to model dependencies as a directed graph and determine a valid sequence using topological sorting (Kahn's algorithm or DFS).
Coding & AlgorithmsTechnical ScreenGraphTopological SortDFS - TikTokEasySoftware EngineerFind first and last index of target
This question evaluates mastery of searching algorithms and algorithmic complexity analysis, particularly the ability to locate boundary positions within a sorted array.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerFind kth smallest in sorted 2D matrix
This question evaluates algorithmic problem-solving and data-structure reasoning, focusing on order statistics and operations on a row- and column-sorted matrix within the Coding & Algorithms domain.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerFind longest common subsequence length
This question tests the ability to solve the Longest Common Subsequence (LCS) problem using dynamic programming, specifically focusing on building a 2D state table.
Coding & AlgorithmsOnsiteDynamic ProgrammingStringsAlgorithms - TikTokHardSoftware EngineerFind longest substring with ≥k repeats
This problem tests your ability to use the sliding window technique combined with frequency maps to find the longest substring containing characters that each appear at least k times.
Coding & AlgorithmsTechnical ScreenStringsSliding WindowTwo Pointers - TikTokEasySoftware EngineerFind start indices of anagram substrings
This question evaluates proficiency in string processing, frequency-based pattern matching, and algorithmic efficiency under length constraints, testing the ability to reason about time and space trade-offs for substring searches.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerFind the Longest Substring with at Most Two Distinct Characters
Tests the ability to use the sliding window technique combined with a hash map to maintain a dynamic character set and determine the maximum length of a valid substring in linear time.
Coding & AlgorithmsTechnical Screensliding-windowhash-tabletwo-pointers - TikTokMediumSoftware EngineerFlatten object & Promise.all
This question evaluates proficiency in JavaScript data manipulation and asynchronous programming, testing competencies in transforming nested objects into single-level key paths and reproducing Promise.all semantics.
Coding & AlgorithmsTechnical Screen - TikTokMediumSoftware EngineerImplement O(1) randomized multiset
Implement O(1) randomized multiset evaluates algorithm design, data structures, correctness, complexity, edge cases, and implementation details in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.
Coding & AlgorithmsTechnical Screen