{"id":"dual-interface-pattern","text":"Some solution files provide both a `Solution` class method and a standalone function with identical logic, giving callers a choice of interface.","truth_value":"IN","source":"entries/2026/06/06/check-if-binary-string-has-at-most-one-segment-of-ones-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"dual-interface-pattern","truth_value":"IN","reason":"premise"}]}}