feat(solution): problem #99
parent
f24722d42b
commit
41f2e5a758
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,16 @@
|
||||||
|
from bignums import *
|
||||||
|
|
||||||
|
biggestIndex = 0
|
||||||
|
biggestValue = 0
|
||||||
|
currentIndex = 1
|
||||||
|
|
||||||
|
for i in dataTable:
|
||||||
|
currentValue = i[0] ** i[1]
|
||||||
|
print("current index:",currentIndex)
|
||||||
|
if currentValue > biggestValue:
|
||||||
|
biggestValue = currentValue
|
||||||
|
biggestIndex = currentIndex
|
||||||
|
currentIndex += 1
|
||||||
|
|
||||||
|
|
||||||
|
print("The index of the largest exponential value is: ", biggestIndex)
|
||||||
Loading…
Reference in New Issue