Magnus Åkerfeldt

Results 5 issues of Magnus Åkerfeldt

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)....

Created functions which take two `Number` objects, and either adds, subtracts, or compares them. These Number objects can be of type Integer, Long, Float, Double, BigInteger or BigDecimal. Also added...

The function `multiplyUsingLoopWithStringInput` in Multiplication.java can now handle zero inputs. Also added branch coverage for this. See issue #165 for more details. #### By submitting this pull request I confirm...

In the files FenwickTree.java, Matrix.java and SegmentTree.java (all in the folder `\src\com\jwetherell\algorithms\data_structures`), there are comments saying `TODO: This is ugly and how to handle number overflow?`. See example below. These...

In the function Matrix.add (see code below), the innermost for-loop is unneeded (notice that the iterator `i` is not used at all). Removing this for-loop can reduce the time complexity...