Created
June 17, 2021 15:14
-
-
Save yairzaslavsky/e2417dd3066fcdc7ca31a2ff4335f161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Node(val data: Int, var next: Node? = null) | |
fun reverseList(head: Node?): Node? = ... //implement this | |
fun reverseList(current: Node?, next: Node?): Node? = ... //implement this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment