• + 4 comments

    Great Answer. Just letting you know that your code will throw a Timeout problem in Java 8. In Java 7 it works fine.