• + 2 comments

    The problem statement makes no sense. There's no definition of val(S), and the only examples involve val(S) when S only contains a single element...