votes
    Preparing search index...

    Function removeInvalidCandidates

    • Remove candidates in ranking that don't exist in candidates. Prevents cheating!

      Type Parameters

      • C extends string

      Parameters

      • ranking: string[][]

        ranking to check

      • candidates: C[]

        official candidates

      Returns C[][]