Trilha pública de Coding

Coding interview: perguntas para devs

Descubra perguntas reais de coding interview e live coding para treinar solução, clareza, complexidade e comunicação durante a entrevista.

Perguntas nessa trilha
661

Pratique live coding, complexidade, casos de borda e clareza.

Buscar dentro de Coding

Se quiser, refine esse recorte com um termo específico sem sair da trilha atual.

Refinar busca
Escopo da busca
Coding
Temas dentro dessa trilha

Recortes mais específicos para estudar com foco

Coding

Perguntas para priorizar no seu treino agora

Esse recorte reúne perguntas públicas desse tipo para acelerar sua preparação com mais contexto e menos ruído.

Netflix
Amazon
Microsoft
Oracle
+5
CodingSenior

Leetcode 146. LRU Cache

Implement an LRUCache that supports O(1) average-time get(key) returning the value or -1 and put(key, value) which inserts or updates a key and, if capacity is exceeded, evicts the least-recently-used key. The core challenge is maintaining key-value storage together with recency ordering to enable constant-time access, updates, and eviction.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

9 empresas
Ver detalhes
Palantir
Microsoft
Meta
Amazon
+3
CodingSenior

Leetcode 253. Meeting Rooms II

Given a list of meeting time intervals, determine the minimum number of conference rooms required so that no meetings overlap. The core challenge is computing the maximum number of concurrent intervals (e.g., via sorting with a min-heap of end times or a sweep-line of start/end events).

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

7 empresas
Ver detalhes
Meta
Apple
LinkedIn
Google
+3
CodingStaff+

Leetcode 20. Valid Parentheses

Check whether a string of parentheses/brackets is valid by ensuring every closing bracket matches the most recent unmatched opening bracket and the types and nesting order are correct. This is typically solved by tracking openings (e.g., with a stack) and verifying matching pairs.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

7 empresas
Ver detalhes
NVIDIA
Gusto
OpenAI
Apple
+2
CodingStaff+

Leetcode 981. Time Based Key-Value Store

Design a time-based key-value store that records multiple values per key with timestamps and returns the value whose timestamp is the largest <= the queried timestamp. With timestamps per key strictly increasing and up to 2e5 operations, the typical solution uses per-key ordered timestamp/value lists and binary search to find the floor timestamp efficiently.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

6 empresas
Ver detalhes
DoorDash
Apple
Meta
Amazon
+2
CodingSenior

Leetcode 210. Course Schedule II

Given numCourses and prerequisite pairs, return any ordering of courses that satisfies all prerequisites or an empty array if impossible — this is essentially computing a topological sort of a directed graph and detecting cycles.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

6 empresas
Ver detalhes
Oracle
Meta
Amazon
TikTok
+2
CodingMid-level

Leetcode 200. Number of Islands

Count the number of islands (4-directionally connected components of '1's) in an m×n binary grid. This is a connected-components/flood-fill problem typically solved with DFS/BFS or Union-Find in O(mn) time (m,n ≤ 300).

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

6 empresas
Ver detalhes
Meta
Amazon
Google
Oracle
+1
CodingMid-level

Leetcode 347. Top K Frequent Elements

Given an integer array and k, return the k most frequent elements — the core challenge is to count element frequencies and extract the top-k efficiently (better than O(n log n)), typically using a frequency map combined with a min-heap (O(n log k)) or bucket sort (O(n)).

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

5 empresas
Ver detalhes
Meta
Canva
Amazon
LinkedIn
+1
CodingMid-level

Leetcode 236. Lowest Common Ancestor of a Binary Tree

Given a binary tree and two nodes p and q, find their lowest common ancestor — the deepest node that has both p and q as descendants (a node can be a descendant of itself). The tree can be large (up to 2e5 nodes), nodes are unique and p and q are guaranteed to exist.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

5 empresas
Ver detalhes
DoorDash
Meta
Salesforce
Datadog
+1
CodingMid-level

Leetcode 124. Binary Tree Maximum Path Sum

Find the maximum sum of any non-empty connected path in a binary tree (nodes used at most once), where the path can start and end at any nodes and node values may be negative. You must account for single-node paths when all values are negative.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

5 empresas
Ver detalhes
DoorDash
Cloudflare
Uber
Meta
+1
CodingMid-level

Leetcode 207. Course Schedule

Given courses as nodes and prerequisite pairs as directed edges, determine whether the directed graph is acyclic — return true if a topological ordering exists (all courses can be completed), otherwise false if a cycle prevents completion.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

5 empresas
Ver detalhes
Meta
Amazon
Squarespace
Microsoft
CodingSenior

Leetcode 88. Merge Sorted Array

Given two sorted arrays nums1 and nums2 and counts m and n (nums1 has length m+n with its last n slots free), merge the elements into nums1 in non-decreasing order in-place. Aim for an O(m + n) solution that uses the available buffer rather than returning a new array.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Meta
Amazon
Atlassian
Google
CodingStaff+

Design a File Search and Directory Traversal System

Design and implement a file search system that can traverse directory structures and locate files based on various criteria. The solution should incorporate object-oriented programming principles, support extensible filtering mechanisms, and be optimized for performance. Consider implementing algorithms like DFS or BFS for traversal, and discuss scalability considerations for adding new search filters and optimizations such as byte-level operations.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
LinkedIn
Uber
Microsoft
Meta
CodingMid-level

Leetcode 53. Maximum Subarray

Find the contiguous subarray within an integer array that yields the maximum possible sum and return that sum. This is typically solved in O(n) with Kadane's algorithm (with an alternative divide-and-conquer approach as a follow-up).

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Google
Snowflake
Amazon
Bloomberg
CodingMid-level

