mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-03-13 09:50:19 +08:00
changes made in *iterating_through_submasks.py
This commit is contained in:
1
dynamic_programming/checking request.py
Normal file
1
dynamic_programming/checking request.py
Normal file
@@ -0,0 +1 @@
|
||||
import request
|
||||
@@ -5,9 +5,10 @@ You are given a bitmask m and you want to efficiently iterate through all of
|
||||
its submasks. The mask s is submask of m if only bits that were included in
|
||||
bitmask are set
|
||||
"""
|
||||
from typing import List
|
||||
|
||||
|
||||
def list_of_submasks(mask) -> list:
|
||||
def list_of_submasks(mask: int) -> List[int]:
|
||||
|
||||
"""
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user