Inserting a Node Into a Sorted Doubly Linked List

  • + 0 comments

    The test harness for Kotlin has a missing newline after each test case, since you can't edit the test harness adding a global var alreadyCalled = false and then add this into your sortedInsert will fix the broken tests:

        if (alreadyCalled) {
            println()
        }
        
        alreadyCalled = true