Leetcode 212. Word Search II

Given an m×n letter grid and a list of words, find all words that can be formed by sequentially adjacent (horizontal/vertical) non-repeating cells. The core challenge is efficiently searching many candidate words on the board using DFS/backtracking with prefix pruning (e.g., a Trie) to handle up to 12×12 boards and tens of thousands of words.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Meta
Snowflake
Oracle
Amazon
CodingMid-level

Leetcode 23. Merge k Sorted Lists

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Meta
Palantir
Apple
Atlassian
CodingMid-level

Leetcode 353. Design Snake Game

Simulate a Snake game on an m×n grid supporting move(direction): the snake advances, grows when it eats sequentially placed food (increasing score), and the game ends on collision with walls or the snake's own body. Candidates should track the snake body and occupied cells efficiently for frequent moves (e.g., deque + hash set) and handle food lookup and collision checks.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Salesforce
Meta
Google
Snowflake
CodingMid-level

Leetcode 2050. Parallel Courses III

Given a DAG of course prerequisites where each course has a duration and any number of courses can run in parallel once prerequisites are satisfied, compute the minimum time to finish all courses. This is the classic longest-path/critical-path problem on a node-weighted DAG — compute each course's earliest completion time as max(completion times of prerequisites) + its duration.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Meta
Oracle
Microsoft
Amazon
CodingSenior

Leetcode 62. Unique Paths

Count the number of distinct monotonic paths from the top-left to the bottom-right of an m×n grid when you may only move right or down. This is the classic lattice-path problem — the answer equals binomial coefficient C(m+n-2, m-1) (or can be computed with DP); m,n ≤ 100 and result ≤ 2·10^9.

O que treinar

Estruture solução, trade-offs e complexidade com clareza.

4 empresas
Ver detalhes
Empresas com cobertura

Onde coding já apareceu

Guias complementares

Leituras que aprofundam esse tipo de entrevista

Use esses guias para ganhar repertório e depois volte para praticar com perguntas reais dessa trilha.

Adições recentes

Novidades nessa trilha

Recente
CodingStaff+

Implementar parser de query string com flags booleanas e chaves duplicadas

Primeira etapa técnica, live coding de 45 minutos. Implementar um parser de URL/query string em que todos os dados permanecem como String. Casos exigidos: chave=valor; flag sem sinal de igual, como isChave, assumindo o valor textual true; e chaves duplicadas, como chave=valor1&chave=valor2, preservando múltiplos valores.

Airbnb
1 empresa
Recente
CodingSenior

Find the single number that appears once when every other number appears twice, in O(n) time and O(1) extra space

Live coding challenge. Given an integer array with one unpaired value and all others appearing twice, return the unique value. Required linear runtime and constant extra space; optimal approach uses XOR.

DataArt
1 empresa
Recente
CodingSenior

Verificar se duas regiões representadas como árvores são iguais, ignorando a ordem das folhas

Etapa de código para vaga sênior. A tarefa era comparar duas regiões modeladas como árvores: a hierarquia entre país, região, estado e cidade precisava ser idêntica, mas a ordem dos nós folha irmãos não importava.

QuintoAndar
1 empresa
Recente
CodingMid-level

Construir um color picker

50 min de pair programming para construir um color picker que filtre a listagem

Brex
1 empresa
Recente
CodingSenior

Implement an API service that calculates a dasher's total payment

Code Craft round for a Senior Software Engineer role. Implement only the service layer: given a dasherId, query a mocked external integration for delivery status events and return the total payment. Payment per delivery is (fulfilled or cancelled timestamp - accepted timestamp) * 0.3. Overlapping deliveries are paid independently, and cancelled deliveries must also be paid. Example events for two 10-unit deliveries produce a total payment of 6.0.

DoorDash
1 empresa
Recente
CodingStaff+

Implement an in-memory key-value store with transactions

Second one-hour coding interview. Implement a basic in-memory key-value store for one client with get, set, unset, begin, abort, and commit. Values may be null. get must report a missing-key error, set and unset inside an open transaction must be isolated until commit, abort must discard the transaction changes, and commit must persist them. The prompt included an example showing a value changed inside a transaction and restored after abort.

Uber
1 empresa
Recente
CodingStaff+

Dynamic restaurant grid with connected delivery zones

Primeira entrevista de código de 1 hora para uma vaga de Software Engineering. Dado um grid de r linhas e l colunas representando quarteirões da cidade, manter restaurantes abertos com as operações openRestaurant(r,c), hasOpenRestaurant(r,c), countOpenRestaurants(r,c) e countDeliveryZones. Restaurantes em blocos ortogonalmente adjacentes formam uma única delivery zone. O exercício avalia modelagem de grid esparso, componentes conectados e atualização incremental das zonas conforme novos restaurantes são abertos.

Uber
1 empresa
Recente
CodingSenior

Contar cohosts em listings e retornar os mais frequentes

Initial coding assessment for a Senior Software Engineer, Reliability Engineering role. The input was a dictionary mapping integer IDs to property listing objects containing fields such as rating and a list of host IDs, with the primary host at index 0. First, given a host ID, count how many times it appears as a cohost across all listings, excluding index 0. Then return the host IDs with the highest cohost frequency, handling ties, and explain the time and space complexity.

Airbnb
1 empresa

Continue explorando perguntas de Coding

No app você continua essa busca com filtros mais precisos, compara empresas e abre mais perguntas parecidas.