Hackerrank Eye and Identity Solution
1 min read

Hackerrank Eye and Identity Solution

Hackerrank Eye and Identity Solution

Solution in python3

Approach 1.

import numpy
print(numpy.eye(*map(int,input().split())))

Approach 2.

import numpy
N, M = map(int, input().split())
print(numpy.eye(N, M))

Solution in python

import numpy
N,M = map(int,raw_input().split())
print numpy.eye(N,M)

Enjoying these posts? Subscribe for more


Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

That's okay. But without advertising-income, we can't keep making this site awesome.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add thepoorcoder.com to your ad blocking whitelist or disable your adblocking software.

×