Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Dynamic Programming perguntas e respostas de entrevista

Pergunta 16. Longest Palindromic Substring

Given a string, find the longest substring which is a palindrome.

Example:

Input: "babad", Output: "bab" or "aba"

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 17. Partition Equal Subset Sum

Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.

Example:

Input: [1, 5, 11, 5], Output: true (subset sums: [1, 5, 5] and [11])

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 18. Maximum Length of Repeated Subarray

Given two integer arrays, find the maximum length of a common subarray of both arrays.

Example:

Input: A = [1,2,3,2,1], B = [3,2,1,4,7], Output: 3 ([3, 2, 1])

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 19. Longest Increasing Path in a Matrix

Given an integer matrix, find the length of the longest increasing path.

Example:

Matrix: [[9,9,4],[6,6,8],[2,1,1]], Output: 4 (9 -> 6 -> 8 -> 1)

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 20. RegularExpression Matching

Implement regular expression matching with support for '.' and '*'.

Example:

Input: s = "aa", p = "a*", Output: true

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.