We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Numpy
- Eye and Identity
- Discussions
Eye and Identity
Eye and Identity
Sort by
recency
|
311 Discussions
|
Please Login in order to post a comment
Python (of course): My compact solution…
Annoying that HackerRank uses "MathJax_SVG" to display code in their problem descriptions. I had to use Google Lens to copy the
numpy.set_printoptions()
code. (Because I didn't want to retype it myself.)import numpy numpy.set_printoptions(legacy='1.13') N,M = map(int,input().split()) print(numpy.eye(N,M))
Here is HackerRank Eye and Identity in Python solution - https://programmingoneonone.com/hackerrank-eye-and-identity-problem-solution-in-python.html