Hi
I want to a magic matrix .
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sam HobbsRank #107 · 20.5K reputationPosted Apr 29, 2011, 4:21 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 29, 2011, 6:41 AM EDT
For a bit of fun, I've translated the C++ code into C# - took me about 10 minutes as, apart from the vector stuff, it's virtually the same! Surprisingly, it seems to work:
> matrix = new List
>();
> matrix, int n)
> matrix, int n)
> matrix, int n)
> I = new List
>();
> J = new List
>();
> matrix, int n)
> M = new List
>();
> matrix, int n)