[LeetCode] Double Modular Exponentiation

1 · · Dec. 10, 2023, 3:09 a.m.
10032. Double Modular Exponentiation You are given a 0-indexed 2D array variables where variables[i] = [ai, bi, ci, mi], and an integer target. An index i is good if the following formula holds: 0 <= i < variables.length ((aibi % 10)ci) % mi == target Return an array consisting of good indices in any order. ...