You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Home
Author
Terms
Privacy
About
Tumblr
Pinterest
Enable dark mode
Zeros and Ones
Beeze Aal
28.Jul.2020
Hackerrank Zeros and Ones Solution
Solution in python3Approach 1. import numpy N = list(map(int, input().split())) print(numpy.zeros(N, int)) print(numpy.ones(N, int))Approach 2. import numpy size = tuple(map(int,input().strip().split())) print( numpy.zeros(size, int) ) print( numpy.ones(size, int) )Approach 3. import numpy N = [int(x)