Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ Box
Class
Box
python/Chapter 9/Question9_10/tallest_stack.py:46–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
45
_BoxTuple = collections.namedtuple(
'_BoxTuple'
,
"width height depth"
)
46
class
Box(_Box, _BoxTuple):
47
pass
48
49
class
Stack(frozenset):
50
""
" An immutable (and hashable) set of Boxes. "
""
Callers
1
test_find_tallest
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_find_tallest
Method · 0.56