Skip to content

Instantly share code, notes, and snippets.

@abhishek-Kumar009
Created February 10, 2019 15:30
Show Gist options
  • Save abhishek-Kumar009/d6a0e8dc0221e581e72fbfe6fdd0e1a5 to your computer and use it in GitHub Desktop.
Save abhishek-Kumar009/d6a0e8dc0221e581e72fbfe6fdd0e1a5 to your computer and use it in GitHub Desktop.
def findIndices(binVec):
l = []
for i in range(len(binVec)):
if binVec[i] == 1:
l.append(i)
return l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment