Is This a Binary Search Tree?

  • + 0 comments

    I feel that this challenge could be improved if the author were to add "setup" code that transforms the STDIN into an object that can be accepted as an input parameter to the solution function that we write.

    Most HackerRank challenges, in fact, include such code.

    The idea is to allow solvers to focus their time/effort on solving the challenge itself rather than trying to parse the STDIN data.