6 kyu
Odd Magic Square
178 of 271Abelard_Snazz
Loading description...
Puzzles
Arrays
Mathematics
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
D translation
very nice Kata. I luv it
approv3d
Sample and fixed tests should use
assert_equals
.New test framework should be used.
The function name should be in snake_case.
Very nice kata, but please change name function to snake_case :
magic_square
Funtastic kata thanks:)
The kata expects a specific arrangement of magic square out of many magic squares but it is mentioned via a... hint?
No, that's not a hint, that's a mandatory requirement of the kata itself.
Please post the information out and not slap us with yet another Wikipedia article that we have to browse away from CW just to know what the algorithm is.
agree! even I return a solution from the 'hint' but just make it flip horizontally, it says incorrect! please work on the checking algo, instead of just make a = comparison..............
The 5x5 test feedback says "Expects a 5x5 array containing integers 1 to 36", which should be 25, not 36
Otherwise, great!
This comment has been hidden.
I think the difference of return for odd and even integers is a bit incoherent: array and string... Furthermore anybody knows how to make the difference. Why don't you give only odd integers?