Ad
  • Custom User Avatar

    The list is all of the students that are accepted into any house.

  • Custom User Avatar

    i believe this was in regards to whether the query is to run just for one particular house's criteria, or all.

    /necro

  • Custom User Avatar

    It's pretty clear in the description whether qualities are on an AND or an OR basis. Evil AND cunning. Studious OR intelligent.

    Don't worry about if failed Slytherins or Gryffindors end up in other houses. That's not how it really works. The hat just tells you where you go, not whether you just narrowly missed it. Some would say that's why there is Hufflepuff :)

  • Custom User Avatar

    Looks to be polish for manufacturer.

  • Custom User Avatar

    I completely agree. The way it is worded is ambiguous, because technically speaking, the following statement, "[i]f a chunk represents an integer such as the sum of the cubes of its digits is divisible by 2, reverse that chunk; otherwise rotate it to the left by one position", has a nearly vacuous antecedent. Namely, assuming that the input is always of integer type and assuming that every chunk is of appropriate length (which themselves are light weight assumptions), then it will always be true, said condition. In other words, it will always be true that the chunk is an integer. Why is this? It is because when you say "such as" it has the equivalent idiomatic meaning of "perhaps", which means it may or may not be true (or, in this case, it may or may not be required to be true). Thus, the real condition of importance is then "[i]f a chunk represents an integer".

    I believe the author meant to say "[i]f a chunk represents an integer [wherein] the sum of the cubes of its digits is divisible by 2 [...]". By making this small adjustment in language, the problem specification is now completely clear and unambiguous. I suggest this change (or similar, if deemed appropriate) be made.

    Otherwise, this is a great little kata!

  • Custom User Avatar

    Do you want to paste your solution and mark it as a spoiler just incase there is something wrong with the kata itself?

  • Custom User Avatar

    lol! CW can be buggy

  • Custom User Avatar

    Not all problems you will be given will have the most logical instructions. One must occasionally discern the meaning from plain English and from stories/scenarios.

  • Custom User Avatar

    The table is called "multipliers"...

  • Custom User Avatar