Tuesday, December 24, 2019

Eye and Identity- Hacker Rank Solution

Eye and Identity- Hacker Rank Solution

     We can use the eye tool with  to solve this problem.
import numpy
N, M = map(int, raw_input().split())

print numpy.eye(N, M, k = 0)

1 comment:

  1. numpy.set_printoptions(sign=' ')

    add this line, if above code is not working

    ReplyDelete

Powered by Blogger.