Count Powers of K (MLE)
Asked at Quora · Coding Questions · Difficulty: Easy · Last asked Jul 15, 2026
Given an array and a value `k`, find the count of numbers in the array that are powers of `k`. For example, if `arr = [11, 121, 10]` and `k = 11`, the result would be 2.
Loading the problem…