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.
This was a fun little task with NumPy! I used numpy.eye for creating the diagonal just like the sample showed, and it worked perfectly. Reminds me of how I recently had to check my Emirates ID progress—thankfully, I could just checkidstatusonline through the UAE government site. It was as seamless as running a Python script—no registrations, no logins, just straight to the result.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Eye and Identity
You are viewing a single comment's thread. Return to all comments →
This was a fun little task with NumPy! I used numpy.eye for creating the diagonal just like the sample showed, and it worked perfectly. Reminds me of how I recently had to check my Emirates ID progress—thankfully, I could just checkidstatusonline through the UAE government site. It was as seamless as running a Python script—no registrations, no logins, just straight to the result.