changes made in *iterating_through_submasks.py

This commit is contained in:
faizan2700
2019-12-18 15:19:45 +05:30
parent b3946094a7
commit 9f4f23948d
3 changed files with 581 additions and 1 deletions

View File

@@ -0,0 +1 @@
import request

View File

@@ -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: