We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Flipping the Matrix
Flipping the Matrix
Sort by
recency
|
262 Discussions
|
Please Login in order to post a comment
Solution with explanation in Python 3:
python
For something different, here's a parallelizable solution for Java 17.
The way this problem is framed genuinely makes me feel like an idiot. Why do I need a math degree to be able to interpret these problems???
I don't understand how q or n contribute to whatever "flipping" your supposed to be doing, and how that creates the highest maximal sum. Is the sum always supposed to the taken from the first two entries of each line in the matrix?
public static int flippingMatrix(List> matrix) { var count = matrix.Count; int sum = 0;
static int FindMax(params int[] numbers) {