Count Nice Pairs in an Array at Square

Medium48.4% acceptance

This problem has 100.0% frequency at Square.

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 Square Questions

View all Square questions