Count Nice Pairs in an Array at Roblox

Medium48.4% acceptance

This problem has 37.5% frequency at Roblox.

Problem Description

You are given an array `nums` that consists of non-negative integers. Let us define `rev(x)` as the reverse of the non-negative integer `x`. For example, `rev(123) = 321`, and `rev(120) = 21`. A pair of indices `(i, j)` is **nice** if it satisfies all of the following conditions: * `0 <= i < j <...

Read full problem and hints

Topics

Also asked at 5 companies


More Roblox Questions

View all Roblox questions