We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d23e263 commit a7880f3Copy full SHA for a7880f3
my-submissions/e2154.py
@@ -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