Question d’entretien chez Goldman Sachs

isPowerOfThree on leetcode was the easy question, I cannot remember the medium question.