Created
February 10, 2019 15:30
-
-
Save abhishek-Kumar009/d6a0e8dc0221e581e72fbfe6fdd0e1a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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