LeetCode
Question
·
Jan 2024
NxN Magic Square
2 upvotes
271 views
4 replies
Question Details
You are given an integer n. Generate a n x n magic square. A n x n magic square is a n x n grid filled with distinct numbers in the...
Full Details
🔒
Unlock all Square/Block questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a square/block interview for a swe role reported in 2024.
It covers the following topics: Matrix .