File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed
project_euler/problem_002 Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 8686 * [ Baconian Cipher] ( ciphers/baconian_cipher.py )
8787 * [ Base16] ( ciphers/base16.py )
8888 * [ Base32] ( ciphers/base32.py )
89- * [ Base64] ( ciphers/base64 .py )
89+ * [ Base64 Cipher ] ( ciphers/base64_cipher .py )
9090 * [ Base85] ( ciphers/base85.py )
9191 * [ Beaufort Cipher] ( ciphers/beaufort_cipher.py )
9292 * [ Bifid] ( ciphers/bifid.py )
13311331 * [ Title] ( strings/title.py )
13321332 * [ Top K Frequent Words] ( strings/top_k_frequent_words.py )
13331333 * [ Upper] ( strings/upper.py )
1334- * [ Wave] ( strings/wave .py )
1334+ * [ Wave String ] ( strings/wave_string .py )
13351335 * [ Wildcard Pattern Matching] ( strings/wildcard_pattern_matching.py )
13361336 * [ Word Occurrence] ( strings/word_occurrence.py )
13371337 * [ Word Patterns] ( strings/word_patterns.py )
File renamed without changes.
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def solution(n: int = 4000000) -> int:
6161 if n <= 0 :
6262 raise ValueError ("Parameter n must be greater than or equal to one." )
6363 getcontext ().prec = 100
64- phi = (Decimal (5 ) ** Decimal (0.5 ) + 1 ) / Decimal (2 )
64+ phi = (Decimal (5 ) ** Decimal (" 0.5" ) + 1 ) / Decimal (2 )
6565
6666 index = (math .floor (math .log (n * (phi + 2 ), phi ) - 1 ) // 3 ) * 3 + 2
6767 num = Decimal (round (phi ** Decimal (index + 1 ))) / (phi + 2 )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments