SOLUCIONES
LEETCODE.

Implementaciones con complejidad temporal y espacial.

Problema Dificultad Complejidad Fecha
0001 Two Sum Fácil T: O(n) / S: O(n) ene 2026
0003 Longest Substring Without Repeating Characters Medio T: O(n) / S: O(1) mar 2026
0005 Longest Palindromic Substring Medio T: O(n^2) / S: O(n) mar 2026
0006 Zigzag Conversion Medio T: O(n) / S: O(1) ene 2026
0007 Reverse Integer Medio T: O(log x) / S: O(1) mar 2026
0008 String to Integer (atoi) Medio T: O(n) / S: O(1) ene 2026
0009 Palindrome Number Fácil T: O(log n) / S: O(1) mar 2026
0010 Regular Expression Matching Difícil T: O(M * N) / S: O(M * N) mar 2026
0032 Longest Valid Parentheses Difícil T: O(N) / S: O(N) mar 2026
0037 Sudoku Solver Difícil T: O(9^M) donde M es el numero de celdas vacias / S: O(M) mar 2026
0041 First Missing Positive Difícil T: O(N) / S: O(1) mar 2026
0042 Trapping Rain Water Difícil T: O(N) / S: O(1) mar 2026
0044 Wildcard Matching Difícil T: O(M * N) / S: O(1) mar 2026
0051 N-Queens Difícil T: O(N!) / S: O(N) mar 2026
0052 N-Queens II Difícil T: O(N!) / S: O(1) mar 2026
0056 Merge Intervals Medio T: O(n log n) / S: O(n) mar 2026
0060 Permutation Sequence Difícil T: O(N^2) / S: O(N) mar 2026
0065 Valid Number Difícil T: O(N) / S: O(1) mar 2026
0066 Plus One Fácil T: O(n) / S: O(1) mar 2026
0068 Text Justification Difícil T: O(N) / S: O(N) mar 2026