pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/TheAlgorithms/Python/commit/b653aee627a95de423f1cad97f283de904271ff7

css" /> Fix ruff (#12515) · TheAlgorithms/Python@b653aee · GitHub
Skip to content

Commit b653aee

Browse files
Fix ruff (#12515)
* 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

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

DIRECTORY.md

Lines changed: 2 additions & 2 deletions
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)

project_euler/problem_002/sol4.py

Lines changed: 1 addition & 1 deletion
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)
File renamed without changes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy