+ 5
*DAILY-MINI-CHALLENGE* : Write a function that gets a positive int n as input and print the filled matrix (n*n) to the screen!
EXAMPLE n = 3: 4 2 1 7 5 3 9 8 6 EXAMPLE n = 4: 7 4 2 1 11 8 5 3 14 12 9 6 16 15 13 10 PRINT THE MATRIX ALIGNED TO SCREEN! https://code.sololearn.com/cwZ8dYn608Yy/?ref=app
23 Réponses
+ 1
here is mine julian....
https://code.sololearn.com/cVT7edsUznqu/?ref=app
+ 13
Here's my try
https://code.sololearn.com/W8yS82qG5peZ/#css
+ 6
Quick question Julian, must the order be random?
+ 5
I dont believe it is. The order starts from the upper right and goes diagonally from top to bottom-right. You can follow the path of the numbers in the example
+ 5
I see. Thanks for noticing the pattern @Joni! 👍
+ 3
mine https://code.sololearn.com/WMbaouMqX38N/?ref=app and here the another one: https://code.sololearn.com/WduGeH7AoMq8/?ref=app
+ 3
here is my solution..
https://code.sololearn.com/c7X1d7n3Edct/?ref=app
+ 2
https://code.sololearn.com/cm7p3b9wgYcK/?ref=app
+ 2
My attempt in PHP: https://code.sololearn.com/wr3Xl9g1FP7G/#php
Edit: Should work now. Today is not my day.
+ 2
This is my submission.
Thanks for the challenge. @Julian
https://code.sololearn.com/cIwuE3clVJOw/?ref=app
+ 1
Bam, my genius solution. 😎
Not that anyone else's solutions arent genius <3 I love you all
https://code.sololearn.com/cl4DcYv8c868/?ref=app
+ 1
HERES THE NEW CHALLENGE...
CHECK IT OUT FRIENDS
https://www.sololearn.com/discuss/653982/?ref=app
+ 1
NEW *DAILY CHALLENGE* HERE:
https://www.sololearn.com/discuss/659673/?ref=app
+ 1
NEW *DAILY CHALLENGE* HERE:
https://www.sololearn.com/discuss/659673/?ref=app
+ 1
here is new challenge...
https://www.sololearn.com/discuss/664933/?ref=app
0
Let me submit a last minute in :)
https://code.sololearn.com/cNyeRz04OlQh/?ref=app
0
and in the other direction: https://code.sololearn.com/WNXpBx79kt30/?ref=app
from: https://www.sololearn.com/Discuss/743087/
0
vote for your favorite coding language:
https://code.sololearn.com/WJqfkcTEguBe/?ref=app