Data Interview Qs - Identity Matrix
Identity Matrix
Python
Data Structures
Arrays
Matrix
Can you build a function that prints an identity matrix, given the identity matrix size?
Examples:
Input: 2
Output:
1 0
0 1
Input: 4
Output:
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
Function will be written in Python for premium users.
Congratulations! You’ve accumulated 126 questions in your account. Upgrade to premium to access detailed solutions to each problem (including this one).
Was this email forwarded to you? You can join our list here to receive questions
Unsubscribe
Older messages
Animal weights
Wednesday, April 21, 2021
Data Interview Qs Animal weights SQL Database Querying Suppose you're given the below tables, containing animal weights, as well as a directory of zoos: Table name: animal_weights animal_ID
Parking space probabilities
Monday, April 19, 2021
Data Interview Qs Parking space probabilities Data Analysis Python Pandas External Dataset Data Manipulation Data Visualization Statistics Probability Mass Function Suppose you're analyzing the
Sorting algorithm
Wednesday, April 14, 2021
Data Interview Qs Sorting algorithm Python Algorithms Given the following Python function, write out what the output would be at each stage: n = 1 while n < 3: m = n + 1 while m < 4: m += 1 print
Avg. sales by location in SQL
Monday, April 12, 2021
Data Interview Qs Avg. sales by location in SQL SQL Database Querying You are given the below tables, showing Store, Product, and Sales information for a chain of grocery stores. The columns are
Cleaning and analyzing employee data
Friday, April 9, 2021
Data Interview Qs Cleaning and analyzing employee data Data Analysis Python Pandas Data Manipulation Data Cleaning Below is a snippet from a table that contains information about employees that work at
You Might Also Like
Making sense of product management
Friday, May 3, 2024
Getting a sense of product sense Whenever I hear the term product sense, I think back to a Seinfeld episode about write-offs (with a little artistic license). Jerry: “You don't even know what
Charted | The Carbon Footprint of Major Travel Methods 🌐
Friday, May 3, 2024
Transport accounts for nearly one-quarter of global energy-related CO2 emissions. This chart shows the carbon footprint of travel methods. View Online | Subscribe Presented by: Morningstar Discover the
Apple's AI Strategy, At Your Service
Friday, May 3, 2024
The relative calm before the "AI, AI, AI, AI, AI" storm... Apple's AI Strategy, At Your Service By MG Siegler • 3 May 2024 View in browser View in browser At one point during Apple's
5 gadgets I never fly without
Friday, May 3, 2024
How to save on internet; BYO AI; Gemini features we need; Prime Day 2024 -- ZDNET ZDNET Tech Today - US May 3, 2024 placeholder I fly 10 times a year. These 5 tech gadgets are lifesavers From recording
⚙️ Microsoft bans the police from using their AI
Friday, May 3, 2024
Plus: The first AI diplomat is here
Weekend Read: Private and Medical AI 🕵️♀️
Friday, May 3, 2024
Don't accidentally train GPT-5
Microsoft thinks generative AI and faces shouldn’t mix
Friday, May 3, 2024
The company has banned its AI from being used for face recognition View this email online in your browser By Alex Wilhelm Friday, May 3, 2024 Welcome to TechCrunch AM! Today, we have notes on
Issue #539: Discord with Colyseus, parametric surface, and StrikeForce Kitty
Friday, May 3, 2024
Weekly newsletter about HTML5 Game Development. Is this email not displaying correctly? View it in your browser. Issue #539 - May 3rd 2024 If you have anything you want to share with the HTML5 game
Peloton's grim post-pandemic reality
Friday, May 3, 2024
The Morning After It's Friday, May 03, 2024. Peloton had a great pandemic. It's a weird thing to say, but the company's premium exercise equipment (expanding from bikes to treadmills and
Four Critical Vulnerabilities Expose HPE Aruba Devices to RCE Attacks
Friday, May 3, 2024
THN Daily Updates Newsletter cover Enterprise Transformation to AI and the Metaverse ($59.99 Value) FREE for a Limited Time Strategies for the Technology Revolution Download Now Sponsored LATEST NEWS