Skip to content

ullee/LeetCode-Class-Kotlin

Repository files navigation

LeetCode-Class-Kotlin

LeetCode Class for kotlin

ListNode

Initialize from Collection's List

val listNode = ListNode.from(listOf(1, 2, 3))

Display

println(listNode)
// 1 -> 2 -> 3 -> 4 -> 5

ListNode conversion to Collection's List

val list = listNode.toList()
// [1, 2, 3, 4, 5]

About

LeetCode Class in kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages