File tree Expand file tree Collapse file tree 4 files changed +26
-4
lines changed
Expand file tree Collapse file tree 4 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit 23be32436c262015b9a77e5c6a23e11d509af6f5
Original file line number Diff line number Diff line change @@ -23,9 +23,22 @@ public static void main(String[] args) {
2323 System .out .printf ("Mad Max" );
2424 }
2525
26- static void pickFromBothSidesInArray (ArrayList <Integer >list ){
26+ static int pickMaxSumFromBothSidesInArray (ArrayList <Integer >list ){
2727
28+ int maxSum = list .get (0 );
29+ //[5,-2,3,1,2]
30+ int maxElements = 3 ;
2831
32+ /*
33+ 5-2+3 = 6, r = 3+1+2 = 6
34+ 5-2+2 = 5, r = 1+2+5 = 8
35+ 5+1+2 = 8, r = 5-2+2 = 5
36+ */
37+ for (int left = 0 ; left < maxElements ; left ++) {
38+
39+ }
40+
41+ return maxSum ;
2942
3043 }
3144
Original file line number Diff line number Diff line change 1+ package Sorting ;
2+
3+ import java .util .Scanner ;
4+
5+ public class BubbleSort {
6+ public static void main (String [] args ) {
7+
8+
9+ }
10+
11+ }
Original file line number Diff line number Diff line change 11package Trees ;
22
3- //import javax.swing.tree.TreeNode;
4- import com .sun .source .tree .Tree ;
5-
63import java .util .ArrayList ;
74
85class TreeNode {
You can’t perform that action at this time.
0 commit comments