java-algorithms-implementation
java-algorithms-implementation copied to clipboard
Fixed #168. Refactor: Removed unneeded for-loops from Matrix.add and Matrix.subtract
The inner-most for-loops in the Matrix.add and Matrix.subtract functions are not needed. This pull request removes them. All tests still pass. See more details in issue #168 (created by me).
By submitting this pull request I confirm I've read and complied with the below requirements.
- [x] I have read the Contribution guidelines and I am confident that my PR reflects them.
- [x] I have followed the coding guidelines for this project.
- [x] My code follows the skeleton code structure.
- [x] This pull request has a descriptive title. For example,
Added {Algorithm/DS name} [{Language}]
, notUpdate README.md
orAdded new code
.