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 empty starter code for the Java implementations does not even complete cases 6-19 in time. All timeouts. Save yourself a few hours of headache and switch from Scanner to a BufferedReader. My original implementation of reccursive DFS completed just fine after I did this.
Cut the Tree
You are viewing a single comment's thread. Return to all comments →
The empty starter code for the Java implementations does not even complete cases 6-19 in time. All timeouts. Save yourself a few hours of headache and switch from Scanner to a BufferedReader. My original implementation of reccursive DFS completed just fine after I did this.
Change the given main method to this code below: