You are given an integer array nums. A subsequence of nums is called a square streak if:
The length of the subsequence is at least
After sorting the subsequence in strictly ascending order, each element after the first is equal to the square of the preceding element.
Return the maximum length of a square streak in nums, or return
Constraints:
nums.length
nums[i]
You are given an integer array nums. A subsequence of nums is called a square streak if:
The length of the subsequence is at least
After sorting the subsequence in strictly ascending order, each element after the first is equal to the square of the preceding element.
Return the maximum length of a square streak in nums, or return
Constraints:
nums.length
nums[i]