+ 2

Any better ways

array manipulations https://code.sololearn.com/cKb6F794WFRK/?ref=app

28th Sep 2017, 1:48 PM
X-Boi :: Magnifico
X-Boi :: Magnifico - avatar
2 odpowiedzi
+ 8
Yes, of course! By using ranged based for loop your code becomes more readable and easy to maintain. In addition to that, having a compact code is a gem when it comes to comparing two programs which are doing the same thing but with the different number of instructions. (This is just one possibility for your code) https://code.sololearn.com/cjwMg9MQNmuO
28th Sep 2017, 2:53 PM
Babak
Babak - avatar
+ 1
write a code to multiply two matrix and return 3rd matrix there is a function too in mayrix class to display matices
28th Sep 2017, 2:21 PM
Azam
Azam - avatar