Banco público de perguntas reais para entrevistas: explore por empresa, categoria e tema
NaGringa
Tema público de Coding

Perguntas de live coding para entrevistas de software engineer

Use este recorte para treinar problemas de live coding que cobram raciocínio em voz alta, clareza de solução, complexidade e casos de borda.

Perguntas nesse recorte
16

Treine problemas clássicos com foco em clareza, complexidade e comunicação ao vivo.

Como esse tema costuma cair

Explique a abordagem antes de tocar no código.

Compare a solução inicial com a otimização que você quer perseguir.

Teste casos de borda em voz alta e ajuste rápido quando perceber um bug.

Live Coding

Perguntas para praticar agora

Este recorte reúne perguntas reais desse tema para você treinar com contexto mais específico e ver padrões que costumam se repetir.

Meta
Uber
Google
CodingMid-level

Leetcode 415. Add Strings

Given two non-negative integers as decimal strings, return their sum as a string by simulating digit-by-digit addition from the least significant digits with carry (no integer conversion or big-integer libraries allowed). Inputs can be large (length up to 10^4), so the solution must handle arbitrary-length strings.

O que treinar

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

3 empresas
Ver detalhes
Microsoft
Amazon
Meta
CodingMid-level

Leetcode 78. Subsets

Return the power set of a unique-element integer array by enumerating all 2^n subsets (typical solutions use backtracking/DFS or bitmask iteration), noting the exponential output is acceptable since n ≤ 10.

O que treinar

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

3 empresas
Ver detalhes
Meta
Google
CodingMid-level

Leetcode 290. Word Pattern

Check whether the characters in pattern and the space-separated words in s have a bijective (one-to-one and onto) mapping that preserves order — i.e., each pattern letter maps to exactly one word and no two letters map to the same word, and substituting letters with their mapped words reproduces s.

O que treinar

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

2 empresas
Ver detalhes
Google
Amazon
CodingIntern

Leetcode 75. Sort Colors

Reorder an array of values 0, 1, and 2 in-place so all 0s come first, then 1s, then 2s (the Dutch National Flag problem); aim for a one-pass, constant-extra-space solution without using built-in sort.

O que treinar

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

2 empresas
Ver detalhes
Meta
Amazon
CodingJunior

Leetcode 735. Asteroid Collision

Given signed integers for asteroid sizes and directions, determine which asteroids remain after sequential collisions where only opposite-moving neighbors (positive then negative) meet and the smaller (or both if equal) explode; this is typically solved by simulating collisions with a stack.

O que treinar

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

2 empresas
Ver detalhes
Meta
Microsoft
CodingMid-level

Leetcode 283. Move Zeroes

Rearrange the array in-place so all zeros are moved to the end while preserving the relative order of non-zero elements, without using extra storage. Aim to minimize the number of writes/operations (stable partition / two-pointer pattern).

O que treinar

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

2 empresas
Ver detalhes
Amazon
Meta
CodingSenior

Leetcode 112. Path Sum

Determine whether a binary tree contains a root-to-leaf path whose node values add up to a given targetSum. (A leaf is a node with no children.)

O que treinar

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

2 empresas
Ver detalhes
Stripe
Meta
CodingIntern

Leetcode 15. 3Sum

Find all unique triplets in an integer array that sum to zero, ensuring no duplicate triplets in the output. The core challenge is efficiently enumerating combinations (commonly done by sorting and using a two-pointer scan) within the 3 ≤ n ≤ 3000 constraint.

O que treinar

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

2 empresas
Ver detalhes
Microsoft
Meta
CodingSenior

Leetcode 529. Minesweeper

Simulate a Minesweeper click on an m×n board: clicking a mine turns it to 'X', while clicking an empty square requires counting adjacent mines — if the count > 0 set the cell to that digit, otherwise mark it 'B' and recursively reveal all neighbors. The core challenge is a grid flood-fill with adjacency counting (use DFS/BFS) to propagate reveals.

O que treinar

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

2 empresas
Ver detalhes
Empresas com esse tema

Onde live coding já apareceu

O que costuma derrubar

Erros comuns nesse tipo de resposta

Começar codando sem alinhar interpretação do problema.
Resolver em silêncio e só explicar no fim.
Ignorar complexidade, invariantes e estratégia de teste.
Mais perguntas desse recorte

Variações para ampliar o repertório

CodingMid-level

Leetcode 403. Frog Jump

Given sorted stone positions and an initial jump of 1, determine whether a frog can reach the last stone when each jump length must be k-1, k, or k+1 from the previous jump. The core challenge is exploring reachable jump sizes per stone under position gaps — typically solved with dynamic programming/DFS using a map/set of stones to reachable jump lengths.

Google
1 empresa
CodingJunior

Leetcode 55. Jump Game

Given an array where each value is the maximum jump length from that index, determine whether you can reach the last index starting from the first; the core challenge is tracking the furthest reachable index (greedy/range propagation) to avoid exploring all paths.

Amazon
1 empresa
CodingMid-level

Leetcode 472. Concatenated Words

Return all strings in the list that can be formed by concatenating at least two other words from the same list. This is a word-break style problem (use DP/trie + memoization) to efficiently test each word given total input size up to 1e5.

Amazon
1 empresa
CodingSenior

Leetcode 91. Decode Ways

Given a digit string, count how many ways it can be segmented into valid codes 1–26 (two-digit codes cannot start with '0'), handling invalid zeros and impossible encodings — a classic dynamic-programming/counting-over-partitions problem.

Meta
1 empresa
CodingJunior

Leetcode 463. Island Perimeter

Given a rectangular grid with exactly one island of orthogonally connected land cells, compute the island's perimeter by summing the edges of land cells that are adjacent to water or the grid boundary (equivalently use 4*land_cells - 2*shared_edges). Grid dimensions ≤100 and connections are only horizontal/vertical.

Google
1 empresa
CodingMid-level

Leetcode 1478. Allocate Mailboxes

Place k mailboxes on a line to minimize the sum of distances from each house to its nearest mailbox; optimal placement partitions the sorted houses into k contiguous groups served by a mailbox at each group's median, solvable by dynamic programming with precomputed interval costs.

Amazon
1 empresa

Continue explorando live coding no banco completo

No app você continua essa busca com mais profundidade e abre outras perguntas parecidas com filtros mais precisos.