Skip to content

Commit b653aee

Browse files
* Empty commit * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix * Fix * Fix * updating DIRECTORY.md --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: MaximSmolskiy <[email protected]>
1 parent bae33ac commit b653aee

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Diff for: DIRECTORY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
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)
@@ -1331,7 +1331,7 @@
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.

Diff for: project_euler/problem_002/sol4.py

+1-1
Original file line numberDiff line numberDiff 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)

Diff for: strings/wave.py renamed to strings/wave_string.py

File renamed without changes.

0 commit comments

Comments
 (0)