We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Inserting a Node Into a Sorted Doubly Linked List
You are viewing a single comment's thread. Return to all 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: