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.
Day 11: 2D Arrays
Day 11: 2D Arrays
Sort by
recency
|
1918 Discussions
|
Please Login in order to post a comment
python
int[][] a = arr.stream() .map(l -> l.stream().mapToInt(Integer::intValue).toArray()) .toArray(int[][]::new); int r=6,c=6; if(r<3 || c<3){ System.out.println("Not possible"); System.exit(0); } int max_sum=Integer.MIN_VALUE; for(int i=0;i
C++ code
Python code:
javascript
`let max= -63