-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (24 loc) · 957 Bytes
/
Main.java
File metadata and controls
30 lines (24 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class Main {
public static void main(String[] args) {
//System.out.println("Hello!!");
/*
StringCompression sc = new StringCompression();
System.out.println(sc.stringCompression("abbcca"));
Summation summ = new Summation();
System.out.println(summ.summation(new int[] {1,6,8,5,9,4,7,2}));
ReverseAlternate revAlt = new ReverseAlternate();
System.out.println(revAlt.reverse("i love to code"));
KadanesAlgo kd = new KadanesAlgo();
System.out.println(kd.maxSubArray(new int[] {1,6,8,5,9,4,7,2}));
CheckInInterval inter = new CheckInInterval();
int[][] interArr = {{0,30}, {35,40}, {100,104}, {105, 110}};
System.out.println(inter.checkInterval(interArr, 0));
RotateArrayInplace rotateArray = new RotateArrayInplace();
int[] a = {1,2,3,4,5};
int[] rotateArrayArr = rotateArray.rotateArray(a, 2);
for(int i : rotateArrayArr) {
System.out.print(i + " ");
}
*/
}
}