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 hintsTopics
Also asked at 5 companies
More Roblox Questions
Reorganize StringMediumTask SchedulerMediumText JustificationHardMaximize Distance to Closest PersonMediumNumber of Ways to Wear Different Hats to Each OtherHard
View all Roblox questions