Novo curso: Como conseguir vagas remotas em empresas que pagam $120k+/ano
NaGringa
Trilha pública de Coding

Perguntas de coding interview para software engineer

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

Perguntas nessa trilha
0

Pratique solução, complexidade, casos de borda e clareza.

Busca pública

Pesquise perguntas agora

Procure por pergunta, empresa ou tema para encontrar mais rápido o que vale praticar.

Buscar
Escopo da busca
Coding
Resultados

Perguntas de Coding

Explore esse recorte e refine a busca com um termo quando quiser.

Buscando resultados...
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

Adições recentes

Novidades nessa trilha

Recente
CodingSenior

Create a song player React component

I had 45m to implement this component. This is a classic React Context + state management exercise — a music player with song selection, next/previous navigation, and replay modes. Let me break down what you need to implement and then give you the solution. What the task is asking: You have two components (ControlBar and Songs) that share state via Context. You need to: 1. Track the current song — clicking a Song makes it active (green title, active={true} on SongTitle). 2. Display current song in ControlBar — format: ${author} - ${songTitle}, empty string if none selected. 3. Replay mode cycling — button cycles: Not replaying → Replaying all → Replaying one → Not replaying → ... 4. Next/Previous with mode-aware logic: - Not replaying: Previous at start = stays same; Next at end = no song selected - Replaying all: Previous at start = last song; Next at end = first song (wraps) - Replaying one: Next and Previous both keep the current song 5. Previous/Next without a mode — changes song to adjacent, or wraps/stops based on mode 6. usePlayerContext error — throw if used outside PlayerProvider

Proxify
1 empresa
Recente
CodingSenior

Build a count down timer React component

- 3h Codility coding exercise - It asked to use existing HTML (2 inputs for minutes and seconds) and Start, Pause / Resume, Reset buttons. It should always stop at 00:00.

Proxify
1 empresa
Recente
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
Recente
CodingMid-level

Find Top K Chat Contributors

Given a Hangout chat log, find the top k contributors, and return the result in reverse order.

Google
1 empresa
Recente
CodingMid-level

2018. Check if Word Can Be Placed In Crossword

Google
1 empresa
Recente
CodingJunior

Leetcode 920. Number of Music Playlists

Count the number of length-goal sequences using n distinct songs such that every song appears at least once and a song can be replayed only after k other songs have been played, returning the result modulo 1e9+7. This is a combinatorics/DP problem (inclusion–exclusion or recurrence) to account for permutations and the cooldown constraint with n ≤ goal ≤ 100.

Google
1 empresa
Recente
CodingMid-level

String Resolution and Variable Update

Implement string resolution and variable update functions. Given variable values (e.g. x = 'new', y = '%xworld', z = 'hello'), implement resolveString(string input) to resolve input strings with variable references, and updateVariable(char var, string value) to update variable values.

Google
1 empresa
Recente
CodingJunior

Leetcode 3217. Delete Nodes From Linked List Present in Array

Google
1 empresa

Continue explorando perguntas de Coding

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