Reported interview periodNot available
Count distinct values in an ordered list
Given a nondecreasing integer sequence, report how many different values it contains.
Practice focusRequirements - The input is one line of space-separated integers in nondecreasing order. - Equal values are therefore adjacent, and the sequence may contain negative values. - Return the number of distinct values as a decimal string. - You do not need to print or return the compacted sequence itself. - run case(case: dict) forwards case["stdin"] to solve . - Do not append a trailing newline to the returned string; return the value exactly once.