Amazon SDEII Screening question
Anonymous User
141

Given an array, elements are added from this array to a set if they are squares of each other and return the maximum set size.

E.g. if an array is [625, 4, 2, 5, 25], return 3 because the set [625, 5, 25] is the largest set.
E.g. Given [7,4,8,9] return 0 because there is no subset in that array that contains squares that exist in the provided array

Comments (2)