Skip to content

Instantly share code, notes, and snippets.

Avatar

perevertysh perevertysh

View GitHub Profile
View rooms_new.py
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:
View rooms.py
from typing import List
class Room:
def __init__(self, rank: int, name: str = ""):
self.name = name
self.rank = rank