kotlin-coding-challenges icon indicating copy to clipboard operation
kotlin-coding-challenges copied to clipboard

🧩 Kotlin coding puzzle and solutions

Results 27 kotlin-coding-challenges issues
Sort by recently updated
recently updated
newest added

This test will fail even though oooo is a valid palindrome and palindrome Permutation ```kotlin @Test fun `'oooo' a palindrome`() { isPermutationPalindrome("oooo") shouldBeEqualTo true } ``` solution should be ```kotlin...

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.jetbrains.kotlin.jvm | `1.9.25` -> `2.1.21` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin/2.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin/2.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.jetbrains.kotlin:kotlin-compiler](https://kotlinlang.org/) ([source](https://redirect.github.com/JetBrains/kotlin)) | `1.9.25` -> `2.1.21` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.jetbrains.kotlin:kotlin-compiler/2.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) |...

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.diffplug.spotless | `6.25.0` -> `7.0.4` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.diffplug.spotless:com.diffplug.spotless.gradle.plugin/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.diffplug.spotless:com.diffplug.spotless.gradle.plugin/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

**Fix for below error that occurs on executing tests via intellij** Caused by: org.junit.platform.commons.JUnitException: OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the...

This PR fixes the order of elements in the "2 smallest elements" test case to maintain the original sequence order. Changed: smallestElements(list, 2) shouldBeEqualTo listOf(3, 1) To: smallestElements(list, 2) shouldBeEqualTo...