cswork / OAOpen practice workspace

RobloxOA #8

Find Max Number of Pairs

Estimated EasyStatement and editorial — judging is being prepared

Topics (AI-labelled)HashingBits & Math

Given an array, find the numbers with t

Example 1

Input:

nums = [1, 9, 23, 30, 54, 103]

Output:

4

Explanation: The possible pairs with the same number of digits are:

  • {1, 9}
  • {23, 30}
  • {23, 54} There are a total of 4 different pairs, so the output is 4.

Editorial

Loading solution…