摘要:
s1 = '[{(b)}][[]]' s2 = '[{(b}][[]]' def brackets_match(s: str) -> bool: opening_brackets = '([{' closing_brackets = ')]}' nexus = {')': '(', ']': '[' 阅读全文
posted @ 2022-11-30 19:39
ascertain
阅读(119)
评论(0)
推荐(0)
摘要:
A stack is a linear data structure that stores items in a last-in-first-out LIFO or first-in-last-out FILO manner, In stack, a new element is added at 阅读全文
posted @ 2022-11-30 19:15
ascertain
阅读(41)
评论(0)
推荐(0)
摘要:
判断一个整数是否为完全立方数 cubic number: import math cubical = int(input('number: ')) def is_cubical(cubical: int): n = math.ceil(pow(cubical.__abs__(), 1 / 3)) # 阅读全文
posted @ 2022-11-30 00:05
ascertain
阅读(69)
评论(0)
推荐(0)

浙公网安备 33010602011771号