Package-level declarations

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

The time complexity of this solution is O(n).

Link copied to clipboard
fun <T : Comparable<T>> MutableList<T>.rightAlign(element: T)

Given a list of Comparable elements, bring all instances of a given value in the list to the right side of the array.

Link copied to clipboard
fun <T> Array<T>.swapAt(first: Int, second: Int)
fun <T> MutableList<T>.swapAt(first: Int, second: Int)