Language

Kotlin archive

Every library entry that currently exposes Kotlin code or a Kotlin solution link.

1261 entries

Daily solutions with Kotlin available either directly in the archive or via linked solution pages.

1.11.2022

medium

Where Will The Ball Fall

This is a geometry problem, but seeing the pattern might help. We can spot that each row is an action sequence: -1 -1 -1 shifts balls left, and 1 1 1 shifts balls to the right. Corners can be formed only with -1 1 sequence.