Ad
  • Custom User Avatar

    Gotcha. Thanks.

  • Custom User Avatar

    Note that "input" in the description does not mean just any combination of four digits, it means a combination of four digits that is guaranteed to make up a valid time, or it would not be inputted to the function.

  • Custom User Avatar

    So you can guarentee that random tests will not provide any inputs that are not possible to construct a valid time. This sounds much better than "Every input has a valid answer.". Thanks.

  • Custom User Avatar

    No it's probably me who's being difficult, but I have no good idea how to express it in a clearer way. Maybe like this:

    Tests pass to your function only inputs, which have a valid answer.

    Or: when your function is called, it is guaranteed to be called only with digits which have a valid solution.

    Or: Your function will not be called with digits which cannot be used to build a valid 24-h time.

    Or: Only inputs which have valid answers are tested.

    Does any of these sound better?

  • Custom User Avatar

    I am sorry but, the description is just ambigious or am I just being difficult? It said "every input". Not 'every possible input that can yield valid answer'. So I suppose, 5,6,7,8 is part of every input. If the statement is "every possible" input then sure, your statement is correct.

  • Custom User Avatar

    These can be any possible combination of four digits which is guaranteed to have a valid answer. it can be 1 1 1 1, it can be 1 2 3 4, it can be 5 6 9 0, but it will never be 5 6 7 8.

  • Custom User Avatar

    Are 4 digits supposed to be the ones from test cases only or all possible digits? If so 'Every inputs have valid answer' might not agree with the input 5,6,7,8 .