Ir al contenido

Pregunta de entrevista · Ventana deslizante

Permutation In String

Permutation In String es una pregunta de dificultad Media que usa el patrón sliding window. PrepKit la clasifica en Ventana deslizante.

PrepKit muestra el título y un enlace. El enunciado se queda en el sitio original.

Comprobando tus guardados

Solicitudes de copyright y corrección

Contenido de la fuente: inglés

Datos clave

Tema
Ventana deslizante
Patrón
sliding window
Dificultad
Media
Aparece en
NeetCode 150
Sitio web
leetcode.com
Licencia
MIT License

Cómo usarlo

  1. Lee el problema en el sitio original.
  2. Inténtalo por tu cuenta antes de mirar pistas o soluciones.
  3. Después resuelve una pregunta relacionada con el mismo patrón.

Sobre el patrón Ventana deslizante

Notas de estudio de PrepKit. Las escribieron los editores de PrepKit como consejos generales. No proceden del problema ni de ninguna solución publicada.

Qué es
Mantener un rango contiguo sobre un arreglo o una cadena y avanzar sus extremos mientras actualizas un estado acumulado.
Cómo reconocerlo
La pregunta pide el subarreglo o la subcadena contigua más larga, más corta o mejor que cumple una condición.
Errores comunes
Recalcular toda la ventana en cada paso, reducirla en el momento equivocado y usarla cuando los valores negativos rompen la regla para ampliarla y reducirla.

Páginas que lo incluyen

Preguntas frecuentes

¿Dónde puedo practicar Permutation In String?

Ábrela en leetcode.com. PrepKit enlaza allí y no copia el problema.

¿Qué patrón usa Permutation In String?

PrepKit la clasifica en sliding window, con dificultad Media.

Fuente y licencia

Fuente y licencia

Licencia:
MIT License
Autoría:
Enzo Davico
Versión de la fuente:
5c033cb
Última comprobación con la fuente:
Cambios:
PrepKit kept only each problem's title, pattern, difficulty, list membership, and LeetCode link. Solutions, quizzes, Anki content, NeetCode links, videos, and ordering are not copied.
Ver la fuente original
Texto completo de la licencia y del aviso de derechos de autor

MIT License Copyright (c) 2023 Enzo Davico Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.