This commit is contained in:
Vombit
2026-05-28 12:06:43 +05:00
parent 801bafd8ba
commit 9ed84e35cf
2 changed files with 13 additions and 0 deletions

8
solutions/lc2154.py Normal file
View File

@@ -0,0 +1,8 @@
class Solution:
def findFinalValue(self, nums: List[int], original: int) -> int:
nums_s = set(nums)
while original in nums_s:
original *= 2
return original