Timeline for Kadane's Algorithm for 2D array with known boundaries
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2017 at 7:37 | vote | accept | ChrisG | ||
Oct 9, 2015 at 10:02 | history | edited | 200_success | CC BY-SA 3.0 |
clarification
|
Oct 9, 2015 at 9:37 | comment | added | ChrisG | N, M, maxCols, and maxRows are passed because that's what the specification asks. As of the part of code that deals with the input was not included in the main code. The functions are a part of a bigger project which does read in a numpy array, but I didn't include it and used a really simplified version . Other than that your point on the global variables, the names of the variables and the function comment blocks are great advice. Thanks! Although that doesn't really make the usage of the code more efficient. So I'll wait for a better answer. Thanks for the advice though! | |
Oct 9, 2015 at 9:21 | history | answered | 200_success | CC BY-SA 3.0 |