Skip to content

Instantly share code, notes, and snippets.

@zerkaDev
zerkaDev / gist:bb42475d94fcd8cb07d65c3782a7c858
Last active October 1, 2025 13:01
python lexorank without buckets
# https://habr.com/ru/articles/510448/
import math
ALPHABET_SIZE = 26
def get_rank_between(first_rank: str, second_rank: str) -> str:
"""
Находит ранг между двумя заданными рангами.