Skip to content

Commit a7880f3

Browse files
committed
daily
1 parent d23e263 commit a7880f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

my-submissions/e2154.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution:
2+
def findFinalValue(self, nums: List[int], original: int) -> int:
3+
nums = set(nums)
4+
output = 0
5+
while original in nums :
6+
output += 1
7+
original *= 2
8+
return original

0 commit comments

Comments
 (0)