Retos de programación en Kotlin

225 retos que puedes resolver en Kotlin, desde los primeros bucles hasta grafos, programación dinámica y machine learning. Escribe tu código en el navegador, ejecuta las pruebas al momento y recibe una revisión de IA.

Fácil · 134 Intermedio · 67 Difícil · 24

Habilidades que practicarás: ConteoExtraer dígitosAritméticaBuclesFórmulasListasListas 2DBucles anidadosBucles whileComa flotanteCondicionesDescenso de gradiente
  • Python · C++ · C#
  • Pruebas automáticas
  • Revisión de código por IA
  • Soluciones de la comunidad
226
Desafíos
123
Soluciones compartidas
9
Lenguajes

Todos los desafíos

Busca por tema, lenguaje o dificultad.

225 desafíos
Fácil

Número de Fibonacci

Devuelve el n-ésimo número de Fibonacci.

Aprenderás IteraciónActualizar dos variables
BeginnerLoopsSequencesStudent-beginner
Fácil

Average of Three

Average three whole numbers.

Aprenderás AritméticaDivisión
BeginnerLearning-pathVariables
Fácil

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

Aprenderás AritméticaValores de retorno
BeginnerLearning-pathVariables
Difícil

Minimum Network Connection Cost

Choose undirected links so that every vertex can reach every other vertex, with minimum total cost.

Aprenderás Algoritmo de KruskalUnion-find
Disjoint-setsGraphsMinimum-spanning-tree
Aún no hay soluciones
Fácil

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

Aprenderás Patrones con cadenasRelleno
BeginnerLearning-pathNested-loopsPatterns
Intermedio

Island Perimeter

Measure the coastline of land cells in a grid.

Aprenderás Contar aristasRevisar 4 vecinos
AdvancedGridsHackathon
Aún no hay soluciones
Intermedio

Shortest Weighted Routes

Find the minimum total route cost from city 1 to each city.

Aprenderás Algoritmo de DijkstraBorrado perezoso
GraphsPriority-queuesShortest-path
Aún no hay soluciones
Intermedio

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

Aprenderás Condiciones de victoriaDiagonales
BeginnerConditionsGridsLearning-path
Difícil

Trapping Rain Water

Compute how much rain water an elevation map holds.

Aprenderás Dos punterosMáximos prefijos
AdvancedArraysCompetitive-programmingGreedy
Fácil

Hollow Square

Draw the outline of a square with * characters.

Aprenderás Detectar bordesConstruir cadenas
BeginnerLearning-pathNested-loopsPatterns
Difícil

Mini Stack-Language Interpreter

Evaluate a small stack language.

Aprenderás TokenizarEjecutar instrucciones
InterpretersParsingStacks
Aún no hay soluciones
Intermedio

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

Aprenderás Casos baseLimpiar cadenas
BeginnerLearning-pathRecursionStrings
Difícil

Count Inversions

Count the out-of-order pairs in a list.

Aprenderás Ordenación por mezclaDivide y vencerás
AdvancedCompetitive-programmingSorting
Aún no hay soluciones
Fácil

Min and Max Together

Find the smallest and largest value in one pass.

Aprenderás Una sola pasadaVarios valores de retorno
ArraysBeginnerFunctionsLearning-path
Difícil

Sliding Window Maximum

Report the maximum of every window of k numbers.

Aprenderás Deque monótonaVentanas en O(n)
AdvancedCompetitive-programmingSliding-window
Aún no hay soluciones
Fácil

Cash: Fewest Coins

Give change with as few U.S. coins as possible.

Aprenderás Algoritmos voracesDar el cambio
BeginnerGreedyStudent-beginnermath
Fácil

Halve Until One

Count how many halvings bring a number down to 1.

Aprenderás Bucles whileConteo
BeginnerLearning-pathLoops
Intermedio

Búsqueda A* en una cuadrícula ponderada

Encuentra el camino más barato a través de una cuadrícula de costes de terreno con A*, el algoritmo de búsqueda detrás de la navegación en juegos y robots.

Aprenderás Búsqueda A*Heurísticas
GraphsGridsShortest-pathai