IP Firewall Rule Matching
Implement an IP firewall that evaluates rules in priority order.
Implement the following class:
class IpFirewall:
def __init__(self, rules: list[list[str]]):
...
def allow...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
