+ 2
Any better ways
array manipulations https://code.sololearn.com/cKb6F794WFRK/?ref=app
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
+ 1
write a code to multiply two matrix and return 3rd matrix
there is a function too in mayrix class to display matices