Kotlin Interview Playground

Real Kotlin, compiled and executed on the official Kotlin compiler service.

Two Sum

Easy

Return the indices of the two numbers in `nums` that add up to `target`. Exactly one solution exists. Return them as a sorted pair, e.g. "0,1". Return "" if none.

Solution.kt