Skip to content

Instantly share code, notes, and snippets.

View perevertysh's full-sized avatar

perevertysh perevertysh

View GitHub Profile
from typing import List, Set
from heapq import nlargest
def ad_least_twice(ranks: List) -> bool:
return large_minimum_twice(ranks)
def exactly_twice(ranks: List) -> bool:
from typing import List
class Room:
def __init__(self, rank: int, name: str = ""):
self.name = name
self.rank = rank