LeetCodeKeep Multiplying Found Values by TwoKeep Multiplying Found Values by TwoEasyArrayHash TableSortingSimulationSolution export function findFinalValue(nums: number[], original: number): number { const set = new Set(nums); let num = original; while (set.has(num)) { num *= 2; } return num; }LeetCodeKeep Multiplying Found Values by Twohttps://leetcode.com/problems/keep-multiplying-found-values-by-two